/*==================== SPACE PAGE STYLES ====================*/

/* Stats Counter Animation */
.stats__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat__card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat__card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat__number {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Map Hover Effect */
.svg__container path:hover {
    fill: #0383AD !important;
    filter: brightness(1.3) !important;
    transition: fill 0.2s ease, filter 0.2s ease !important;
    cursor: pointer;
}

/* Visited countries keep their color on hover */
.svg__container path.visited:hover {
    fill: #FF7F00 !important;
    filter: brightness(1.3) !important;
}

/* Country Tooltip Enhancement */
#name {
    position: fixed !important;
    background: linear-gradient(135deg, #0383AD 0%, #0266AD 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    pointer-events: none !important;
    z-index: 9999 !important;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#name.show {
    opacity: 1 !important;
}

/* Prevent jittering */
.countryName {
    pointer-events: all;
    transition: fill 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

/* Music Section */
.music__container {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.music__title {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.spotify__embed {
    border-radius: 12px;
    width: 100%;
    height: 380px;
}

/* Smooth Scroll Animation */
html {
    scroll-behavior: smooth;
}

section {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax Background */
.home__container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea22 0%, #764ba222 100%);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Interactive Country Click Effect */
.countryName {
    cursor: pointer;
}

.countryName.visited {
    fill: #F26711;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .stats__container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat__number {
        font-size: 2.5rem;
    }

    .music__container {
        padding: 2rem;
    }

    #name {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .stat__card {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }

    #name {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
}
