/* Info Overlay - Simplified Modern Design */
.info-overlay {
    position: fixed;
    inset: 0;
    background-image: url('/assets/background/background.jpg');
    background-position: center;
    background-size: cover;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    pointer-events: none;
}

.info-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(1px);
    z-index: 0;
}

body.overlay-visible {
    overflow: hidden;
}

body.overlay-visible .info-overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    overflow: hidden;
}

.info-overlay-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 6rem 4rem;
    box-sizing: border-box;
    z-index: 1;
    justify-content: center;
}

.info-overlay-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    min-height: 320px;
}

/* Left side - Navigation */
.info-overlay-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 2rem;
    min-width: 240px;
    justify-content: center;
}

.overlay-nav-button {    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-comfortaa);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: var(--font-comfortaa-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    text-align: left;
    width: fit-content;
}

.overlay-nav-button:hover {
    color: var(--primary-color);
    transform: translateX(1rem);
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

/* Right side - Social Grid */
.info-overlay-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 240px;
    align-self: stretch;
}

.info-overlay-right-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 320px;
}

/* Minimal Social link cards with subtle brand-colored animations */
.overlay-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.overlay-social-link:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-icon {
    width: 35%;
    height: 35%;
    fill: rgba(255, 255, 255, 0.7);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.overlay-social-link:hover .social-icon {
    fill: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

/* Brand-specific minimal hover effects */
.overlay-social-link[data-link-key="youtube"]:hover { 
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.3);
}

.overlay-social-link[data-link-key="discord"]:hover { 
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.3);
}

.overlay-social-link[data-link-key="twitter"]:hover { 
    background: rgba(29, 161, 242, 0.15);
    border-color: rgba(29, 161, 242, 0.3);
}

.overlay-social-link[data-link-key="instagram"]:hover { 
    background: rgba(245, 96, 64, 0.15);
    border-color: rgba(245, 96, 64, 0.3);
}

.overlay-social-link[data-link-key="facebook"]:hover { 
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.3);
}

.overlay-social-link[data-link-key="steam"]:hover { 
    background: rgba(102, 192, 244, 0.15);
    border-color: rgba(102, 192, 244, 0.3);
}

/* Simple fade-in animation */
@keyframes socialFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

body.overlay-visible .overlay-social-link {
    animation: socialFadeIn 0.5s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

/* Simple active state */
.overlay-social-link:active {
    transform: translateY(-3px) scale(0.98);
    transition: all 0.1s ease;
}

/* Focus state for accessibility */
.overlay-social-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Bottom section - Language Selector */
.info-overlay-bottom {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.language-selector {
    position: relative;
}

.language-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    padding: 12px 16px;
    min-width: 160px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.language-dropdown-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.current-language {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.language-name {
    font-size: 14px;
    font-family: var(--font-primary);
    font-weight: var(--font-comfortaa-medium);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.language-selector.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    font-weight: var(--font-comfortaa-medium);
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
}

.language-option[data-active="true"] {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
}

/* Responsive design */
@media (max-width: 1024px) {
    .info-overlay-content {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .info-overlay-content {
        padding: 2rem;
    }
    
    .info-overlay-top {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .info-overlay-left {
        padding-right: 0;
        align-items: center;
    }

    .overlay-nav-button {
        text-align: center;
    }

    .info-overlay-right {
        justify-content: center;
    }
    
    .info-overlay-right-inner {
        max-width: 280px;
    }

    .language-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .info-overlay-content {
        padding: 1.5rem;
    }
    
    .info-overlay-right-inner {
        grid-template-columns: repeat(2, 1fr);
        max-width: 200px;
    }
    
    .language-button {
        width: 36px;
        height: 36px;
    }
}