/* Nordlys Craft ApS CSS | Palette: Kinetic Cobalt */
:root {
    --primary: #14E0FF;
    --primary-dark: #00BBE6;
    --secondary: #FF2FD0;
    --accent: #FFD447;
    --bg: #090B1D;
    --surface: #141B36;
    --surface-hover: #1A2447;
    --text-primary: #EAF6FF;
    --text-dim: #A8BCD7;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-subtle: rgba(20, 224, 255, 0.15);
    --transition-snappy: 0.2s ease-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-snappy); }
a:hover, a:focus { color: var(--accent); }
ul { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-dim { color: var(--text-dim); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.pb-0 { padding-bottom: 0 !important; }
.w-100 { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary); }
h3 { font-size: 1.4rem; color: var(--text-primary); }
p { margin-bottom: 1rem; }

/* Container & Grid */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 4rem 0; }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.split-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .split-layout { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 3.5rem; }
    .section-padding { padding: 6rem 0; }
}
@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Buttons */
.btn {
    display: inline-block; padding: 0.8rem 1.5rem; border-radius: 4px; font-weight: 600; font-family: var(--font-heading); text-transform: uppercase; border: 2px solid transparent; cursor: pointer; transition: all var(--transition-snappy); text-align: center;
}
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(20, 224, 255, 0.4); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover, .btn-secondary:focus { background: #E61BB5; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 47, 208, 0.4); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover, .btn-outline:focus { background: rgba(20, 224, 255, 0.1); color: var(--primary); }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }

/* Badges */
.badge { display: inline-block; padding: 0.3rem 0.6rem; font-size: 0.75rem; font-weight: bold; border-radius: 20px; text-transform: uppercase; margin-bottom: 0.5rem; }
.badge-accent { background: var(--accent); color: var(--bg); }

/* Form Elements */
.form-input {
    width: 100%; padding: 0.8rem; background: var(--bg); border: 1px solid var(--border-subtle); border-radius: 4px; color: var(--text-primary); font-family: var(--font-body); font-size: 1rem; transition: border var(--transition-snappy);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(20, 224, 255, 0.2); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: var(--text-dim); }

/* Header & Nav */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border-subtle); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.main-nav { display: none; gap: 2rem; }
.main-nav a { font-family: var(--font-heading); text-transform: uppercase; font-weight: bold; color: var(--text-dim); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); }
.header-actions { display: none; }
.mobile-menu-toggle { background: transparent; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.mobile-menu-toggle span { display: block; width: 25px; height: 2px; background: var(--text-primary); transition: var(--transition-snappy); }

@media (min-width: 768px) {
    .main-nav { display: flex; }
    .header-actions { display: block; }
    .mobile-menu-toggle { display: none; }
}

/* Mobile Nav Active state (handled by JS via body class) */
body.menu-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--surface); padding: 2rem; border-bottom: 1px solid var(--border-subtle);
}

