/*
===============================================================================
FILE: /public_html/assets/css/header.css
PROJECT: Jassas Net
VERSION: V1001-CLEAN-DARK-SPL-INSPIRED
FUNCTION: Clean shared header and side menu styling
AUTHOR: Jassas Net
STATUS: PRODUCTION READY
CREATED: 2026-06-17
UPDATED: 2026-06-17
===============================================================================
*/

.jassas-header{
    width:100%;
    min-height:88px;
    padding:16px 24px;
    background:var(--j-header-bg,#fff);
    border-bottom:1px solid var(--j-border-soft,#e7eef8);
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:relative;
    z-index:1000;
}

.jassas-brand{
    width:62px;
    height:62px;
    border-radius:22px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 12px 30px rgba(15,40,80,.08);
}

.jassas-brand img{
    width:48px;
    height:48px;
    object-fit:contain;
    border-radius:16px;
}

.burger-btn,
.close-menu{
    width:62px;
    height:62px;
    border:0;
    border-radius:22px;
    background:#071437;
    color:#93c5fd;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 12px 30px rgba(7,20,55,.18);
}

.burger-btn svg,
.close-menu svg{
    width:30px;
    height:30px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.6;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.55);
    z-index:9998;
}

.menu-overlay[hidden]{
    display:none;
}

.side-menu{
    position:fixed;
    top:0;
    bottom:0;
    width:min(86vw,390px);
    background:var(--j-surface,#fff);
    color:var(--j-text,#1e293b);
    z-index:9999;
    overflow-y:auto;
    padding-bottom:92px;
    box-shadow:0 24px 70px rgba(0,0,0,.28);
    transition:transform .25s ease;
    -webkit-overflow-scrolling:touch;
}

html[dir="rtl"] .side-menu{
    right:0;
    transform:translateX(105%);
}

html[dir="ltr"] .side-menu{
    left:0;
    transform:translateX(-105%);
}

html[dir="rtl"] .side-menu.open,
html[dir="rtl"] .side-menu.active,
html[dir="rtl"] .side-menu[aria-hidden="false"]{
    transform:translateX(0);
}

html[dir="ltr"] .side-menu.open,
html[dir="ltr"] .side-menu.active,
html[dir="ltr"] .side-menu[aria-hidden="false"]{
    transform:translateX(0);
}

.menu-top{
    min-height:112px;
    padding:22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    border-bottom:1px solid var(--j-border-soft,#e7eef8);
}

.menu-brand{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.menu-brand img{
    width:54px;
    height:54px;
    object-fit:contain;
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 26px rgba(15,40,80,.08);
}

.menu-brand h2{
    margin:0;
    color:var(--j-title,#071437);
    font-size:23px;
    font-weight:900;
    line-height:1.2;
}

.menu-brand p{
    margin:4px 0 0;
    color:var(--j-muted,#64748b);
    font-size:13px;
    font-weight:800;
}

.close-menu{
    width:56px;
    height:56px;
    flex:0 0 auto;
}

.menu-links{
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.menu-links a{
    min-height:58px;
    padding:8px 10px;
    border-radius:18px;
    display:flex;
    align-items:center;
    gap:12px;
    color:var(--j-title,#071437);
    font-size:15px;
    font-weight:900;
    transition:.18s ease;
}

.menu-links a:hover{
    background:var(--j-surface-2,#f8fbff);
}

.menu-icon{
    width:44px;
    height:44px;
    border-radius:16px;
    background:var(--j-primary-soft,#eff6ff);
    color:var(--j-primary,#1463ff);
    border:1px solid var(--j-border,#dbeafe);
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
}

.menu-icon svg,
.theme-toggle-icon svg{
    width:23px;
    height:23px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.menu-divider{
    height:1px;
    background:var(--j-border-soft,#e7eef8);
    margin:12px 0;
}

.menu-title{
    margin:4px 4px 8px;
    color:var(--j-muted,#64748b);
    font-size:13px;
    font-weight:900;
}

.theme-toggle-row{
    margin-bottom:8px;
}

.theme-toggle-btn{
    width:100%;
    min-height:58px;
    border:1px solid var(--j-border,#dbeafe);
    border-radius:18px;
    background:var(--j-surface-2,#f8fbff);
    color:var(--j-title,#071437);
    font-family:inherit;
    font-size:15px;
    font-weight:900;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0 12px;
}

.theme-toggle-left{
    display:flex;
    align-items:center;
    gap:10px;
}

.theme-toggle-icon{
    width:42px;
    height:42px;
    border-radius:15px;
    background:var(--j-primary-soft,#eff6ff);
    color:var(--j-primary,#1463ff);
    display:flex;
    align-items:center;
    justify-content:center;
}

.theme-switch-track{
    width:50px;
    height:30px;
    border-radius:999px;
    padding:4px;
    background:#cbd5e1;
    transition:.2s ease;
    flex:0 0 auto;
}

.theme-switch-thumb{
    width:22px;
    height:22px;
    border-radius:999px;
    background:#fff;
    box-shadow:0 3px 8px rgba(15,23,42,.22);
    transition:.2s ease;
}

html[data-theme="dark"] .theme-switch-track{
    background:var(--j-primary,#3b82f6);
}

html[data-theme="dark"] .theme-switch-thumb{
    transform:translateX(-20px);
}

html[dir="ltr"][data-theme="dark"] .theme-switch-thumb{
    transform:translateX(20px);
}

.language-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.language-pill{
    min-height:54px;
    border-radius:18px;
    border:1px solid var(--j-border,#dbeafe);
    background:var(--j-surface-2,#f8fbff);
    color:var(--j-title,#071437);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-size:14px;
    font-weight:900;
}

.language-pill span{
    width:32px;
    height:32px;
    border-radius:12px;
    background:var(--j-primary-soft,#eff6ff);
    color:var(--j-primary,#1463ff);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:900;
}

.language-pill.active{
    background:var(--j-primary,#1463ff);
    color:#fff;
    border-color:var(--j-primary,#1463ff);
}

.language-pill.active span{
    background:rgba(255,255,255,.18);
    color:#fff;
}

.menu-footer{
    padding:16px;
    text-align:center;
    color:var(--j-muted,#64748b);
    font-size:14px;
    font-weight:900;
}

/* Dark */
html[data-theme="dark"] .jassas-header{
    background:#071437;
    border-color:rgba(255,255,255,.08);
}

html[data-theme="dark"] .side-menu{
    background:#0b1736;
    color:#e2e8f0;
}

html[data-theme="dark"] .menu-top{
    border-color:rgba(255,255,255,.10);
}

html[data-theme="dark"] .menu-links a{
    color:#f8fafc;
}

html[data-theme="dark"] .menu-links a:hover{
    background:#102452;
}

html[data-theme="dark"] .menu-icon,
html[data-theme="dark"] .theme-toggle-icon{
    background:#102452;
    color:#93c5fd;
    border-color:rgba(255,255,255,.12);
}

html[data-theme="dark"] .theme-toggle-btn,
html[data-theme="dark"] .language-pill{
    background:#102452;
    color:#f8fafc;
    border-color:rgba(255,255,255,.12);
}

html[data-theme="dark"] .menu-divider{
    background:rgba(255,255,255,.10);
}

/* Mobile */
@media(max-width:760px){
    .jassas-header{
        min-height:74px;
        padding:10px 14px;
    }

    .jassas-brand{
        width:58px;
        height:58px;
        border-radius:20px;
    }

    .jassas-brand img{
        width:46px;
        height:46px;
    }

    .burger-btn{
        width:58px;
        height:58px;
        border-radius:20px;
    }

    .side-menu{
        width:min(88vw,360px);
    }

    body.menu-open .bottom-nav,
    body.menu-open .jassas-bottom-nav,
    body.menu-open .mobile-bottom-nav,
    body.menu-open .jassas-mobile-footer{
        display:none !important;
    }
}