
/* ============================================================
   /assets/style/banners.css – LJH Webb
   Nyhetsbanner med stabil rullning (Marquee)
   Version 4.5 – 2025-11-07
   ------------------------------------------------------------
   🎯 Funktioner:
   • Horisontell ticker med konstant hastighet (px/sek)
   • Sömlös loop (dubbelspår)
   • Startar omedelbart när sidan laddas
   • Pausas vid hover
   ============================================================ */


/* ============================================================
   [1] BASLAGER – Bannerutseende och färger
   DARK AQUA NEWS BANNER
========================================================== */



/* ============================================================
   banners.css – LJH Webb (Dark Aqua Edition)
   Komplett: Baslayout + ticker + frostat glas + premium CTA
============================================================ */


/* ============================================================
   [1] BAS – NEWS BANNER LAYOUT
========================================================== */

.ljh-news-banner {
    width: 100%;
    padding: 0.6rem 1.4rem;

    background: rgba(15, 23, 42, 0.55);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);

    display: flex;
    align-items: center;
    gap: 1.2rem;

    color: var(--ljh-text);
    font-size: 1.05rem;  /* Ökat från ~0.9rem */
    padding: 1rem 2rem;    /* större yta -- Mer luft runt text */
    min-height: 62px;      /* ger den ett definierat premiumformat */

    overflow: hidden;
    position: relative;
    z-index: 30;
}


/* Label */
.ljh-news-banner .banner-label {
    padding: 0.35rem 0.8rem;
    border-radius: var(--ljh-radius-md);
    font-weight: 600;
    color: var(--ljh-aqua-light);
    white-space: nowrap;
}


/* ============================================================
   [2] TICKER – VIEWPORT + TRACK
========================================================== */

.ljh-news-banner .ticker-viewport {
    position: relative;
    overflow: hidden;
    flex: 1;
    white-space: nowrap;
}

.ljh-news-banner .ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: ljhTicker 35s linear infinite;
}

/* Inre behållare – två kopior av raden */
.ljh-news-banner .ticker-inner {
    display: inline-flex;
    white-space: nowrap;
}

/* Enskild nyhet */
.ljh-news-banner .item {
    margin: 0 1.1rem;
    color: var(--ljh-text-soft);
    font-size: 1.0rem;
}

.ljh-news-banner .item a {
    color: inherit;
    text-decoration: none;
}

.ljh-news-banner .item a:hover {
    color: var(--ljh-aqua-light);
}

/* Separator (•) */
.ljh-news-banner .sep {
    margin: 0 0.8rem;
    color: var(--ljh-aqua-light);
    font-size: 1.1rem;
}

/* Själva rullningen */
@keyframes ljhTicker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.ljh-news-banner .end-sep {
    margin: 0 1.4rem;
    font-weight: 700;
    color: var(--ljh-aqua-light);
    opacity: 0.9;

    text-shadow: 
        0 0 6px rgba(96,165,250,0.65),
        0 0 12px rgba(96,165,250,0.45),
        0 0 20px rgba(56,189,248,0.35);
}



/* Pausa vid hover */
.ljh-news-banner .ticker-viewport:hover .ticker-track {
    animation-play-state: paused;
}



/* ============================================================
   [3] CTA-BUTTON (Glass)
========================================================== */

.ljh-news-banner .banner-cta {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.30);
    backdrop-filter: blur(14px); /* Mer blur = mer glas */
    padding: 0.45rem 1.1rem;

    box-shadow:
        inset 0 0 24px rgba(255,255,255,0.32), /* Inre glasskimmer */
        0 0 22px rgba(96,165,250,0.35),       /* Yttre aqua-glow */
        0 6px 14px rgba(0,0,0,0.35);          /* Premium depth */
}

.ljh-news-banner .banner-cta:hover {
    background: rgba(255,255,255,0.25);
    box-shadow:
        inset 0 0 30px rgba(255,255,255,0.38),
        0 0 30px rgba(96,165,250,0.45),
        0 6px 18px rgba(0,0,0,0.4);
}



/* ============================================================
   [4] PREMIUM – AQUA FROSTED EDGE (OPTIMERAD)
========================================================== */

/* Frosten ska ligga BAKOM text + knappar */
.ljh-news-banner::before,
.ljh-news-banner::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;

    /* Längre frost */
    width: 220px;

    pointer-events: none;
    z-index: 1; /* SÄNKT från 2 → frost ligger bakom allt */
}

/* Vänster frost */
.ljh-news-banner::before {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.14),
        rgba(255,255,255,0.06),
        transparent
    );
    backdrop-filter: blur(18px);
}

/* Höger frost */
.ljh-news-banner::after {
    right: 0;
    background: linear-gradient(
        to left,
        rgba(255,255,255,0.14),
        rgba(255,255,255,0.06),
        transparent
    );
    backdrop-filter: blur(18px);
}

/* Säkerställ att CTA ligger ovanpå frost */
.ljh-news-banner .banner-cta {
    position: relative;
    z-index: 5;
}

/* Label över frost */
.ljh-news-banner .banner-label {
    position: relative;
    z-index: 5;
}

/* Ticker-text över frost */
.ljh-news-banner .ticker-viewport,
.ljh-news-banner .ticker-track {
    position: relative;
    z-index: 4;
}

.item-wrap {
    display: inline-block;
    padding: 0 1.6rem; /* garanterad spacing */
}

.sep {
    display: inline-block;
    padding: 0 1rem;
    opacity: .9;
}




