/* ==========================================================================
   Ecclivion - Modern Navigation & GTranslate Styling (Xero Inspired)
   ========================================================================== */

/* Navbar Frost & Glow */
.ecclivion-navbar {
    background: rgba(0, 43, 85, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ecclivion-navbar.scrolled {
    background: rgba(0, 32, 64, 0.98);
    box-shadow: 0 10px 30px -10px rgba(0, 15, 35, 0.6);
    border-bottom-color: rgba(212, 175, 55, 0.25);
}

/* Nav links styling */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #eecf6d;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #eecf6d);
    border-radius: 999px;
}

/* Xero-style Mega Dropdown for Artikel (Compact & Neat) */
.dropdown-menu-xero {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.98);
    transform-origin: top left;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 14px 34px -4px rgba(0, 39, 82, 0.18), 0 0 0 1px rgba(0, 39, 82, 0.06);
}

.group:hover .dropdown-menu-xero {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: all 0.15s ease;
    text-decoration: none;
}

.dropdown-item-card:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.dropdown-item-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 142, 208, 0.08);
    color: #188ED0;
    font-size: 13px;
    transition: all 0.15s ease;
}

.dropdown-item-card:hover .dropdown-item-icon {
    background: linear-gradient(135deg, #188ED0, #0d5178);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(24, 142, 208, 0.25);
}

/* ==========================================================================
   GTranslate Integration & Harmonization
   Makes gtranslate_wrapper match the 38px rounded pill button aesthetic
   ========================================================================== */
.gtranslate_wrapper {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    vertical-align: middle !important;
    height: 38px !important;
}

/* Base override for GTranslate container */
html body .gtranslate_wrapper .gt_float_switcher,
html body div.gt_float_switcher {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 9999px !important;
    overflow: visible !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    border: none !important;
    height: 38px !important;
    line-height: 38px !important;
}

/* Selected button styling (Unified 38px pill button) */
html body .gtranslate_wrapper .gt_float_switcher .gt-selected,
html body div.gt_float_switcher .gt-selected {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 9999px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    overflow: visible !important;
}

html body .gtranslate_wrapper .gt_float_switcher .gt-selected:hover,
html body div.gt_float_switcher .gt-selected:hover {
    background-color: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25) !important;
}

/* Inner content wrapper */
html body .gtranslate_wrapper .gt_float_switcher .gt-selected .gt-current-lang,
html body div.gt_float_switcher .gt-selected .gt-current-lang {
    padding: 0 12px 0 10px !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    height: 36px !important;
    line-height: 36px !important;
}

/* Flag inside selected */
html body .gtranslate_wrapper .gt_float_switcher img,
html body div.gt_float_switcher img {
    width: 20px !important;
    height: 14px !important;
    border-radius: 3px !important;
    object-fit: cover !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Lang code text */
html body .gtranslate_wrapper .gt_float_switcher .gt-selected .gt-current-lang span.gt-lang-code,
html body div.gt_float_switcher .gt-selected .gt-current-lang span.gt-lang-code {
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    top: 0 !important;
    display: inline-block !important;
}

/* Arrow inside selected */
html body .gtranslate_wrapper .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow,
html body div.gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow {
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    background-image: none !important;
    border: solid #d4af37 !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    -webkit-transform: rotate(45deg) !important;
    margin-left: 2px !important;
    margin-top: -3px !important;
    transition: transform 0.25s ease !important;
}

html body .gtranslate_wrapper .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow.gt_arrow_rotate,
html body div.gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow.gt_arrow_rotate {
    transform: rotate(-135deg) !important;
    -webkit-transform: rotate(-135deg) !important;
    margin-top: 3px !important;
}

/* Options dropdown panel */
html body .gtranslate_wrapper .gt_float_switcher .gt_options,
html body div.gt_float_switcher .gt_options {
    background: rgba(0, 36, 71, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px -8px rgba(0, 15, 35, 0.85), 0 0 0 1px rgba(212, 175, 55, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 6px !important;
    top: 44px !important;
    right: 0 !important;
    left: auto !important;
    min-width: 155px !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(212, 175, 55, 0.4) transparent !important;
}

html body .gtranslate_wrapper .gt_float_switcher .gt_options::-webkit-scrollbar,
html body div.gt_float_switcher .gt_options::-webkit-scrollbar {
    width: 4px !important;
}

html body .gtranslate_wrapper .gt_float_switcher .gt_options::-webkit-scrollbar-thumb,
html body div.gt_float_switcher .gt_options::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4) !important;
    border-radius: 4px !important;
}

html body .gtranslate_wrapper .gt_float_switcher .gt_options a,
html body div.gt_float_switcher .gt_options a {
    color: #e2e8f0 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

html body .gtranslate_wrapper .gt_float_switcher .gt_options a img,
html body div.gt_float_switcher .gt_options a img {
    width: 18px !important;
    height: 13px !important;
    border-radius: 2px !important;
    object-fit: cover !important;
    margin-right: 2px !important;
}

html body .gtranslate_wrapper .gt_float_switcher .gt_options a:hover,
html body div.gt_float_switcher .gt_options a:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #eecf6d !important;
    transform: translateX(2px) !important;
}

/* Xero Unified Action Button Style */
.btn-nav-primary {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #d4af37 0%, #f3d77d 50%, #d4af37 100%);
    color: #002244;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px 0 rgba(212, 175, 55, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
}

.btn-nav-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(212, 175, 55, 0.5);
    filter: brightness(1.05);
}

.btn-nav-ghost {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 9999px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-nav-ghost:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}
