/* Uses the same variables and container as your Vue app */
/* ===== DNX Footer (independent from header) ===== */
:root{
    --footer-bg: #1b5a49;       /* brand green – matches your Vue footer */
    --footer-fg: #ffffff;
    --footer-link: #ffffff;
    --footer-link-hover: #ffffff;
}

.site-footer{
    background-color: var(--footer-bg);
    color: var(--footer-fg);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    z-index: 5;
    box-shadow: 0 -2px 10px rgba(0,0,0,.05);
    height: 65px;
}

/* keep the rest exactly as before, just scope to .site-footer */
.site-footer .footer-content{ width:100%; margin:0 auto; display:flex; justify-content:space-between; align-items:center; }
.site-footer .footer-left{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.site-footer .footer-right{ display:flex; align-items:center; gap:24px; }
.site-footer .footer-logo{ height:24px; width:auto; }
.site-footer .copyright{ font-size:.85rem; color: var(--footer-fg); opacity:.9; }

.site-footer .footer-links{ display:flex; gap:24px; }
.site-footer .footer-links a{ color: var(--footer-link); text-decoration:none; font-size:.9rem; opacity:.9; transition:opacity .2s ease; }
.site-footer .footer-links a:hover{ opacity:1; color: var(--footer-link-hover); }

.site-footer .social-links{ display:flex; gap:16px; }
.site-footer .social-links a{ color: var(--footer-fg); font-size:1.2rem; opacity:.9; transition:opacity .2s ease; }
.site-footer .social-links a:hover{ opacity:1; }

/* responsive */
@media (max-width: 768px){
    .site-footer .footer-content{ flex-direction:column; gap:20px; padding:20px 16px; text-align:center; }
    .site-footer .footer-left{ align-items:center; }
    .site-footer .footer-right{ flex-direction:column; gap:16px; }
    .site-footer { height:auto }
}

/* keep footer identical in dark mode (like Vue) */
html[data-theme="dark"] .site-footer{
    background-color: #1b5a49;
    color: #ffffff;
}


/* Header shell */
.site-header{
    position: sticky; top: 0; z-index: 40;
    background: var(--header-bg, #ffffff);
    color: var(--header-fg, #111827);
    backdrop-filter: saturate(180%) blur(8px);
    transition: box-shadow .2s ease, background-color .2s ease;
    border-bottom: 1px solid color-mix(in oklab, var(--header-bg) 88%, #000 0%);
}
.site-header.is-scrolled{
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

/* Inner layout (shares .container from your Vue assets) */
.header-inner{
    height: 64px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* Brand */
.brand img{ height: 24px; width: auto; display: block }

/* Desktop nav */
.nav-links{
    display: none; gap: 8px; align-items: center;
}
@media (min-width: 768px){ .nav-links{ display: flex } }

.nav-links a, .nav-link{
    display: inline-flex; align-items: center; height: 40px;
    padding: 0 12px; border-radius: 10px;
    color: var(--header-link, #374151); text-decoration: none;
    transition: background-color .18s var(--ease-out, cubic-bezier(.2,.8,.2,1)),
    transform .18s var(--ease-out);
}
.nav-links a:hover, .nav-link:hover{ background: rgba(0,0,0,.05) }
.nav-links a:active, .nav-link:active{ transform: translateY(1px) }
.nav-link-active{ background: #111827; color: white !important }

/* Desktop actions */
.header-actions{
    display: none; gap: 8px; align-items: center;
}
@media (min-width: 768px){ .header-actions{ display: flex } }

/* Reuse your button tokens/classes from base.css */
.btn-primary{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding: 8px 14px; border-radius: 12px;
    background: var(--primary-600, #4f46e5); color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .16s;
}
.btn-primary:hover{ background: var(--primary-700, #4338ca) }
.btn-primary:active{ transform: translateY(1px) }

.btn-ghost{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding: 8px 12px; border-radius: 12px; color: var(--header-link, #374151);
    background: transparent; text-decoration: none; transition: background-color .16s, transform .16s;
}
.btn-ghost:hover{ background: rgba(0,0,0,.05) }
.btn-ghost:active{ transform: translateY(1px) }

/* Burger */
.burger{
    display: inline-flex; flex-direction: column; gap: 4px;
    width: 40px; height: 40px; border-radius: 10px;
    align-items: center; justify-content: center;
    background: transparent; border: 0; cursor: pointer;
    transition: background-color .16s;
}
.burger:hover{ background: rgba(0,0,0,.05) }
.burger span{ display:block; width:20px; height:2px; background: currentColor; border-radius: 2px; }
@media (min-width: 768px){ .burger{ display: none } }

/* Mobile nav */
.mobile-nav{
    border-top: 1px solid rgba(0,0,0,.08);
    background: var(--header-bg, #ffffff);
    padding: 12px 0; display: none;
}
.mobile-nav[style*="display: block"], .mobile-nav[x-cloak="false"]{ display: block } /* allow Alpine x-show */

.mobile-link{
    display:block; padding: 10px 12px; margin: 2px 0; border-radius: 10px;
    color: var(--header-link, #374151); text-decoration:none;
    transition: background-color .16s, transform .16s;
}
.mobile-link:hover{ background: rgba(0,0,0,.05) }
.mobile-link:active{ transform: translateY(1px) }

.mobile-actions{ display:flex; gap:8px; padding: 8px 12px; }
.mobile-actions .btn-ghost, .mobile-actions .btn-primary{ flex:1 }



/* =========================
   DNX Header – Vue-style parity for Razor markup
   Targets the classes in your .cshtml exactly.
   ========================= */

/* --------- Tokens / fallbacks --------- */
:root{
    --container-max: 1200px;
    --container-pad: 16px;

    --ease-out: cubic-bezier(.2,.8,.2,1);
    --ease-in: cubic-bezier(.4,0,1,1);
}

.menu-overlay{ display: none; }
.menu-overlay.open{ display: flex; }  /* this is the key */

/* Optional icon font normalizer (Font Awesome) */
.fas { line-height: 1; display: inline-block; }

/* --------- Shell / global header --------- */
.global-header{
    position: sticky; top: 0; z-index: 40;
    background: var(--header-bg);
    color: var(--header-fg);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: box-shadow .2s ease, background-color .2s ease;
}
.global-header.is-scrolled{ /* add/remove via tiny JS if you want stronger shadow on scroll */
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

/* --------- Nav bar container --------- */
.navbar{
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* Main row: logo • title spacer • links & toggler */
.header-main-row{
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}

/* --------- Logo --------- */
.logo-container{ display: flex; align-items: center; }
.logo-dnx-image{ display: block; height: 24px; width: auto; }

/* --------- Title (center spacer on home it’s empty) --------- */
.header-title{
    flex: 1 1 auto;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--header-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 768px){
    .header-title{ font-size: 1.05rem; }
}

/* --------- Primary links (desktop only) --------- */
.nav-link-primary{
    display: none;                /* hidden by default, show with .d-md-flex */
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--header-link);
    text-decoration: none;
    transition: background-color .18s var(--ease-out), transform .18s var(--ease-out);
}
.nav-link-primary:hover{ background: var(--header-hover); }
.nav-link-primary:active{ transform: translateY(1px); }

/* --------- Toggler (mobile) --------- */
.navbar-toggler{
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    border: 0; background: transparent; color: var(--header-fg);
    cursor: pointer;
    transition: background-color .16s var(--ease-out);
}
.navbar-toggler:hover{ background: var(--header-hover); }

/* bars icon space + notification dot */
.nav-bars{ position: relative; display: inline-flex; align-items: center; justify-content: center; }
.notification-icon{
    position: absolute; top: -2px; right: -2px;
    width: 8px; height: 8px; border-radius: 999px;
    background: #ef4444; /* red-500 */
    box-shadow: 0 0 0 2px var(--header-bg);
}

/* --------- Mobile overlay menu --------- */
.menu-overlay{
    position: fixed; inset: 0;
    background: rgba(17,24,39,.5);          /* neutral-900 @ 50% */
    backdrop-filter: blur(4px);
    display: none;                           /* hidden by default */
    align-items: flex-start; justify-content: center;
    z-index: 9999;
}
.menu-overlay.open{ display: flex; }       /* toggle this class via JS */

/* Drawer */
.menu-content{
    width: min(640px, 92vw);
    margin-top: 10px;
    background: var(--header-bg);
    color: var(--header-fg);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0,0,0,.18);
    padding: 12px 12px 8px;
    transform: translateY(-8px) scale(.98);
    opacity: 0;
    transition: transform .22s var(--ease-out), opacity .22s var(--ease-out);
}
.menu-overlay.open .menu-content{
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button */
.close-menu{
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    border: 0; background: transparent; color: var(--header-fg);
    cursor: pointer;
    transition: background-color .16s var(--ease-out);
    margin-left: auto;
}
.close-menu:hover{ background: var(--header-hover); }

/* Menu list (your _LoginPartial renders inside) */
.menu-list{
    list-style: none; margin: 8px 4px 6px; padding: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.menu-list a{
    display: block; padding: 10px 10px; border-radius: 10px;
    color: var(--header-link); text-decoration: none;
    transition: background-color .16s var(--ease-out), transform .16s var(--ease-out);
}
.menu-list a:hover{ background: var(--header-hover); }
.menu-list a:active{ transform: translateY(1px); }

/* --------- Responsive adjustments --------- */
@media (min-width: 768px){
    .header-main-row{ gap: 16px; }
    .navbar{ padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 1024px){
    .navbar{ padding-left: 24px; padding-right: 24px; }
}

/* --------- Optional: Inter font parity like Vue --------- */
@supports (font-variation-settings: normal){
    header, .global-header, .navbar{
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    }
}

/* ===== Overlay menu item look & feel ===== */
.menu-link{
    display:flex; align-items:center; gap:12px;
    padding:10px 12px; border-radius:10px;
    color: var(--header-link, #374151); text-decoration:none;
    transition: background-color .16s var(--ease-out, cubic-bezier(.2,.8,.2,1)),
    transform .16s var(--ease-out);
}
.menu-link:hover{ background: var(--header-hover, rgba(0,0,0,.05)); }
.menu-link:active{ transform: translateY(1px); }

/* icon left, text, arrow right */
.menu-icon{ width:20px; height:20px; display:inline-flex; align-items:center; justify-content:center; opacity:.9; }
.menu-text{ flex:1 1 auto; }
.menu-arrow{ width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; opacity:.6; }

/* little red dot when there are notifications (Offers Made) */
.notification-menu-icon{
    margin-left:8px; width:8px; height:8px; border-radius:999px; background:#ef4444;
    box-shadow: 0 0 0 2px var(--header-bg, #fff);
}

/* Dark-mode toggle pill inside the row */
.toggle-switch{
    --toggle-w: 42px; --toggle-h: 22px;
    position: relative; width: var(--toggle-w); height: var(--toggle-h);
    border-radius: 999px; background: rgba(0,0,0,.12); flex: 0 0 auto;
    transition: background-color .16s var(--ease-out);
}
.toggle-knob{
    position: absolute; top: 2px; left: 2px;
    width: calc(var(--toggle-h) - 4px); height: calc(var(--toggle-h) - 4px);
    background: #fff; border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.2);
    transition: transform .18s var(--ease-out);
}
html[data-theme="dark"] .toggle-switch{ background: rgba(255,255,255,.25); }
html[data-theme="dark"] .toggle-knob{ transform: translateX(calc(var(--toggle-w) - var(--toggle-h))); }


:root { --header-height: 64px; }

/* Make the overlay fill the viewport and align from the top (below header) */
body .menu-overlay{
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start !important;   /* force top alignment */
    justify-content: center;
    padding-top: calc(var(--header-height) + 8px); /* sit below header */
    z-index: 2147483647;                  /* above everything */
    background: rgba(17,24,39,.5);
    backdrop-filter: blur(4px);
}

/* Show when toggled */
body .menu-overlay.open{ display: flex !important; }

/* The sheet itself: no extra top margin; responsive width */
body .menu-overlay .menu-content{
    margin: 0;                            /* override any margins */
    width: min(640px, 92vw);
    border-radius: 14px;
    transform: translateY(-8px) scale(.98);
    opacity: 0;
    transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .22s cubic-bezier(.2,.8,.2,1);
}
body .menu-overlay.open .menu-content{
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Optional: full-width drawer look under header (uncomment if you prefer) */
/*
body .menu-overlay .menu-content{
  width: 100%;
  max-width: var(--container-max, 1200px);
  border-radius: 0 0 14px 14px;
}
*/

/* Lock page scroll when menu is open */
body.no-scroll { overflow: hidden; }