/* Live Ticker */
.live-slate-ticker { background: var(--secondary); color: #fff; padding: 0.5rem 0; overflow: hidden; position: relative; font-weight: bold; font-size: 0.9rem; }
.ticker-track { display: flex; white-space: nowrap; animation: ticker 25s linear infinite; }
.ticker-track span { padding: 0 2rem; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Hero Section (solid-floating-cards variant) */
.hero { position: relative; padding: 6rem 0; overflow: hidden; background: var(--bg); }
.hero-bg-gradient { position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, var(--surface) 0%, var(--bg) 80%); opacity: 0.8; z-index: 0; }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-text-block { max-width: 800px; margin-bottom: 3rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero-floating-elements { position: relative; width: 100%; max-width: 600px; height: 200px; margin: 0 auto; display: none; }
.float-card { position: absolute; background: rgba(20, 27, 54, 0.8); border: 1px solid var(--primary); padding: 1rem; border-radius: 8px; backdrop-filter: blur(5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: float 6s ease-in-out infinite; }
.float-card.card-1 { top: 10%; left: 0; animation-delay: 0s; }
.float-card.card-2 { bottom: 10%; right: 0; animation-delay: 3s; border-color: var(--accent); }
.float-title { display: block; font-weight: bold; font-family: var(--font-heading); text-transform: uppercase; margin-bottom: 0.2rem; }
.float-stat { color: var(--primary); font-size: 1.2rem; }

@media (min-width: 768px) {
    .hero-floating-elements { display: block; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Trust Strip */
.hero-support-trust-strip { position: relative; z-index: 1; border-top: 1px solid var(--border-subtle); margin-top: 4rem; padding-top: 2rem; }
.trust-items { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-weight: bold; font-family: var(--font-heading); color: var(--text-dim); }

/* Contest Cards */
.bg-surface { background-color: var(--surface); }
.section-header { text-align: center; margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.contest-card { background: var(--bg); border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; transition: transform var(--transition-snappy), box-shadow var(--transition-snappy); display: flex; flex-direction: column; }
.contest-card:hover, .contest-card:focus-within { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); border-color: var(--primary); }
.card-image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-smooth); }
.contest-card:hover .card-image img { transform: scale(1.05); }
.format-chip { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(9, 11, 29, 0.9); padding: 0.5rem; text-align: center; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; color: var(--primary); border-top: 1px solid var(--primary); }
.card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-meta { font-size: 0.8rem; color: var(--secondary); font-weight: bold; text-transform: uppercase; margin-bottom: 0.5rem; }
.card-desc { font-size: 0.9rem; color: var(--text-dim); flex-grow: 1; margin-bottom: 1rem; }
.card-facts { font-size: 0.85rem; margin-bottom: 1.5rem; background: var(--surface); padding: 1rem; border-radius: 4px; border: 1px solid var(--border-subtle); }
.card-facts li { margin-bottom: 0.3rem; }
.card-facts li strong { color: var(--text-primary); }
.card-actions { display: flex; gap: 0.5rem; }
.card-actions .btn { flex: 1; font-size: 0.85rem; padding: 0.6rem; }

/* Table */
.table-responsive { overflow-x: auto; }
.projections-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; }
.projections-table th, .projections-table td { padding: 1rem; border-bottom: 1px solid var(--border-subtle); }
.projections-table th { font-family: var(--font-heading); color: var(--primary); text-transform: uppercase; background: rgba(9, 11, 29, 0.5); }
.projections-table tr:last-child td { border-bottom: none; }
.projections-table tr:hover td { background: var(--surface-hover); }

/* AI Preview Chat */
.chat-mockup { background: var(--bg); border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.chat-header { background: var(--surface); padding: 1rem; font-family: var(--font-heading); font-weight: bold; color: var(--primary); border-bottom: 1px solid var(--border-subtle); }
.chat-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { padding: 1rem; border-radius: 8px; max-width: 85%; font-size: 0.95rem; }
.chat-msg.ai { background: var(--surface-hover); align-self: flex-start; border-left: 3px solid var(--primary); }
.chat-msg.user { background: var(--primary); color: var(--bg); align-self: flex-end; border-right: 3px solid var(--bg); font-weight: 500; }

/* Check List */
.check-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* Sports Hub Cards */
.sports-cards .sport-card { background: var(--surface); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-subtle); transition: var(--transition-snappy); display: block; }
.sports-cards .sport-card:hover { border-color: var(--primary); transform: translateY(-5px); background: var(--surface-hover); }
.sport-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* Timeline Steps */
.step-card { background: var(--bg); padding: 1.5rem; border: 1px solid var(--border-subtle); border-radius: 8px; text-align: left; position: relative; z-index: 1; }
.step-number { font-family: var(--font-heading); font-size: 3rem; color: rgba(20, 224, 255, 0.1); font-weight: bold; position: absolute; top: 1rem; right: 1rem; line-height: 1; z-index: -1; }

/* Editorial Cards */
.editorial-card { background: var(--surface); padding: 2rem; border-radius: 8px; border-left: 4px solid var(--secondary); }

/* Review Wall */
.review-card { background: var(--bg); padding: 2rem; border: 1px solid var(--border-subtle); border-radius: 8px; }
.review-stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 0.5rem; }
.review-slate { font-size: 0.9rem; color: var(--primary); margin-bottom: 1rem; }
.review-quote { font-style: italic; margin-bottom: 1.5rem; }
.review-author { display: block; font-weight: bold; font-family: var(--font-heading); color: var(--text-dim); }

/* FAQ Accordion */
.accordion-list { display: flex; flex-direction: column; gap: 1rem; }
.accordion-item { background: var(--bg); border: 1px solid var(--border-subtle); border-radius: 4px; overflow: hidden; }
.accordion-item summary { padding: 1.2rem; font-family: var(--font-heading); font-weight: bold; cursor: pointer; background: var(--surface); list-style: none; display: flex; justify-content: space-between; align-items: center; transition: color var(--transition-snappy); }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:hover { color: var(--primary); }
.accordion-item summary::after { content: "+"; color: var(--primary); font-size: 1.5rem; transition: transform 0.2s; }
.accordion-item[open] summary::after { transform: rotate(45deg); }
.accordion-content { padding: 1.2rem; border-top: 1px solid var(--border-subtle); color: var(--text-dim); }

/* Safety Strip */
.safety-card { padding: 1.5rem; background: var(--surface); border-radius: 8px; border: 1px solid var(--border-subtle); }
.safety-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* Visual Sports Cards (games.html) */
.grid-sport-cards { grid-template-columns: 1fr; }
.sport-visual-card { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-subtle); display: block; min-height: 300px; transition: transform var(--transition-snappy); }
.sport-visual-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.card-bg-image { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform var(--transition-smooth); }
.sport-visual-card:hover .card-bg-image { transform: scale(1.05); }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 20%, rgba(9, 11, 29, 0.6) 100%); transition: background var(--transition-snappy); }
.sport-visual-card:hover .card-overlay { background: linear-gradient(to top, var(--bg) 10%, rgba(20, 224, 255, 0.2) 100%); }
.sport-visual-card .card-body { position: relative; z-index: 1; padding: 2rem; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.sport-visual-card h3 { color: #fff; margin-bottom: 0.5rem; }
.sport-bullets { margin-top: 1rem; margin-bottom: 1rem; color: var(--text-dim); font-size: 0.9rem; }
.sport-bullets li { position: relative; padding-left: 1rem; margin-bottom: 0.3rem; }
.sport-bullets li::before { content: "•"; color: var(--primary); position: absolute; left: 0; }

@media (min-width: 768px) {
    .grid-sport-cards { grid-template-columns: repeat(2, 1fr); }
    .wide-card { grid-column: span 2; }
}

/* Catalog Sidebar Layout */
.catalog-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.filter-sticky-wrapper { background: var(--surface); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-subtle); position: sticky; top: 100px; }
@media (min-width: 1024px) {
    .catalog-layout { grid-template-columns: 300px 1fr; }
}

/* Compare Tray */
.compare-tray { position: fixed; bottom: -100px; left: 0; right: 0; background: var(--surface); border-top: 2px solid var(--primary); padding: 1rem 0; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); z-index: 50; transition: bottom var(--transition-snappy); }
.compare-tray.active { bottom: 0; }
.compare-tray-inner { display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; text-align: center; }
.compare-count { font-family: var(--font-heading); font-weight: bold; font-size: 1.2rem; display: block; margin-bottom: 0.2rem; }
#compare-num { color: var(--primary); }
@media (min-width: 768px) {
    .compare-tray-inner { flex-direction: row; text-align: left; }
}

/* Spinner */
.spinner { width: 50px; height: 50px; border: 4px solid rgba(20, 224, 255, 0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 2rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility */
.rounded-card { border-radius: 8px; border: 1px solid var(--border-subtle); }

/* Animation Classes (applied via JS) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.active, .float-card, .card-image img, .contest-card, .btn, .sport-visual-card { transition: none !important; animation: none !important; transform: none !important; opacity: 1 !important; }
}

/* Footer */
.site-footer { background: #05060f; border-top: 1px solid var(--border-subtle); padding: 4rem 0 2rem; color: var(--text-dim); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: #fff; margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--text-dim); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-compliance { background: rgba(255, 47, 208, 0.1); border-left: 4px solid var(--secondary); padding: 1rem; margin-bottom: 2rem; color: #fff; }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 2rem; text-align: center; }

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer-bottom { text-align: left; }
}
