/* ============================================================
   ADVENTURE DOWNUNDER — DESIGN SYSTEM (V1.0)
   Neo-Brutalist / Outback Pop
   Author: Michael + ChatGPT Co-Build
   ============================================================ */


/* ============================================================
   ROOT VARIABLES
   ------------------------------------------------------------ */
:root {
    /* Colors */
    --adu-black:    #121212;
    --adu-ochre:    #E67E22;
    --adu-gold:     #FFC107;
    --adu-rust:     #C0392B;
    --adu-sky:      #BAE1FF;
    --adu-sand:     #FFFDF5;
    --adu-green:    #27AE60;
    --adu-white:    #FFFFFF;

    /* Borders & Radius */
    --border-width: 2px;
    --border-color: var(--adu-black);
    --border-thick: 4px solid var(--adu-black);
    --radius-main: 10px;
    --radius-card: 12px;
    --radius-btn:  8px;
    --radius-pill: 50px;

    /* Shadows (hard, comic-style) */
    --shadow-hard: 4px 4px 0px var(--adu-black);
    --shadow-hover: 6px 6px 0px var(--adu-black);
    --shadow-deep: 8px 8px 0px var(--adu-black);

    /* Typography */
    --font-head: 'Rokkitt', serif;
    --font-body: 'Inter', sans-serif;

    /* Motion */
    --transition-snap: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ============================================================
   GLOBAL RESET / BASICS
   ------------------------------------------------------------ */
body {
    background-color: var(--adu-sand);
    font-family: var(--font-body);
    color: var(--adu-black);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn,
.ribbon-header {
    font-family: var(--font-head);
    letter-spacing: -0.5px;
}

img {
    max-width: 100%;
}


/* ============================================================
   NAVBAR — “Field Manual Header”
   ------------------------------------------------------------ */
.navbar {
    background: var(--adu-black) !important;
    border-bottom: 4px solid var(--adu-gold);
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.6rem;
    color: white !important;
    text-shadow: 2px 2px 0px #000;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-head);
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--adu-gold) !important;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}


/* ============================================================
   HERO SECTION
   ------------------------------------------------------------ */
.hero {
    background: linear-gradient(180deg, var(--adu-sky) 0%, var(--adu-sand) 100%);
    border-bottom: var(--border-width) solid var(--adu-black);
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 22%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23E67E22' fill-opacity='0.2' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,250.7C960,235,1056,181,1152,165.3C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom;
}

.hero-highlight {
    background: var(--adu-gold);
    padding: 0 10px;
    border: 2px solid var(--adu-black);
    display: inline-block;
    transform: rotate(-1deg);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
}


/* “Since 2025” badge */
.hero-badge {
    display: inline-block;
    background: var(--adu-ochre);
    padding: 4px 12px;
    border: 2px solid var(--adu-black);
    color: white;
    transform: rotate(-2deg);
    font-weight: 700;
}


/* ============================================================
   BUTTONS — “Sticker” Interaction
   ------------------------------------------------------------ */
.btn {
    border: var(--border-width) solid var(--adu-black);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-hard);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 12px 24px;
    position: relative;
    top: 0;
    left: 0;
    transition: var(--transition-snap);
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--adu-black);
}

/* Button Color Sets */
.btn-gold { background: var(--adu-gold); color: var(--adu-black); }
.btn-gold:hover { background: #ffcd38; }

.btn-rust { background: var(--adu-rust); color: white; }
.btn-rust:hover { background: #d35400; }

.btn-outline-dark {
    background: transparent;
    border-color: var(--adu-black);
}
.btn-outline-dark:hover {
    background: var(--adu-black);
    color: var(--adu-gold);
}


/* ============================================================
   CARDS — Sticker Look
   ------------------------------------------------------------ */
.adventure-card {
    border: var(--border-width) solid var(--adu-black);
    border-radius: var(--radius-card);
    background: var(--adu-white);
    box-shadow: var(--shadow-hard);
    transition: 0.25s ease;
    overflow: hidden;
}

.adventure-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-deep);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    border-bottom: var(--border-width) solid var(--adu-black);
}


/* ============================================================
   BADGES (Difficulty / Mode)
   ------------------------------------------------------------ */
