
/* ============================================================
   /assets/ui/ljh-start.css
   LJH START UI – WORLD: Public / Marketing
   Version 1.2 – 2026-04-01
   - Gammalt Allan-block borttaget
   - Allan Widget V1.0 scopad under .world-start
   ------------------------------------------------------------
   WORLD RULE:
   - All CSS MÅSTE vara scopad med .world-start
   - Ingen reset
   - Ingen body/html-styrning
   - Ingen global bakgrund
============================================================ */

/*
WORLD RULE:
Denna fil får ALDRIG:
- göra reset
- styra body / html
- påverka andra worlds
*/

/* ============================================================
   WORLD START – TOKENS (lokala variationer)
============================================================ */

.world-start {
    --start-glass: rgba(255,255,255,0.06);
    --start-border: rgba(255,255,255,0.14);
    --start-shadow: 0 20px 60px rgba(0,0,0,0.45);
    --start-accent: #2aa4f4;
    --start-accent-soft: rgba(42,164,244,0.25);
}

/* ============================================================
   START – HEADER
============================================================ */

.world-start .ljh-start-header {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: linear-gradient(
        180deg,
        rgba(10,20,35,0.85),
        rgba(10,20,35,0.65)
    );
    border-bottom: 1px solid var(--start-border);
}

.world-start .ljh-start-header .ljh-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.world-start .ljh-start-header .start-nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
}

.world-start .ljh-start-header .start-nav a {
    color: #cfe6ff;
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
}

.world-start .ljh-start-header .start-nav a:hover {
    color: #ffffff;
}

.world-start .ljh-start-header .header-login-btn {
    margin-left: 20px;
}

/* ============================================================
   START – BANNER SLOT
============================================================ */

.world-start .ljh-start-banner {
    max-width: 1320px;
    margin: 24px auto 0;
    padding: 0 28px;
}

/* ============================================================
   START – MAIN LAYOUT
============================================================ */

.world-start .ljh-start-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 28px 80px;
}

.world-start .ljh-start-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 36px;
}

@media (max-width: 1024px) {
    .world-start .ljh-start-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   START – LEFT COLUMN
============================================================ */

.world-start .ljh-start-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

/* ============================================================
   START – SIDEBAR
============================================================ */

.world-start .ljh-start-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.world-start .start-side-card {
    background: var(--start-glass);
    border: 1px solid var(--start-border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--start-shadow);
}

.world-start .start-side-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* ============================================================
   START – CONTENT BLOCKS
============================================================ */

.world-start .ljh-start-block {
    background: var(--start-glass);
    border-radius: 20px;
    padding: 34px;
    box-shadow: var(--start-shadow);
}

/* ============================================================
   START – Centered blocks (Scoped)
============================================================ */

.world-start .ljh-container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ============================================================
   START – Hero Refinement
============================================================ */

.world-start .ljh-hero-centered {
    text-align: center;
}

.world-start .ljh-hero {
    display: block;
}

.world-start .ljh-hero-inner {
    display: block;
}

.world-start .ljh-hero-title,
.world-start .ljh-hero-subtitle {
    display: block;
}

.world-start .ljh-hero-centered .ljh-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.world-start .ljh-hero-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 0.9rem;
}

.world-start .ljh-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ljh-text-soft);
    max-width: 640px;
    margin: 0 auto;
}

.world-start .ljh-panel {
    background: var(--start-glass);
    border: 1px solid var(--start-border);
    box-shadow: var(--start-shadow);
    border-radius: 20px;
    padding: 2.2rem 2rem;
}

/* ============================================================
   START – FORCE CTA BUTTON
============================================================ */

.world-start .ljh-btn-primary.is-start {
    display: inline-flex;
    background: linear-gradient(135deg, #4cc2ff, #2a8cff);
    color: #ffffff;
    padding: 16px 36px;
    min-width: 260px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    text-shadow: none;
    box-shadow:
        0 0 28px rgba(60,180,255,0.8),
        0 16px 36px rgba(0,0,0,0.65);
}

.world-start .ljh-btn-primary.is-start:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 0 42px rgba(60,180,255,1),
        0 22px 44px rgba(0,0,0,0.75);
}

/* ============================================================
   START – FORMS
============================================================ */

.world-start .ljh-form {
    gap: 1.6rem;
}

.world-start .ljh-form label {
    margin-bottom: 2px;
    line-height: 1.4;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e6f2ff;
}

.world-start .ljh-form-field {
    gap: 0.45rem;
}

.world-start .ljh-form input,
.world-start .ljh-form textarea {
    padding: 0.95rem 1.1rem;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.28),
        rgba(255,255,255,0.18)
    );
    border: 1px solid rgba(255,255,255,0.32);
}

.world-start .ljh-form-actions {
    margin-top: 1.6rem;
}

.world-start .ljh-form input::placeholder,
.world-start .ljh-form textarea::placeholder {
    color: rgba(160, 200, 255, 0.38);
}

.world-start .ljh-form input:focus,
.world-start .ljh-form textarea:focus {
    border-color: rgba(75, 165, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(75, 165, 255, 0.12);
}

/* ============================================================
   BOOKING MODAL
============================================================ */

.world-start .ljh-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    padding: 1rem;
}

