/* ═══════════════════════════════════════════
   DrawTheDay — Main Stylesheet
   "Midnight felt" palette · Responsive: 4K / HD / Tablet / Phone
   (theme-deck.css loads last and is the live source of truth for the
    palette tokens below; these are the fallbacks if it fails to load.)
   ═══════════════════════════════════════════ */

:root {
    --bg:          #0E1112;                       /* ink — page background */
    --bg2:         #0F2C22;                       /* felt-900 — wells, surfaces */
    --accent:      #D9B44A;                       /* gold — links, focus, marks */
    --accent-glow: rgba(217, 180, 74, 0.35);
    --text:        #F5EFDD;                        /* cream — primary text on dark */
    --text-muted:  #9BA8A0;
    --card-bg:     #0F2C22;
    --card-border: rgba(217, 180, 74, 0.18);

    /* category colours — midnight-felt system (mapped to the 6 live categories) */
    --cat-outdoors:      #6FA96C;                 /* Outdoors & Nature */
    --cat-culture:       #A78BC8;                 /* Arts & Culture */
    --cat-food:          #D98B5F;                 /* Food & Drink */
    --cat-entertainment: #C25E6E;                 /* Nightlife & Entertainment */
    --cat-sports:        #6FA3B8;                 /* Local Life & Markets */
    --cat-scenic:        #D9B44A;                 /* Iconic Sights */
    --cat-neighborhoods: #6FA3B8;
    --cat-nightlife:     #C25E6E;

    /* fluid sizes */
    --font-base:   clamp(14px, 1.1vw, 18px);
    --h1-size:     clamp(1.7rem, 5vw, 4rem);
    --sub-size:    clamp(0.85rem, 1.5vw, 1.2rem);
    --card-pad:    clamp(1.2rem, 3vw, 2.4rem);
    --card-max:    min(92vw, 680px);

    /* Shared column widths — fluid (no breakpoint cliff), only grow past today's
       size once the viewport genuinely has room to spare.
       - col-wide:   map + footer city grid — no text-readability ceiling, so these
                     scale all the way to a full 2x (1200px) on large monitors.
       - col-text:   deck card + intro prose — capped lower so headline/paragraph
                     line-length stays comfortable instead of stretching thin.
       - col-chrome: outer page wrapper (topbar/main-content) — must stay wider
                     than col-wide's max or it would clip the map/footer. */
    --col-wide:   clamp(600px, 60vw, 1200px);
    --col-text:   clamp(600px, 45vw, 760px);
    --col-chrome: clamp(1100px, 66vw, 1320px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-base); scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── City skyline silhouette background ── */
.city-bg {
    position: fixed;
    inset: 0;
    background:
        /* subtle noise-like depth */
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(20, 40, 100, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 100% 60% at 20% 110%, rgba(10, 30, 80, 0.2) 0%, transparent 60%),
        /* sky gradient */
        linear-gradient(180deg,
            #020408 0%,
            #050916 30%,
            #060d20 60%,
            #080f1a 100%);
    pointer-events: none;
    z-index: 0;
}

/* ── Page wrapper ── */
.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 3rem) 1rem clamp(1rem, 2vw, 2rem);
}

/* ── Header ── */
.site-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vmin, 3.5rem);
}

