/* Maps Page Styles */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #667eea;
    --accent-hover: #764ba2;
    --border-color: #3a3a3a;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Games Watch Section */
.games-watch-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #1e1e2e 100%);
    padding: 25px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.games-watch-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: slideGlow 3s linear infinite;
}

@keyframes slideGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.games-watch-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    overflow: hidden;
    position: relative;
}

.games-watch-list {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    padding: 10px 0;
    align-items: center;
    width: max-content;
}

/* Game Watch Item */
.game-watch-item {
    flex: 0 0 140px;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    transform: scale(0.8) translateZ(0);
    filter: brightness(0.6);
}

.game-watch-item.active {
    opacity: 1;
    transform: scale(1.15) translateZ(0);
    z-index: 20;
    filter: brightness(1);
    margin: 0 20px;
}

.game-watch-item:not(.active):hover {
    opacity: 0.6;
    transform: scale(0.85) translateY(-3px);
    filter: brightness(0.8);
}

.game-watch-item a {
    text-decoration: none;
    color: var(--text-primary);
}

.game-watch-item.active .game-img-wrap {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: 3px solid var(--accent);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.8), 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(102, 126, 234, 0.8), 0 4px 15px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 10px 40px rgba(102, 126, 234, 1), 0 6px 20px rgba(0, 0, 0, 0.7); }
}


@keyframes glow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Game Image Wrapper */
.game-img-wrap {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-img-wrap:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.game-img-wrap img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.game-img-wrap:hover img {
    transform: scale(1.1);
}

/* Fallback for broken images */
.game-img-wrap img[src*="default"] {
    opacity: 0.7;
    filter: brightness(0.8);
}

/* Game Image Overlay */
.game-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-img-wrap:hover .game-img-overlay {
    opacity: 1;
}

.game-hover-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.game-hover-label {
    color: white;
    font-size: 13px;
    display: flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

.game-hover-label i {
    color: var(--accent);
}

/* Game Title */
.game-title {
    margin-top: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.game-watch-item.active .game-title {
    color: var(--accent);
    font-weight: 700;
}

.game-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 12px;
    color: var(--text-secondary);
}

.game-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-value {
    color: var(--accent);
    font-weight: bold;
}

/* Game Stats Overlay */
.game-stats-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), transparent);
    padding: 8px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.game-card:hover .game-stats-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.8), transparent);
    opacity: 1;
}

.stat-overlay-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 6px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.stat-overlay-item i {
    font-size: 10px;
    color: #FFD700;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

.stat-overlay-item span {
    font-weight: bold;
    color: white;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Games Navigation */
.games-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.games-nav:hover:not(:disabled) {
    background: rgba(118, 75, 162, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.games-nav:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
}

.games-nav.prev {
    left: 10px;
}

.games-nav.next {
    right: 10px;
}

.games-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(80, 80, 80, 0.5);
}

.games-nav i {
    pointer-events: none;
}

/* Main Stats Section */
.main-stats {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item i {
    font-size: 24px;
    color: var(--accent);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Section */
.maps-search {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 150px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: -8px;
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.autocomplete-active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.05));
    color: var(--accent);
}

.autocomplete-item strong {
    color: var(--accent);
    font-weight: 600;
}

/* Maps Grid */
.maps-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.maps-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* Map Card */
.map-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.map-card:hover {
    background: var(--bg-card);
    transform: translateX(5px);
}

.map-image {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No map image placeholder */
.map-image img[src^="data:image/svg"] {
    opacity: 0.5;
    filter: grayscale(1);
}

/* Map Image Overlay Stats */
.map-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    backdrop-filter: blur(1px);
    transition: all 0.3s ease;
}

.map-card:hover .map-image-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 1) 100%);
    backdrop-filter: blur(2px);
}

/* Map Name in Overlay */
.overlay-map-name {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 5px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* Stats Container at Bottom */
.overlay-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

.overlay-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 3px 6px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.overlay-stat i {
    font-size: 10px;
    color: var(--accent);
    text-shadow: 0 0 3px rgba(102, 126, 234, 0.5);
}

.overlay-stat strong {
    font-weight: bold;
    color: white;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0 2px;
}

.overlay-stat span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: normal;
}

.map-info {
    flex: 1;
}

.map-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.map-game {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.map-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.map-stat i {
    color: var(--accent);
    font-size: 12px;
}

.map-stat strong {
    color: var(--text-primary);
}

/* Actions */
.map-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--accent);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .game-card {
        flex: 0 0 150px;
    }
    
    .game-icon {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 50px;
    }
    
    .game-card {
        flex: 0 0 120px;
    }
    
    .game-icon {
        width: 80px;
        height: 80px;
    }
    
    .game-icon .game-abbr {
        font-size: 24px;
    }
    
    .main-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .map-card {
        flex-direction: column;
        text-align: center;
    }
    
    .map-image {
        width: 100%;
        height: 150px;
    }
}
