/* ===================================
   Language Toggle Styles
   NimkarGuruji - Multi-Language System
   =================================== */

/* ===== LANGUAGE TOGGLE BUTTON ===== */
.lang-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(122, 31, 31, 0.06), rgba(201, 169, 97, 0.06));
    border: 1px solid rgba(122, 31, 31, 0.12);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(122, 31, 31, 0.12), rgba(201, 169, 97, 0.12));
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 31, 31, 0.15);
}

/* Language Icon */
.lang-toggle-btn .lang-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 8px;
}

.lang-toggle-btn .lang-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-toggle-btn i.fa-chevron-down {
    font-size: 9px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.lang-toggle.active .lang-toggle-btn i.fa-chevron-down {
    transform: rotate(180deg);
}

/* ===== LANGUAGE DROPDOWN ===== */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid rgba(201, 169, 97, 0.15);
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    transform: rotate(45deg);
}

.lang-toggle.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(201, 169, 97, 0.08);
    position: relative;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), rgba(122, 31, 31, 0.05));
    padding-left: 22px;
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(122, 31, 31, 0.08), rgba(201, 169, 97, 0.08));
    color: var(--primary-color);
    font-weight: 600;
}

.lang-option .lang-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--light-bg);
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.lang-option .lang-name {
    flex: 1;
}

.lang-option .lang-native {
    font-size: 11px;
    color: var(--text-light);
    opacity: 0.8;
}

.lang-option.active::after {
    content: '';
    position: absolute;
    right: 15px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* ===== MOBILE LANGUAGE TOGGLE ===== */
.mobile-lang-toggle {
    display: flex;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    margin-bottom: 15px;
}

.mobile-lang-btn {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid rgba(201, 169, 97, 0.2);
    border-radius: 12px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.mobile-lang-btn:hover {
    border-color: var(--primary-color);
    background: rgba(122, 31, 31, 0.03);
}

.mobile-lang-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(122, 31, 31, 0.3);
}

.mobile-lang-btn .lang-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 11px;
}

.mobile-lang-btn.active .lang-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== HEADER INTEGRATION ===== */
.nav-cta .lang-toggle {
    margin-right: 12px;
}

/* Hide on smaller screens - show in mobile menu instead */
@media (max-width: 1024px) {
    .nav-cta .lang-toggle {
        display: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mobile-lang-toggle {
        flex-direction: row;
    }

    .mobile-lang-btn {
        padding: 12px 14px;
        font-size: 13px;
    }
}
