/*
File: css/main.css
Title: JulHuset.dk • Main Stylesheet
Beskrivelse (da): Primær CSS for JulHuset.dk landing page. Mørk Bit-inspireret stil, responsivt layout, cards og footer.
Dato: 2026-01-16

Copyright © 2002-2026 BIT_on_Tech™ • Simplified Tech of Tomorrow • All rights reserved • bitveil.dk
*/

:root {
    --bg-main: #050711;
    --bg-card: #0f111a;
    --bg-accent: #182032;
    --accent: #e63946;
    --accent-soft: #f1faee;
    --text-main: #f8f9fc;
    --text-muted: #a5acc4;
    --border-soft: rgba(255,255,255,0.08);
    --shadow-soft: 0 18px 45px rgba(0,0,0,0.55);
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --transition-fast: 0.18s ease-out;
    --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at top left, #182032 0, #050711 52%, #02030a 100%);
}

body {
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent-soft);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

.page-wrap {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 32px;
}

.shell {
    width: 100%;
    max-width: var(--max-width);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
    gap: 28px;
}
@media (max-width: 900px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
}

.hero-card {
    position: relative;
    background: radial-gradient(circle at top, rgba(255,255,255,0.06) 0, rgba(5,7,17,0.95) 47%, #050711 100%);
    border-radius: 28px;
    padding: 26px 26px 24px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid var(--border-soft);
	z-index: 1;
}

.hero-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(5,7,17,0.85);
    border: 1px solid rgba(230,57,70,0.45);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.badge-dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: #42f590;
    box-shadow: 0 0 12px rgba(66,245,144,0.9);
}

.badge-secondary {
    background: rgba(11,16,30,0.95);
    border-color: rgba(255,255,255,0.16);
}

.hero-figure {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 0, #2b3a5f 0, #050711 50%);
    aspect-ratio: 16 / 9;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,0.08);
    margin: 12px 0 14px;
}

.hero-figure-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(230,57,70,0.30) 0, transparent 45%),
        radial-gradient(circle at bottom left, rgba(241,250,238,0.18) 0, transparent 50%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
}

.hero-figure-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-title {
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    line-height: 1.25;
    margin: 0 0 12px;
}

.hero-title span.highlight { color: var(--accent); }

.hero-text {
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(248,249,252,0.86);
    margin: 0 0 16px;
    position: relative;
    z-index: 2;
}

.hero-badge-row{
    flex-wrap: nowrap;
}

.badge{
    min-width: 0;
    flex: 0 1 auto;
    white-space: nowrap;
}

@media (max-width: 480px){
    .hero-badge-row{ gap: 8px; }
    .badge{
        font-size: 0.70rem;
        padding: 5px 10px;
        letter-spacing: 0.04em;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 28px;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.02);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(230,57,70,0.22) 0, transparent 45%),
        radial-gradient(circle at 80% 65%, rgba(241,250,238,0.10) 0, transparent 52%),
        linear-gradient(180deg, rgba(5,7,17,0.72) 0, rgba(5,7,17,0.88) 45%, rgba(5,7,17,0.96) 100%);
}

.side-card {
    background: linear-gradient(145deg, rgba(12,17,32,0.96), rgba(5,7,17,0.96));
    border-radius: 28px;
    padding: 18px 18px 16px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 520px) {
    .stat-grid { grid-template-columns: minmax(0, 1fr); }
}

.stat-card {
    background: rgba(8,11,23,0.92);
    border-radius: var(--radius-lg);
    padding: 10px 11px;
    border: 1px solid var(--border-soft);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.stat-card strong {
    display: block;
    margin-bottom: 3px;
    color: var(--accent-soft);
}

.stat-card-wide { grid-column: 1 / -1; }

.clock {
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-variant-numeric: tabular-nums;
}

.notice-toggle {
    all: unset;
    cursor: pointer;
    display: block;
    width: 100%;
    font-weight: 600;
    color: var(--accent-soft);
    padding: 2px 0;
}

.notice-toggle::after {
    content: "▾";
    float: right;
    color: var(--text-muted);
    transition: transform 0.15s ease;
}

.notice-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.notice-content {
    margin-top: 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
}

footer {
    flex-shrink: 0;
    padding: 10px 16px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 8px;
    display: flex;
    justify-content: center;
}

.card-footer {
    width: 100%;
    display: flex;
    justify-content: center;

    color: #b7b7b7;
    letter-spacing: 0.01em;

    padding: 0.5em max(12px, env(safe-area-inset-left)) 0.5em max(12px, env(safe-area-inset-right));
    box-sizing: border-box;

    overflow: hidden;
}

.card-footer .fitline {
    display: inline-block;
    white-space: nowrap;
    transform-origin: center center;
    will-change: transform;
    font-size: 0.78rem;
}

.lat-status {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.lat-result {
    display: block;
    margin-top: 2px;
    font-size: 0.82rem;
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Webmail Status: tving 2 linjer */
#webmailStatus,
#webmailTls{
    display:block;
    margin-top: 4px;
    line-height: 1.25;
}