.site-title {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: var(--h1-size);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
    color: #d8e4ff;
    text-shadow:
        0 0 30px rgba(100, 140, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

.title-accent {
    color: var(--accent);
    text-shadow:
        0 0 20px rgba(74, 127, 255, 0.7),
        0 0 60px rgba(74, 127, 255, 0.3);
}

.site-subtitle {
    font-size: var(--sub-size);
    color: var(--text-muted);
    margin-top: 0.4em;
    letter-spacing: 0.01em;
}

.activity-count {
    font-size: clamp(0.7rem, 1.1vw, 0.85rem);
    color: rgba(120, 150, 255, 0.55);
    margin-top: 0.4em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Main content ── */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 4vmin, 3rem);
    width: 100%;
}

/* ══════════════════════════════════════════
   ACTIVITY CARD
   ══════════════════════════════════════════ */
.card-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.activity-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: clamp(12px, 2vw, 20px);
    padding: var(--card-pad);
    max-width: var(--card-max);
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(80, 120, 220, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: cardReveal 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.activity-card.hidden {
    display: none;
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(22px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* badges row */
.card-top {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.9em;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: clamp(0.68rem, 1.1vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28em 0.75em;
    border-radius: 100px;
}

/* type badge colours (6 Types) */
.cat-badge[data-cat="Iconic Sights"]             { background: rgba(243, 156, 18, 0.18); color: #f5be56; border: 1px solid rgba(243, 156, 18, 0.35); }
.cat-badge[data-cat="Arts & Culture"]            { background: rgba(155, 89, 182, 0.18); color: #c07ff0; border: 1px solid rgba(155, 89, 182, 0.35); }
.cat-badge[data-cat="Outdoors & Nature"]         { background: rgba(39, 174, 96, 0.18);  color: #4fd67c; border: 1px solid rgba(39, 174, 96, 0.35);  }
.cat-badge[data-cat="Food & Drink"]              { background: rgba(230, 126, 34, 0.18); color: #f0a050; border: 1px solid rgba(230, 126, 34, 0.35); }
.cat-badge[data-cat="Nightlife & Entertainment"] { background: rgba(231, 76, 60, 0.18);  color: #f07070; border: 1px solid rgba(231, 76, 60, 0.35);  }
.cat-badge[data-cat="Local Life & Markets"]      { background: rgba(41, 128, 185, 0.18); color: #60aadf; border: 1px solid rgba(41, 128, 185, 0.35); }

/* cost badge */
.cost-badge {
    background: rgba(255, 255, 255, 0.06);
    color: #c8d8ff;
    border: 1px solid rgba(180, 200, 255, 0.2);
}

.cost-badge.cost-free   { background: rgba(39, 174, 96, 0.15); color: #4fd67c; border-color: rgba(39, 174, 96, 0.3); }
.cost-badge.cost-cheap  { background: rgba(39, 174, 96, 0.1);  color: #90e0a0; border-color: rgba(39, 174, 96, 0.2); }
.cost-badge.cost-mid    { background: rgba(243, 156, 18, 0.12); color: #f5be56; border-color: rgba(243, 156, 18, 0.25); }
.cost-badge.cost-upper  { background: rgba(230, 126, 34, 0.12); color: #f0a050; border-color: rgba(230, 126, 34, 0.25); }

/* card body */
.card-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.15rem, 2.8vw, 1.85rem);
    font-weight: 800;
    color: #e8eeff;
    line-height: 1.2;
    margin-bottom: 0.65em;
}

.card-desc {
    font-size: clamp(0.84rem, 1.2vw, 1rem);
    color: rgba(200, 215, 255, 0.82);
    line-height: 1.7;
    margin-bottom: 1em;
}

/* meta list */
.card-meta {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    margin-bottom: 1em;
    font-size: clamp(0.8rem, 1.1vw, 0.93rem);
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    color: var(--text-muted);
    line-height: 1.5;
}

.meta-icon { flex-shrink: 0; }

.meta-item a {
    color: var(--accent);
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
    color: color-mix(in oklch, var(--accent) 80%, white);
}

/* cost notes */
.card-notes {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 0.7em 0.9em;
    margin-bottom: 0.9em;
    font-size: clamp(0.78rem, 1.1vw, 0.9rem);
    color: rgba(200, 215, 255, 0.75);
    line-height: 1.5;
}

.notes-icon { flex-shrink: 0; }

.card-notes.hidden { display: none; }

/* pro tip */
.card-tip {
    background: rgba(74, 127, 255, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 0.75em 1em;
    font-size: clamp(0.78rem, 1.1vw, 0.9rem);
    color: rgba(180, 210, 255, 0.85);
    line-height: 1.6;
}

.card-tip.hidden { display: none; }

.tip-label {
    font-weight: 700;
    color: var(--accent);
    margin-right: 0.3em;
}

/* ── Footer ── */
.site-footer {
    margin-top: auto;
    padding-top: clamp(1.5rem, 4vmin, 3rem);
    text-align: center;
    font-size: clamp(0.72rem, 1vw, 0.85rem);
    color: rgba(100, 120, 180, 0.5);
}

.site-footer a {
    color: rgba(120, 150, 220, 0.6);
    text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }

/* ══════════════════════════════════════════
   RESPONSIVE OVERRIDES
   ══════════════════════════════════════════ */

/* ── 4K / Ultra-wide (2560px+) ── */
@media (min-width: 2560px) {
    :root {
        --font-base:  20px;
        --card-max:   800px;
        --card-pad:   3rem;
    }

    .site-title { font-size: 5.5rem; }
    .site-subtitle { font-size: 1.5rem; }
}

/* ── Full HD (1920px) ── */
@media (min-width: 1920px) and (max-width: 2559px) {
    :root {
        --font-base: 17px;
    }
}

/* ── Mobile (< 600px) ── */
@media (max-width: 599px) {
    :root {
        --card-pad:  1rem;
    }

    .site-title { letter-spacing: 0.02em; }

    .card-meta { font-size: 0.82rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .activity-card { animation: none; }
}
