
/* ==========================================================
   /ui/css/public/ljh-cookie.css
   LJH – Cookie Consent
   ----------------------------------------------------------
   Ansvar:
   - Cookie popup overlay och glasruta
   - Titel, text och länk
   - Cookie-alternativ med checkboxar
   - Knappar (accept, ghost, danger)
   - Animationer (fadeIn, popupIn)
   ----------------------------------------------------------
   Ersätter: /assets/style/cookies.css
   Används av: /components/cookies_eng.php
   Laddas via: head_loader.php (publika sidan)
========================================================== */


/* ==========================================================
   OVERLAY
========================================================== */

.ljh-cookie-popup {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ljhCookieFadeIn 0.4s ease forwards;
}

.hidden { display: none !important; }


/* ==========================================================
   POPUP-LÅDA
========================================================== */

.ljh-cookie-box {
    width: 420px;
    max-width: 95vw;
    padding: 2rem;
    border-radius: 22px;
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.45),
        inset 0 0 22px rgba(255,255,255,0.12);
    position: relative;
    color: #e2e8f0;
    animation: ljhCookiePopupIn 0.35s ease forwards;
}


/* ==========================================================
   STÄNG-KNAPP
========================================================== */

.ljh-cookie-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    color: #dbeafe;
    padding: 4px 9px;
    font-size: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.ljh-cookie-close:hover {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 0 12px rgba(96,165,250,0.45);
}


/* ==========================================================
   TYPOGRAFI
========================================================== */

.ljh-cookie-title {
    font-size: 1.55rem;
    margin-bottom: 0.6rem;
    color: #f1f5f9;
    font-weight: 700;
}

.ljh-cookie-text {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.ljh-cookie-link {
    display: block;
    margin-bottom: 1.4rem;
    color: #93c5fd;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ljh-cookie-link:hover { color: #bfdbfe; }


/* ==========================================================
   COOKIE-ALTERNATIV
========================================================== */

.ljh-cookie-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
}

.ljh-cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.ljh-cookie-option input {
    margin-top: 0.2rem;
    accent-color: #3b82f6;
}


/* ==========================================================
   KNAPPAR
========================================================== */

.ljh-cookie-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.ljh-cookie-btn {
    flex: 1;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    font-family: inherit;
}

.ljh-cookie-btn.primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
}
.ljh-cookie-btn.primary:hover {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    box-shadow: 0 0 14px rgba(59,130,246,0.4);
}

.ljh-cookie-btn.ghost {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #e2e8f0;
}
.ljh-cookie-btn.ghost:hover {
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.ljh-cookie-btn.danger {
    background: rgba(220,38,38,0.25);
    border-color: rgba(220,38,38,0.45);
    color: #fecaca;
}
.ljh-cookie-btn.danger:hover {
    background: rgba(220,38,38,0.35);
    box-shadow: 0 0 12px rgba(220,38,38,0.3);
}


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

@keyframes ljhCookieFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ljhCookiePopupIn {
    from { transform: scale(0.92) translateY(8px); opacity: 0; }
    to   { transform: scale(1) translateY(0);      opacity: 1; }
}

