/* =============================================
   WPML Elementor Language Switcher — Styles
   ============================================= */

/* ── Base Layout ─────────────────────────────── */

.welf-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.welf-layout-vertical {
    flex-direction: column;
    align-items: flex-start;
}

.welf-item {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.welf-flag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.welf-flag-img {
    display: block;
    height: 24px;
    width: auto;
    object-fit: cover;
}

.welf-flag-emoji {
    line-height: 1;
}

.welf-name {
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* ── Flag Styles ─────────────────────────────── */

/* Flat — clean, no effects */
.welf-style-flat .welf-flag-img {
    box-shadow: none;
    border: none;
}

/* Modern — subtle shadow & border */
.welf-style-modern .welf-flag-img {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* 3D — depth effect */
.welf-style-3d .welf-flag-img {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2),
                0 1px 2px rgba(0, 0, 0, 0.12);
    transform: perspective(600px) rotateY(-3deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welf-style-3d .welf-item:hover .welf-flag-img {
    transform: perspective(600px) rotateY(0deg) translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22),
                0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Realistic — glossy shine overlay + shadow */
.welf-style-realistic .welf-flag {
    position: relative;
    overflow: hidden;
    display: inline-flex;
}

.welf-style-realistic .welf-flag-img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.welf-style-realistic .welf-flag::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.30) 0%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(0, 0, 0, 0.00) 50%,
        rgba(0, 0, 0, 0.06) 100%
    );
    pointer-events: none;
}

/* ── Active Language Indicators ──────────────── */

.welf-active-bold .welf-item.welf-active .welf-name {
    font-weight: 700;
}

.welf-active-underline .welf-item.welf-active {
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
}

.welf-active-opacity .welf-item:not(.welf-active) {
    opacity: 0.45;
}

.welf-active-opacity .welf-item:not(.welf-active):hover {
    opacity: 0.8;
}
