
/* ==========================================================
   /assets/ui/ljh-header.css
   LJH HEADER – PUBLIC (v2 LOCKED – CLEAN)
   2026-02 – Glass panel + readability tuned
========================================================== */

/* ==========================================================
   HEADER WRAPPER (LOCKED HEIGHT)
========================================================== */

.ljh-header {
    position: relative;
    width: 100%;

    height: 260px;
    min-height: 260px;
    max-height: 260px;

    overflow: hidden; /* 🔒 inget får trycka ut */
    z-index: 40;
}


/* ==========================================================
   HEADER INNER (POSITIONING ONLY)
========================================================== */

.ljh-header-inner {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;

    box-sizing: border-box;
}


/* ==========================================================
   LEFT – LOGOTYPE / BANNER
========================================================== */

.header-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);

    padding: 0;
}

.header-left img {
    display: block;

    height: auto;
    max-height: 240px;   /* ⬅️ större banner */
    max-width: 480px;    /* ⬅️ bredare */

    width: auto;
    object-fit: contain;

    border-radius: 3px;

    filter:
        drop-shadow(0 0 18px rgba(96,165,250,0.35))
        drop-shadow(0 0 32px rgba(15,23,42,0.65));
}


/* ==========================================================
   CENTER – RESERVERAD YTA (FÖR FRAMTID)
========================================================== */

.header-center {
    flex: 1;
    height: 100%;
    max-width: var(--ljh-page-max);
    margin: 0 auto;
}


/* ==========================================================
   RIGHT – HEADER PANEL HOST (NO CONTENT STYLING HERE)
========================================================== */

.header-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    /* panelen är sin egen layout */
    display: block;
}


/* ==========================================================
   HEADER GLASS PANEL (NEW)
   Target: /components/version_stats_badge.php
   Structure:
     .header-panel
       .panel-section
         .panel-section-title
         .panel-version-row
       .panel-section
         .panel-section-title
         .panel-traffic-row
       a.panel-login-btn
========================================================== */

.ljh-header .header-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;                /* luft mellan sektioner */

    padding: 20px 22px;       /* inre luft */
    min-width: 300px;
    border-radius: 20px;

    background: linear-gradient(
        180deg,
        rgba(30, 60, 110, 0.55),
        rgba(15, 35, 70, 0.80)
    );

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(120, 180, 255, 0.35);

    box-shadow:
        0 0 28px rgba(80,150,255,0.35),
        inset 0 0 18px rgba(255,255,255,0.06);

    /* Bastext – viktig för läsbarhet */
    color: rgba(241,245,249,0.92);
}


/* ==========================================================
   SECTIONS + TITLES
========================================================== */

.ljh-header .panel-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ljh-header .panel-section-title {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: rgba(191,219,254,0.88); /* ljus blågrå label */
    opacity: 1;                    /* 🔒 inga mörka labels */
}


/* ==========================================================
   VERSION ROW
========================================================== */

.ljh-header .panel-version-row {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 1.10rem;
    font-weight: 650;
    line-height: 1.25;

    color: rgba(241,245,249,0.96);
}

.ljh-header .version-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.ljh-header .version-text {
    color: rgba(241,245,249,0.96);
}


/* ==========================================================
   TRAFFIC ROW
========================================================== */

.ljh-header .panel-traffic-row {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 1.00rem;
    line-height: 1.2;

    color: rgba(226,232,240,0.94);
}

.ljh-header .panel-traffic-row span {
    opacity: 0.88; /* labels lite lägre, men läsbara */
}

.ljh-header .panel-traffic-row strong {
    font-size: 1.15rem;
    font-weight: 750;
    color: #ffffff;

    text-shadow: 0 0 10px rgba(56,189,248,0.18); /* subtil “lift” */
}

.ljh-header .dot-separator {
    opacity: 0.55;
}


/* ==========================================================
   LOGIN BUTTON (INSIDE PANEL)
========================================================== */

.ljh-header .panel-login-btn {
    margin-top: 2px;
    padding: 10px 14px;

    border-radius: 14px;

    font-size: 1.05rem;
    font-weight: 650;

    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);

    text-align: center;
    text-decoration: none;

    /* blågrå i vila – bra kontrast mot glaset */
    color: rgba(226,232,240,0.95);

    transition: all 0.25s ease;
}

.ljh-header .panel-login-btn:hover {
    color: #38bdf8; /* neonblå */

    text-shadow:
        0 0 6px rgba(56,189,248,0.8),
        0 0 12px rgba(56,189,248,0.6),
        0 0 20px rgba(56,189,248,0.4);

    animation: bluePulse 1.8s ease-in-out infinite;
    transform: translateY(-1px);
}


/* ==========================================================
   BLUE LIGHT PULSE (HOVER)
========================================================== */

@keyframes bluePulse {
    0% {
        text-shadow:
            0 0 6px rgba(56,189,248,0.6),
            0 0 12px rgba(56,189,248,0.4);
    }

    50% {
        text-shadow:
            0 0 10px rgba(56,189,248,1),
            0 0 22px rgba(56,189,248,0.9),
            0 0 34px rgba(56,189,248,0.6);
    }

    100% {
        text-shadow:
            0 0 6px rgba(56,189,248,0.6),
            0 0 12px rgba(56,189,248,0.4);
    }
}