.badge-base {
    display: inline-block;
    border: 1.5px solid var(--adu-black);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Difficulty Colors */
.difficulty-easy      { background:#d1f2eb; color: var(--adu-black); }
.difficulty-moderate  { background:#fdebd0; color: var(--adu-black); }
.difficulty-hard      { background: var(--adu-ochre); color: white; }
.difficulty-extreme   { background: var(--adu-black); color: var(--adu-gold); }

/* Mode Colors */
.mode-guided       { background: var(--adu-sky); color: var(--adu-black); }
.mode-self-guided  { background: #ffedd5; color: var(--adu-black); }
.mode-diy          { background: #e5e7eb; color: #444; border-style: dashed; }
.mode-mixed        { background: #e9d5ff; color: var(--adu-black); }


/* ============================================================
   FORMS — “Control Panel”
   ------------------------------------------------------------ */
.form-control,
.form-select {
    border: var(--border-width) solid var(--adu-black);
    border-radius: 6px;
    padding: 12px 14px;
    font-weight: 600;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    transition: var(--transition-snap);
}

.form-control:focus,
.form-select:focus {
    box-shadow: var(--shadow-hard);
    background: white;
    transform: translate(-2px, -2px);
}

.filter-panel {
    background: var(--adu-gold);
    border: var(--border-width) solid var(--adu-black);
    border-radius: 8px;
    box-shadow: var(--shadow-hard);
    padding: 1.5rem;
}


/* ============================================================
   TABLES — “Outback Logbook”
   ------------------------------------------------------------ */
.table-container {
    background: white;
    border: var(--border-width) solid var(--adu-black);
    border-radius: 8px;
    box-shadow: var(--shadow-hard);
    overflow: hidden;
}

.adventure-table thead th {
    background: var(--adu-black);
    color: var(--adu-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 4px solid var(--adu-gold);
    padding: 1rem;
    font-family: var(--font-head);
    font-weight: 800;
}

.adventure-table tbody td {
    padding: 1rem;
    border-bottom: 1px dashed var(--adu-black);
    font-weight: 500;
}

.adventure-table tbody tr:last-child td {
    border-bottom: none;
}

.adventure-table tbody tr:hover {
    background: #fffbeb;
}


/* ============================================================
   RIBBONS — Section Headers
   ------------------------------------------------------------ */
.ribbon-header {
    background: var(--adu-black);
    color: white;
    padding: 10px 40px;
    clip-path: polygon(0% 0%,100% 0%,95% 50%,100% 100%,0% 100%,5% 50%);
    display: inline-block;
    font-weight: 800;
}

.ribbon-title {
    background: var(--adu-black);
    border: 2px solid var(--adu-gold);
    padding: 10px 20px;
    transform: skew(-10deg);
    display: inline-block;
}
.ribbon-title h1 {
    color: white;
    transform: skew(10deg);
    margin: 0;
}


/* ============================================================
   FOOTER
   ------------------------------------------------------------ */
footer {
    background: var(--adu-black);
    color: white;
    border-top: 4px solid var(--adu-gold);
    padding: 2.5rem 0;
}


/* ============================================================
   UTILITIES
   ------------------------------------------------------------ */
.text-ochre { color: var(--adu-ochre) !important; }
.text-rust  { color: var(--adu-rust) !important; }
.bg-ochre   { background: var(--adu-ochre) !important; }
.bg-gold    { background: var(--adu-gold) !important; }


/* ADU Role Toggle Buttons */
.btn-sticker-role {
    background: var(--adu-sky);
    border: 2px solid var(--adu-black);
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 16px;
    box-shadow: var(--shadow-hard);
    cursor: pointer;
    font-family: var(--font-head);
    color: var(--adu-black);
}

/* When the hidden checkbox is checked, style the label as active */
.btn-check:checked + .btn-sticker-role,
.btn-check:active + .btn-sticker-role,
.btn-sticker-role.active {
    background: var(--adu-gold) !important;
    box-shadow: 6px 6px 0px var(--adu-black);
    transform: translate(-2px, -2px);
}

/* Click press feedback */
.btn-sticker-role:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--adu-black);
}
/* ===== Adventure DownUnder – Map Section ===== */

.adu-map-section {
    margin-bottom: 2.5rem;
}

.adu-map-card {
    border: var(--border-width) solid var(--adu-black);
    border-radius: var(--radius-card);
    background: var(--adu-sand);
    box-shadow: var(--shadow-hard);
    padding: 1.25rem 1.5rem;
}

.adu-map-title {
    font-family: var(--font-head);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.adu-map-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 1rem;
}

.adu-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border: var(--border-width) solid var(--adu-black);
    border-radius: var(--radius-card);
    background: var(--adu-sand);
    overflow: hidden;
}

/* The SVG itself */
.adu-map-wrapper object {
    width: 100%;
    height: auto;
    display: block;
}

/* Tooltip / legend for selected state */
.adu-map-legend {
    margin-top: 1rem;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.adu-map-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.adu-map-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--adu-black);
    box-shadow: 2px 2px 0 var(--adu-black);
}

/* Colors for states */
.adu-map-dot--active {
    background: var(--adu-ochre);
}

.adu-map-dot--empty {
    background: #e5e7eb;
}

/* Hover style applied in JS to SVG paths */
.adu-map-state-hover {
    cursor: pointer;
    filter: drop-shadow(2px 2px 0 var(--adu-black));
}
