/**
 * LangSynSEO frontend styles.
 *
 * Manual and optional floating language switcher styles.
 */

.langsynseo-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    line-height: 1.4;
}

.langsynseo-switcher__item {
    color: inherit;
    text-decoration: none;
}

.langsynseo-switcher__item:hover,
.langsynseo-switcher__item:focus {
    text-decoration: underline;
}

.langsynseo-switcher__item.is-active {
    font-weight: 700;
    cursor: default;
}

.langsynseo-switcher--buttons {
    gap: 0.5rem;
}

.langsynseo-switcher__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    text-decoration: none;
}

.langsynseo-switcher__button:hover,
.langsynseo-switcher__button:focus {
    text-decoration: none;
}

.langsynseo-switcher__button.is-active {
    opacity: 0.7;
}

.langsynseo-switcher--dropdown {
    display: inline-block;
}

.langsynseo-switcher__select {
    max-width: 100%;
    min-height: 2.25rem;
}

.langsynseo-floating-switcher {
    position: fixed;
    z-index: 99999;
    max-width: calc(100vw - 32px);
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    font-size: 14px;
    line-height: 1.3;
}

.langsynseo-floating-switcher--top-right {
    top: 16px;
    right: 16px;
}

.langsynseo-floating-switcher--top-left {
    top: 16px;
    left: 16px;
}

.langsynseo-floating-switcher--bottom-right {
    right: 16px;
    bottom: 16px;
}

.langsynseo-floating-switcher--bottom-left {
    bottom: 16px;
    left: 16px;
}

.langsynseo-floating-switcher .langsynseo-switcher__item {
    color: #1f2937;
}

.langsynseo-floating-switcher .langsynseo-switcher__item.is-active {
    color: #111827;
}

.langsynseo-floating-switcher.langsynseo-switcher--buttons {
    padding: 0.3rem;
}

.langsynseo-floating-switcher .langsynseo-switcher__button {
    min-height: 1.9rem;
    border: 0;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
}

.langsynseo-floating-switcher .langsynseo-switcher__button.is-active {
    background: #111827;
    color: #ffffff;
    opacity: 1;
}

.langsynseo-floating-switcher.langsynseo-switcher--dropdown {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.langsynseo-floating-switcher .langsynseo-switcher__select {
    min-height: 2.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0 2rem 0 0.8rem;
    background-color: #ffffff;
    color: #1f2937;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

@media (max-width: 600px) {
    .langsynseo-floating-switcher--top-right,
    .langsynseo-floating-switcher--top-left {
        top: 10px;
    }

    .langsynseo-floating-switcher--bottom-right,
    .langsynseo-floating-switcher--bottom-left {
        bottom: 10px;
    }

    .langsynseo-floating-switcher--top-right,
    .langsynseo-floating-switcher--bottom-right {
        right: 10px;
    }

    .langsynseo-floating-switcher--top-left,
    .langsynseo-floating-switcher--bottom-left {
        left: 10px;
    }
}
