/* ==============================================================================
   ANTIGRAVITY I18N SYSTEM — LANGUAGE SWITCHER STYLES
   Author: Ilham Sugiri Portfolio System
   ============================================================================== */

.lang-switch-wrapper {
    position: relative;
    display: inline-block;
    user-select: none;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: #06b6d4;
    color: #fff;
    transform: translateY(-1px);
}

.lang-btn .globe-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.lang-btn .arrow-icon {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.lang-btn.open .arrow-icon {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(11, 17, 30, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(6, 182, 212, 0.15);
    min-width: 210px;
    padding: 0.4rem;
    z-index: 1000;
}

.lang-dropdown.show {
    display: block;
    animation: langFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes langFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lang-option.active {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    font-weight: 700;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.lang-option .flag {
    font-size: 1.05rem;
    line-height: 1;
}

.lang-option .tag-badge {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(6, 182, 212, 0.15);
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
