/* Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
    font-family: "Yekan", sans-serif;
}

.language-dropdown__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    width: fit-content;
    margin-inline-end: 12px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    user-select: none;
}

.language-dropdown__toggle-home {
    margin-inline-end: 0 !important;
}

.language-dropdown__menu-home {
    margin-top: 16px !important;
}

.language-dropdown__toggle:hover {
    color: #ce425b;
}

.language-dropdown__menu {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    /* prevent clicks when hidden */
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    margin: 0;
    margin-top: 4px;
    padding: 0.5rem 0;
    list-style: none;
    background-color: #fff;
    /* border: 1px solid #ddd; */
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.language-dropdown__item a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.language-dropdown__item a:hover {
    background-color: #f5f5f5;
}


.language-dropdown.active .language-dropdown__menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding-inline: 8px;
}

.language-dropdown__toggle-arrow::before {
    height: 16px;
    content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIj48cGF0aCBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJNMTkuOTIgOC45NWwtNi41MiA2LjUyYy0uNzcuNzctMi4wMy43Ny0yLjggMEw0LjA4IDguOTUiPjwvcGF0aD48L3N2Zz4=");
    display: inline-block;
    margin-inline-end: 4px;
    transition: transform 0.3s ease;
}

.language-dropdown.active .language-dropdown__toggle-arrow::before {
    transform: rotate(-180deg);
}

.toolbar-lang-btn {
    border-radius: 100%;
    background-color: white;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
}





/* ========================== */
/* تبلت (تا 1024px) */
@media (max-width: 1024px) {
    .toolbar-lang-btn {
        width: 40px;
        height: 40px;
    }

    .language-dropdown__toggle {
        font-size: 0.85rem;
    }
}

/* ========================== */
/* موبایل (تا 768px) */
@media (max-width: 768px) {
    .toolbar-lang-btn {
        width: 35px;
        height: 35px;
    }

    .language-dropdown__toggle {
        font-size: 0.8rem;
        padding: 0;
    }

    .language-dropdown__menu {
        min-width: 120px;
        font-size: 5px;
        right: auto;
        left: 0%;
        transform: translateX(-50%) translateY(-10px);
    }

    .language-dropdown.active .language-dropdown__menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* ========================== */
/* موبایل‌های خیلی کوچک (تا 480px) */
@media (max-width: 480px) {
    .toolbar-lang-btn {
        width: 30px;
        height: 30px;
    }

    .language-dropdown__toggle {
        font-size: 0.7rem;
    }

    .language-dropdown__menu {
        min-width: 100px;
        font-size: 5px;
        padding: 4px 0;
    }

    .language-dropdown__item a {
        padding: 0.4rem 0.8rem;
        font-size: 12px;
    }
}