.world-start .ljh-modal-box {
    background: linear-gradient(160deg, rgba(15,30,55,0.97), rgba(8,20,40,0.97));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.world-start .ljh-modal-box h2 {
    font-size: 1.35rem;
    color: #e8f3ff;
    margin: 0 0 0.6rem;
}

.world-start .ljh-modal-box p {
    color: rgba(180, 210, 255, 0.75);
    font-size: 0.95rem;
    margin: 0 0 1.4rem;
}

.world-start .slot-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.world-start .slot-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #d0e8ff;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.world-start .slot-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(120, 180, 255, 0.4);
}

.world-start .slot-item input[type="radio"] {
    accent-color: #4cc2ff;
    width: auto;
}

.world-start .modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================================
   ALLAN WIDGET V1.0
   Pulslinje + konversationschat
============================================================ */

.allan-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
}

.allan-bar {
    position: relative;
    height: 80px;        /* ← från 64px till 80px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    overflow: visible;   /* ← från hidden till visible */
}

.allan-canvas {
    position: absolute;
    top: -20px;          /* ← sträck uppåt 20px */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% + 20px);  /* ← kompensera för top */
}

.allan-name {
    position: relative;
    z-index: 2;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #00ff88;
    pointer-events: none;
    transition: font-size 0.2s ease;
}

.allan-window {
    position: absolute;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: min(440px, 92vw);
    background: linear-gradient(160deg, rgba(10,20,40,0.98), rgba(5,12,26,0.98));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.allan-window.is-open {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.allan-window-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.allan-window-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,255,136,0.12);
    border: 1px solid rgba(0,255,136,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: #00ff88;
    flex-shrink: 0;
}

.allan-window-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.allan-window-name {
    font-size: 13px;
    font-weight: 500;
    color: #00ff88;
}

.allan-window-status {
    font-size: 11px;
    color: rgba(0,255,136,0.5);
}

.allan-window-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.15s;
}

.allan-window-close:hover {
    color: rgba(255,255,255,0.8);
}

.allan-messages {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    max-height: 320px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.allan-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.55;
    word-break: break-word;
}

.allan-bubble-allan {
    background: rgba(42,100,200,0.18);
    border: 1px solid rgba(42,100,200,0.22);
    color: #c8deff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.allan-bubble-user {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e6f0ff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.allan-typing {
    padding: 10px 16px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.allan-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0,255,136,0.5);
    animation: allan-bounce 1.2s ease-in-out infinite;
}

.allan-typing span:nth-child(2) { animation-delay: 0.2s; }
.allan-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes allan-bounce {
    0%, 80%, 100% { transform: translateY(0);    opacity: 0.4; }
    40%           { transform: translateY(-6px); opacity: 1;   }
}

.allan-input-row {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    gap: 8px;
    align-items: center;
}

.allan-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 9px 13px;
    color: #e6f0ff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

.allan-input:focus {
    border-color: rgba(0,255,136,0.35);
}

.allan-input::placeholder {
    color: rgba(150,180,255,0.3);
}

.allan-send-btn {
    background: rgba(0,255,136,0.12);
    border: 1px solid rgba(0,255,136,0.28);
    border-radius: 10px;
    color: #00ff88;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.allan-send-btn:hover {
    background: rgba(0,255,136,0.22);
}


/* ============================================================
   START – TOP SECRET BLOCK
============================================================ */

.world-start .ljh-secret-block {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* BOMMEN */
.world-start .ljh-secret-boom {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-start .ljh-secret-arm {
    width: 90%;
    height: 12px;
    border-radius: 6px;
    background: repeating-linear-gradient(
        90deg,
        #f5c800 0px,
        #f5c800 20px,
        #1a1a1a 20px,
        #1a1a1a 40px
    );
    box-shadow:
        0 2px 8px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,200,0,0.2);
}

/* LAMPORNA */
.world-start .ljh-secret-lamp {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ffe566, #f5c800);
    box-shadow:
        0 0 8px 3px rgba(245,200,0,0.7),
        0 0 18px 6px rgba(245,200,0,0.4);
    flex-shrink: 0;
    z-index: 2;
}

.world-start .ljh-secret-lamp--left  { left: 0; }
.world-start .ljh-secret-lamp--right { right: 0; }

/* SKYLTEN */
.world-start .ljh-secret-sign {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.world-start .ljh-secret-icon {
    font-size: 1.4rem;
}

.world-start .ljh-secret-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f5c800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.world-start .ljh-secret-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.03em;
}

/* ============================================================
   TOP SECRET – LAMPGLOW ANIMATION
============================================================ */

@keyframes ljh-lamp-pulse {
    0%, 100% {
        box-shadow:
            0 0 8px 3px rgba(245,200,0,0.7),
            0 0 18px 6px rgba(245,200,0,0.4);
    }
    50% {
        box-shadow:
            0 0 14px 6px rgba(255,215,0,1),
            0 0 32px 12px rgba(255,200,0,0.65),
            0 0 48px 18px rgba(255,180,0,0.3);
    }
}

.world-start .ljh-secret-lamp {
    animation: ljh-lamp-pulse 2s ease-in-out infinite;
}



