
/* ==========================================================
   /assets/ui/ljh-header.css - V 2.0 : 2025/12/20
   LJH HEADER – PUBLIC BASE
   ----------------------------------------------------------
   Applies ONLY to public pages (index.php)
   - Structure & positioning only
   - No page background
   - No app-specific styling
========================================================== */

/* ==========================================================
   HEADER WRAPPER
========================================================== */

.ljh-header {
    position: relative;
    top: -6px;       /* 👈 JUST DETTA */
    left: 0;
    width: 100%;
    min-height: 260px;

    background: transparent; /* släpper igenom core-bakgrunden */
    z-index: 40;
}


/* ==========================================================
   HEADER INNER (PUBLIC / index.php)
========================================================== */

.ljh-header-inner {
    position: relative;
    max-width: var(--ljh-page-max);
    margin: 0 auto;

    /* Space for hero logotype on the left */
    padding-left: 440px;
    padding-right: 220px; /* 👈 plats för stats + login */

    display: flex;
    align-items: center;
    justify-content: center; /* 👈 VIKTIG ÄNDRING */
    gap: 2rem;

    min-height: 260px;

    /* Subtilt läsbart band – ingen ägd bakgrund */
    background: linear-gradient(
        to right,
        rgba(15,23,42,0.35),
        rgba(15,23,42,0.55),
        rgba(15,23,42,0.35)
    );

    border-radius: 0 0 18px 18px;
}


/* ==========================================================
   HERO LOGOTYPE (PUBLIC)
========================================================== */

.header-left {
    position: absolute;
    left: 10px;
    top: 0;                /* 👈 sitter exakt i toppen */
    padding-top: 6px;      /* 👈 kontrollerad luft */
    

    transform: none;       /* 👈 ta bort translate */
    z-index: 4;
}


.header-hero {
    width: 420px;
    height: 240px;

    background-color: transparent;
    background-image: url('/assets/pics/ljhwebb_logotype.png');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;

    border-radius: 0 0 12px 12px;

    filter:
        drop-shadow(0 0 18px rgba(96,165,250,0.35))
        drop-shadow(0 0 32px rgba(15,23,42,0.65));
}

/* ==========================================================
   NAVIGATION (PUBLIC)
========================================================== */

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 5;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    line-height: 1.2;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 6px 0;

    color: var(--ljh-text-soft);
    text-decoration: none;

    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--ljh-aqua-light);
}

/* ==========================================================
   HEADER RIGHT AREA (PUBLIC COMPONENTS)
========================================================== */

.header-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}



/* ==========================================================
   STATS PILL (PUBLIC – allowed glass component)
========================================================== */

.stats-pill {
    display: flex;
    min-width: 220px;
    flex-direction: column;
    gap: 6px;

    padding: 10px 14px;
    border-radius: 16px;
    order: 2;

    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(148,163,184,0.55);

    text-align: left;
    color: var(--ljh-aqua-light);
    font-size: 0.85rem;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        inset 0 0 14px rgba(255,255,255,0.12),
        0 0 14px rgba(96,165,250,0.35);
}

/* Stats row */
.stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.stats-row .dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #22c55e;
    border-radius: 50%;
}

.stats-row .label {
    font-size: 12px;
    opacity: 0.75;
}

.stats-row .value {
    font-weight: 600;
}

/* ==========================================================
   LOGIN BUTTON (PUBLIC HEADER COMPONENT)
========================================================== */

.header-login-btn {
    padding: 0.55rem 1.3rem;
    border-radius: 12px;
    margin-bottom: -6px;   /* 👈 skapar pyramidkänslan */
    order: 1;

    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.34);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #dbeafe;
    font-weight: 600;
    text-decoration: none;
    z-index: 2;

    box-shadow:
        inset 0 0 22px rgba(255,255,255,0.25),
        0 0 22px rgba(56,189,248,0.35);
}



