/* Glass Nav Component */

@font-face {
    font-family: "gordita";
    src: url("../../fonts/Gordita-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "gordita";
    src: url("../../fonts/Gordita-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "gordita";
    src: url("../../fonts/Gordita-Bold.otf") format("opentype");
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "gordita";
    src: url("../../fonts/Gordita-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

.glass-header {
    --gn-primary-2: #0024A6;
    --gn-primary-1: #113DD9;
    --gn-primary0: #265CFF;
    --gn-primary1: #77A2FF;
    --gn-primary3: #BAD2FF;
    --gn-primary4: #EBF1FF;
    --gn-text-header: #0d0e0f;
    --gn-text-body: #000000;
}

/* ===================== DESKTOP NAV ===================== */
.glass-header {
    position: relative;
    z-index: 1000;
    font-family: "gordita", sans-serif;
}

.glass-header .glass-bg {
    padding: 14px 40px;
    position: relative;
    overflow: visible;
}

.glass-header .glass-nav {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 16px rgba(0, 36, 166, 0.06);
}

.glass-header .glass-logo img {
    height: 34px;
    width: auto;
}

.glass-header .glass-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.glass-header .glass-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gn-text-body);
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    font-family: "gordita", sans-serif;
}

.glass-header .glass-links a:hover {
    background: var(--gn-primary4);
    color: var(--gn-primary0);
    text-decoration: none;
}

.glass-header .glass-links a.active-item {
    background: var(--gn-primary4);
    color: var(--gn-primary0);
    font-weight: 600;
}

.glass-header .glass-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.glass-header .glass-dash {
    font-size: 14px;
    font-weight: 500;
    color: var(--gn-text-body);
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    font-family: "gordita", sans-serif;
}

.glass-header .glass-dash:hover {
    background: var(--gn-primary4);
    color: var(--gn-primary0);
    text-decoration: none;
}

.glass-header .glass-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--gn-primary0);
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    cursor: pointer;
    font-family: "gordita", sans-serif;
    transition: all 0.2s;
    text-decoration: none;
}

.glass-header .glass-cta:hover {
    box-shadow: 0 4px 16px rgba(38, 92, 255, 0.35);
    text-decoration: none;
    color: #fff;
}

.glass-header .glass-cta img.glass-login-icon {
    height: 16px;
    width: auto;
    filter: brightness(0) invert(1);
}

.glass-header .glass-cta.icon-only {
    padding: 8px 12px;
    border-radius: 10px;
}

.glass-header .glass-cta.icon-only img.glass-login-icon {
    height: 18px;
}

/* --- Language dropdown (desktop) --- */
.glass-lang-wrapper {
    position: relative;
}

.glass-header .glass-lang-btn {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gn-text-body);
    cursor: pointer;
    font-family: "gordita", sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
}

.glass-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e6edf7;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    min-width: 80px;
    z-index: 100;
    overflow: hidden;
}

.glass-lang-dropdown.is-open {
    display: block;
}

.glass-lang-option {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gn-text-body);
    text-decoration: none;
    text-align: center;
    transition: background 0.15s;
    font-family: "gordita", sans-serif;
}

.glass-lang-option:hover {
    background: var(--gn-primary4);
    color: var(--gn-primary0);
    text-decoration: none;
}

.glass-lang-option.active {
    color: var(--gn-primary0);
    font-weight: 600;
}

/* ===================== MOBILE NAV ===================== */

.glass-mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.glass-mobile-bar .glass-logo img {
    height: 34px;
    width: auto;
}

.glass-hamburger {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile overlay */
.glass-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 20px 24px;
    overflow-y: auto;
}

.glass-mobile-overlay.is-open {
    display: flex;
}

.glass-mobile-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.glass-mobile-overlay__header .glass-logo img {
    height: 34px;
    width: auto;
}

.glass-mobile-overlay__links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.glass-mobile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--gn-text-body);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s;
    font-family: "gordita", sans-serif;
}

.glass-mobile-link:hover {
    background: var(--gn-primary4);
    text-decoration: none;
    color: var(--gn-primary0);
}

.glass-mobile-link.active-item {
    color: var(--gn-primary0);
    font-weight: 600;
}

.glass-mobile-link svg {
    flex-shrink: 0;
}

.glass-mobile-link span {
    line-height: 22px;
}

.glass-mobile-divider {
    border: none;
    border-top: 1px solid #eef2f7;
    margin: 16px 8px;
}

.glass-mobile-overlay__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 8px;
}

.glass-mobile-registration {
    font-size: 16px;
    font-weight: 600;
    color: var(--gn-text-body);
    text-decoration: none;
    text-align: center;
    font-family: "gordita", sans-serif;
}

.glass-mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 0;
    background: var(--gn-primary0);
    color: #ffffff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: box-shadow 0.2s;
    font-family: "gordita", sans-serif;
}

.glass-mobile-login-btn:hover {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(38, 92, 255, 0.35);
}

.glass-mobile-login-btn img {
    height: 18px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Language chip row (mobile) */
.glass-mobile-lang-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 18px;
    background: #f5f7fb;
    border-radius: 12px;
    padding: 6px;
}

.glass-mobile-lang {
    flex: 1;
    display: block;
    padding: 10px 0;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--gn-text-body);
    cursor: pointer;
    border-radius: 8px;
    font-family: "gordita", sans-serif;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
}

.glass-mobile-lang:hover {
    text-decoration: none;
    color: var(--gn-text-body);
}

.glass-mobile-lang.active {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1399px) {
    .glass-header .glass-links a {
        font-size: 13px;
        padding: 7px 8px;
    }
    .glass-header .glass-dash {
        font-size: 13px;
        padding: 6px 12px;
    }
    .glass-header .glass-cta {
        font-size: 13px;
        padding: 7px 16px;
    }
}

/* Below 992px: hide desktop nav, show mobile bar */
@media (max-width: 991px) {
    .glass-header .glass-bg {
        display: none;
    }
    .glass-mobile-bar {
        display: flex;
    }
}
