/* Shop Overlay and Components */
/* ============================ */

.shop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.shop-container {
    background: linear-gradient(135deg, 
        rgba(0, 105, 148, 0.95) 0%, 
        rgba(70, 130, 180, 0.95) 50%, 
        rgba(135, 206, 235, 0.95) 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    height: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

/* Shop Header */
/* ============ */

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.shop-title {
    color: white;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.shop-icon {
    font-size: 0.8em;
    animation: iconSpin 3s linear infinite;
}

.coins-display {
    background: rgba(255, 215, 0, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    border: 2px solid #FFD700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coins-icon {
    font-size: 1.2em;
    animation: coinSpin 2s ease-in-out infinite;
}

.coins-label {
    color: white;
    font-weight: bold;
}

.coins-value {
    color: #FFD700;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.close-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #FF4444;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: scale(1.1);
}

/* Shop Content */
/* ============= */

.shop-content {
    height: calc(100% - 100px);
    overflow-y: auto;
    padding-right: 10px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
}

/* Boat Cards */
/* =========== */

.boat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.boat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.boat-card.equipped {
    border: 3px solid #00FF7F;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.3);
    background: rgba(0, 255, 127, 0.1);
}

.boat-card.locked {
    opacity: 0.6;
    filter: grayscale(50%);
}

.boat-card.unavailable {
    opacity: 0.7;
    filter: grayscale(30%);
}

.boat-card.level-locked {
    border: 2px solid #9B59B6;
}

.boat-card.login-required {
    border: 2px solid #E74C3C;
    position: relative;
}

.boat-card.special-occasion {
    border: 2px solid #F39C12;
}

.boat-card.unobtainable {
    border: 2px solid #FF6B35;
}

/* Special boat card effects */
/* ========================== */

.boat-card.boat2 {
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
}

.boat-card.boat2:hover {
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.6);
}

.boat-card.boat3 {
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.4);
    background: rgba(139, 69, 19, 0.1);
}

.boat-card.boat3:hover {
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.7);
}

.boat-card.boat4 {
    box-shadow: 0 0 20px rgba(160, 82, 45, 0.4);
    background: rgba(160, 82, 45, 0.1);
}

.boat-card.boat4:hover {
    box-shadow: 0 0 30px rgba(160, 82, 45, 0.7);
}

.boat-card.boat5 {
    background: rgba(255, 255, 255, 0.1);
}

.boat-card.boat5:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Rarity Badges */
/* ============== */

.rarity-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.rarity-common { background: linear-gradient(45deg, #808080, #A0A0A0); color: white; }
.rarity-uncommon { background: linear-gradient(45deg, #00FF00, #32CD32); color: white; }
.rarity-rare { background: linear-gradient(45deg, #0080FF, #4169E1); color: white; }
.rarity-epic { background: linear-gradient(45deg, #8B00FF, #9932CC); color: white; }
.rarity-legendary { background: linear-gradient(45deg, #FFD700, #FFA500); color: black; }
.rarity-exclusive { background: linear-gradient(45deg, #FF0000, #DC143C); color: white; }

/* Status Badges */
/* ============== */

.owned-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #00FF7F, #32CD32);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
}

.unobtainable-badge {
    position: absolute;
    top: 40px;
    right: 10px;
    background: linear-gradient(45deg, #FF6B35, #FF8C42);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.6em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
}

.level-locked-badge {
    position: absolute;
    top: 40px;
    right: 10px;
    background: linear-gradient(45deg, #9B59B6, #8E44AD);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.6em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
}

.login-required-badge {
    position: absolute;
    top: 40px;
    right: 10px;
    background: linear-gradient(45deg, #E74C3C, #C0392B);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.6em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
}

.login-required-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.75), rgba(192, 57, 43, 0.75));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(1px);
}

.login-banner-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.login-banner-text {
    text-align: center;
    color: white;
}

.login-banner-title {
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.login-banner-subtitle {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 500;
}

.special-occasion-badge {
    position: absolute;
    top: 40px;
    right: 10px;
    background: linear-gradient(45deg, #F39C12, #E67E22);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.6em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
}

/* Boat Card Content */
/* ================== */

.boat-image-container {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.boat-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.boat-image:hover {
    transform: scale(1.1) rotate(5deg);
}

.boat-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* Fix dark backgrounds on specific boat images */
.boat-card.boat3 .boat-image img,
.boat-card.boat4 .boat-image img,
.boat-card.boat5 .boat-image img {
    filter: contrast(1.4) brightness(1.3) saturate(1.2) !important;
    background: transparent;
}

.boat-name {
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.boat-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.boat-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    font-size: 0.8em;
}

.stat-item {
    text-align: center;
    color: white;
}

.boat-price {
    color: #FFD700;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Boat Action Buttons */
/* =================== */

.boat-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-btn {
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
}

.buy-btn:hover {
    background: linear-gradient(135deg, #00FF7F, #32CD32);
    transform: translateY(-2px);
}

.buy-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.equip-btn {
    background: linear-gradient(135deg, #4682B4, #5F9EA0);
    color: white;
}

.equip-btn:hover {
    background: linear-gradient(135deg, #5F9EA0, #87CEEB);
    transform: translateY(-2px);
}

.equipped-btn {
    background: linear-gradient(135deg, #00FF7F, #32CD32);
    color: white;
    cursor: default;
}