/* UX Enhancements: Language Selector & Cookie Consent */
:root {
    --ux-primary: #0F172A;
    --ux-accent: #D4AF37;
    --ux-text: #1E293B;
    --ux-white: #FFFFFF;
    --ux-glass: rgba(255, 255, 255, 0.8);
    --ux-blur: blur(12px);
}

/* Language Modal */
#langModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#langModal.active {
    opacity: 1;
    visibility: visible;
}

.lang-container {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 32px;
    text-align: center;
    max-width: 650px;
    width: 90%;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#langModal.active .lang-container {
    transform: translateY(0);
}

.lang-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ux-accent), #c9a020);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ux-primary);
    font-size: 2.5rem;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.lang-title {
    color: var(--ux-primary);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.lang-subtitle {
    color: var(--ux-text);
    opacity: 0.6;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.lang-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.lang-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 30px 40px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 260px;
    position: relative;
    overflow: hidden;
}

.lang-card:hover {
    background: #f1f5f9;
    border-color: var(--ux-accent);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.lang-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.lang-card:hover::after {
    left: 100%;
}

.lang-card i {
    font-size: 3rem;
    color: var(--ux-accent);
    margin-bottom: 20px;
    display: block;
}

.lang-card h3 {
    color: var(--ux-primary);
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.lang-card p {
    color: var(--ux-text);
    opacity: 0.6;
    margin-bottom: 0;
}

/* Cookie Consent */
#cookieBanner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 24px;
    padding: 25px 40px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#cookieBanner.active {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
}

.cookie-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--ux-accent);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.cookie-text h4 {
    margin-bottom: 5px;
    font-weight: 800;
    color: var(--ux-primary);
}

.cookie-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--ux-text);
    opacity: 0.8;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    margin-left: 30px;
}

.btn-cookie {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-accept {
    background: var(--ux-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
}

.btn-accept:hover {
    background: var(--ux-accent);
    color: var(--ux-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-settings {
    background: rgba(15, 23, 42, 0.05);
    color: var(--ux-primary);
}

.btn-settings:hover {
    background: rgba(15, 23, 42, 0.1);
}

@media (max-width: 991px) {
    #cookieBanner {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
    }
    .cookie-content {
        flex-direction: column;
        margin-bottom: 25px;
    }
    .cookie-actions {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .btn-cookie {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .lang-container {
        padding: 30px 20px;
        border-radius: 24px;
    }
    .lang-logo {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .lang-title {
        font-size: 1.6rem;
    }
    .lang-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    .lang-options {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }
    .lang-card {
        width: 100%;
        max-width: 280px;
        padding: 20px;
        border-radius: 18px;
    }
}

