/* Box Hill Hawks Season Journey Mapper styles */
:root {
    --brown: #4A2C2A;
    --gold: #D4AF37;
    --cream: #F5F0E6;
    --dark: #2C1A18;
    --text: #333;
    --white: #fff;
    --border: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 8px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #faf8f5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--brown);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
}

.logo svg {
    flex-shrink: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-list a {
    color: var(--white);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-list a:hover,
.nav-list a:focus {
    background: rgba(255,255,255,0.2);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--brown) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 3rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn.primary {
    background: var(--gold);
    color: var(--dark);
}

.btn.primary:hover {
    background: #c9a227;
}

.btn.secondary {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.btn.secondary:hover {
    background: rgba(212,175,55,0.1);
}

.btn.danger {
    background: #d9534f;
    color: white;
}

.btn.danger:hover {
    background: #c9302c;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

/* Mapper section */
.mapper-section {
    padding: 3rem 0;
    background: var(--white);
}

.mapper-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--brown);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #555;
}

.mapper-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.controls-panel {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.controls-panel h3,
.controls-panel h4 {
    color: var(--brown);
    margin-bottom: 1rem;
}

.milestone-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.preset-btn {
    background: var(--white);
    border: 1px solid var(--gold);
    color: var(--brown);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.preset-btn:hover {
    background: var(--gold);
    color: var(--white);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--brown);
    color: var(--white);
    border-color: var(--brown);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Timeline */
.timeline-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    min-height: 400px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--radius);
    border-left: 4px solid var(--gold);
}

.timeline-item.win {
    border-left-color: #2e7d32;
}

.timeline-item.loss {
    border-left-color: #c62828;
}

.timeline-item.celebration {
    border-left-color: #f9a825;
}

.timeline-item.event {
    border-left-color: #1565c0;
}

.timeline-item.personal {
    border-left-color: #6a1b9a;
}

.timeline-item .date {
    font-weight: bold;
    color: var(--brown);
}

.timeline-item .type-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    background: var(--gold);
    color: var(--dark);
    margin-left: 0.5rem;
}

.timeline-item .note {
    margin-top: 0.5rem;
}

.timeline-item .item-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.timeline-item .item-actions button {
    background: none;
    border: none;
    color: var(--brown);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #777;
}

/* Guide section */
.guide-section {
    padding: 3rem 0;
    background: var(--cream);
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--brown);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.guide-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.guide-card h3 {
    color: var(--brown);
    margin-bottom: 0.5rem;
}

.assumptions {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.assumptions h3,
.faq h3 {
    color: var(--brown);
    margin-bottom: 1rem;
}

.assumptions ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.faq details {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 0.5rem;
}

.faq summary {
    font-weight: bold;
    cursor: pointer;
    color: var(--brown);
}

/* Footer */
.site-footer {
    background: var(--brown);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .mapper-layout {
        grid-template-columns: 1fr;
    }
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media print {
    .site-header, .site-footer, .controls-panel, .hero-actions, .actions, .filter-group, .presets {
        display: none;
    }
    .mapper-layout {
        display: block;
    }
    .timeline-panel {
        box-shadow: none;
        padding: 0;
    }
    body {
        background: white;
    }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
