/* Language Switcher Widget - Styles v1.2.0 */

.lsw-language-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
}

.lsw-flag-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease;
}

.lsw-flag-item a {
    display: block;
    text-decoration: none !important;
    border: none !important;
    outline: none;
}

/* Flag circle container */
.lsw-flag-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20), 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.lsw-flag-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    pointer-events: none;
}

/* Czech flag - shift right so the blue triangle is visible but centered */
.lsw-flag-item[data-lang="cz"] .lsw-flag-circle img {
    object-position: 40% center;
}

/* Inactive flags - full color */
.lsw-flag-item.lsw-inactive .lsw-flag-circle {
    opacity: 1;
    filter: none;
}

/* Hover on inactive */
.lsw-flag-item.lsw-inactive a:hover .lsw-flag-circle {
    opacity: 1;
    filter: saturate(1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: scale(1.08);
}

/* Active flag - glowing blue ring */
.lsw-flag-item.lsw-active .lsw-flag-circle {
    box-shadow:
        0 0 0 3px #ffffff,
        0 0 0 5px #2271b1,
        0 4px 16px rgba(34, 113, 177, 0.35);
    cursor: default;
}

/* Active indicator dot */
.lsw-flag-item.lsw-active::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #2271b1;
    border-radius: 50%;
    margin-top: 5px;
    box-shadow: 0 1px 3px rgba(34, 113, 177, 0.5);
}

/* Tooltip on hover */
.lsw-flag-item .lsw-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.78);
    color: #fff;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 100;
    letter-spacing: 0.01em;
}

.lsw-flag-item .lsw-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.78);
}

.lsw-flag-item:hover .lsw-tooltip {
    opacity: 1;
}
