
/* ==========================================================
   /ui/css/public/ljh-header.css
   LJH – Public Header
   ----------------------------------------------------------
   Ansvar:
   - Header wrapper med låst höjd
   - Logotyp (vänster)
   - Reserverad centeryta
   - Header glass panel (höger)
   - Sektioner, version-rad och trafikrad
   - Login-knapp med hover-animation
   ----------------------------------------------------------
   Version: 2.0 – Glass panel + readability tuned
   Används av: /start_site/header_htm.php
   Laddas via: head_loader.php (publika sidan)
========================================================== */


/* ==========================================================
   HEADER WRAPPER
========================================================== */

.ljh-header {
    position: relative;
    width: 100%;
    height: 260px;
    min-height: 260px;
    max-height: 260px;
    overflow: hidden;
    z-index: 40;
}


/* ==========================================================
   HEADER INNER
========================================================== */

.ljh-header-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}


/* ==========================================================
   VÄNSTER – Logotyp
========================================================== */

.header-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
}

.header-left img {
    display: block;
    height: auto;
    max-height: 240px;
    max-width: 480px;
    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
========================================================== */

.header-center {
    flex: 1;
    height: 100%;
    max-width: var(--ljh-page-max);
    margin: 0 auto;
}


/* ==========================================================
   HÖGER – Panel host
========================================================== */

.header-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
}


/* ==========================================================
   HEADER GLASS PANEL
   Används av: /components/version_stats_badge.php
========================================================== */

.ljh-header .header-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 22px;
    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);
    color: rgba(241,245,249,0.92);
}


/* ==========================================================
   SEKTIONER
========================================================== */

.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);
}


/* ==========================================================
   VERSION-RAD
========================================================== */

.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); }


/* ==========================================================
   TRAFIK-RAD
========================================================== */

.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; }

.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);
}

.ljh-header .dot-separator { opacity: 0.55; }


/* ==========================================================
   LOGIN-KNAPP
========================================================== */

.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;
    color: rgba(226,232,240,0.95);
    transition: all 0.25s ease;
}

.ljh-header .panel-login-btn:hover {
    color: #38bdf8;
    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);
}


/* ==========================================================
   ANIMATIONER
========================================================== */

@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); }
}


