/* ================================================================
   LANGUAGE SELECTOR — Modal + Header Switcher
   ================================================================ */

/* First-visit language selection modal */
.lang-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lang-modal {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: langModalIn 0.35s ease-out;
    position: relative;
}

.lang-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.lang-modal__close:hover {
    color: #333;
}

@keyframes langModalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.lang-modal__header {
    margin-bottom: 1.5rem;
}

.lang-modal__header i {
    font-size: 2.5rem;
    color: #BC6C25;
    margin-bottom: 0.5rem;
    display: block;
}

.lang-modal__header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #283618;
    margin: 0.3rem 0;
}

.lang-modal__header p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.lang-modal__options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.lang-option:hover {
    border-color: #BC6C25;
    background: #fdf8f3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(188, 108, 37, 0.15);
}

.lang-option:active {
    transform: translateY(0);
}

.lang-option__flag {
    font-size: 1.8rem;
    line-height: 1;
}

.lang-option__name {
    font-weight: 600;
    color: #283618;
    font-size: 1rem;
}

.lang-option__native {
    font-size: 0.8rem;
    color: #888;
    margin-left: auto;
}

/* Header language switcher dropdown */
.lang-switcher {
    position: fixed;
    top: 8px;
    right: 12px;
    z-index: 1050;
}

.lang-switcher__btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 4px 10px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.lang-switcher__btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lang-switcher__btn i {
    font-size: 0.85rem;
}

.lang-switcher__menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    padding: 0.25rem;
    background: #fff;
    margin-top: 4px;
    list-style: none;
    z-index: 1051;
}

.lang-menu-item {
    display: block;
    width: 100%;
    border: none;
    background: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.lang-menu-item:hover {
    background: #fdf8f3;
}

.lang-menu-item.active {
    background: #BC6C25;
    color: #fff;
}

/* Responsive */
@media (max-width: 576px) {
    .lang-modal {
        padding: 1.5rem;
        max-width: 320px;
    }

    .lang-modal__header h3 {
        font-size: 1.2rem;
    }

    .lang-option {
        padding: 0.7rem 0.85rem;
    }

    .lang-switcher {
        top: 6px;
        right: 50px;
    }

    .lang-switcher__btn {
        padding: 3px 8px;
        font-size: 0.75rem;
    }
}
