/* Language Flags - Circular Style */
.c-flags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
}

.c-flags form {
    display: none;
}

.c-flags__flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    overflow: visible;
    position: relative;
}

.c-flags__flag.active {
    display: flex;
}

.c-flags:hover .c-flags__flag:not(.active) {
    display: flex;
}

.c-flags__flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.c-flags__flag::after {
    content: attr(data-lang-name);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.c-flags__flag:hover::after {
    opacity: 1;
}

.c-flags__flag:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.c-flags__flag.active {
    border-color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* For non-transparent header */
.c-header:not(.is-transparent) .c-flags__flag {
    border-color: rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.05);
}

.c-header:not(.is-transparent) .c-flags__flag:hover {
    border-color: rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.c-header:not(.is-transparent) .c-flags__flag.active {
    border-color: rgba(0, 0, 0, 0.6);
    background-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
