/* ==========================================
   Mars Hill Homecoming Days Festival
   Clean, professional public stylesheet
   ========================================== */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple: #5b21b6;
    --purple-dark: #4c1d95;
    --purple-light: #7c3aed;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-warm: #fffbeb;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.1);
    --max-width: 1100px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ---------- Navigation ---------- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--purple);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.15em;
    line-height: 1;
}

.nav-logo .logo-accent {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo::before {
    content: '\2726';
    display: inline-block;
    font-size: 1.1em;
    color: var(--gold);
    margin-right: 0.2em;
    -webkit-text-fill-color: var(--gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(91, 33, 182, 0.08);
    color: var(--purple);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

/* ---------- Hero Slider ---------- */
.hero-slider {
    position: relative;
    height: 55vh;
    min-height: 380px;
    max-height: 550px;
    overflow: hidden;
    margin-top: 70px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.45) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.slide-caption {
    display: none;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
    padding: 3rem 2rem 4rem;
    color: #fff;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 1;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-date {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 0.25rem;
}

.hero-location {
    font-weight: 500;
    opacity: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

/* Slider controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }

.slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--gold-light);
    transform: scale(1.3);
}

/* ---------- Sections ---------- */
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0.75rem auto 2rem;
    border-radius: 2px;
}

.section-note {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    font-style: italic;
    padding: 2rem 0;
}

/* ---------- Countdown ---------- */
.countdown-section {
    background: var(--purple);
    padding: 1.25rem 0;
    text-align: center;
}

.countdown-label {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.countdown-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.4rem;
}

/* ---------- About ---------- */
.about-section {
    padding: 5rem 0;
    background: var(--bg);
}

.about-text {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
    text-align: center;
}

/* ---------- Downloads ---------- */
.downloads-section {
    padding: 2rem 0 3rem;
    background: var(--bg);
}

.download-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--purple);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.15s;
    box-shadow: var(--shadow);
}

.btn-download:hover {
    background: var(--purple-light);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.15rem;
}

/* ---------- Schedule ---------- */
.schedule-section {
    padding: 5rem 0;
    background: var(--bg-alt);
}

/* Schedule toolbar */
.schedule-toolbar {
    text-align: center;
    margin-bottom: 1rem;
}

.btn-print {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-print:hover {
    border-color: var(--purple);
    color: var(--purple);
}

/* Schedule tabs */
.schedule-hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.schedule-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
    font-family: inherit;
}

.schedule-tab:hover {
    border-color: var(--purple-light);
    background: #fff;
}

.schedule-tab.active {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.3);
}

.schedule-tab-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.schedule-tab-date {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.15rem;
}

.schedule-tab.active .schedule-tab-date {
    color: var(--gold-light);
    opacity: 1;
}

.schedule-day {
    display: none;
    margin-bottom: 2rem;
}

.schedule-day.active {
    display: block;
}

.day-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.day-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 0.25rem;
}

.day-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.day-date {
    font-weight: 500;
}

.day-location::before {
    content: '\2022';
    margin-right: 0.5rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--gold);
    transition: box-shadow 0.2s;
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
}

.event-time {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--purple);
    min-width: 150px;
    padding-top: 0.1rem;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.event-details {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.no-events {
    color: var(--text-light);
    font-style: italic;
    padding: 1rem 0;
}

/* ---------- Sponsors ---------- */
.sponsors-section {
    padding: 5rem 0;
    background: var(--bg);
}

.sponsors-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.sponsor-tier {
    margin-bottom: 2.5rem;
    text-align: center;
}

.tier-heading {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    display: inline-block;
}

.tier-platinum .tier-heading { color: #6b7280; border-color: #9ca3af; }
.tier-gold .tier-heading { color: var(--gold-dark); border-color: var(--gold); }
.tier-silver .tier-heading { color: #6b7280; border-color: #9ca3af; }
.tier-bronze .tier-heading { color: #92400e; border-color: #d97706; }

.sponsor-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    padding: 0.5rem 0;
}

.sponsor-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    padding: 0.4rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Platinum sponsors get larger treatment */
.tier-platinum .sponsor-name {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #f9fafb, #f1f5f9);
    border-color: #d1d5db;
}

/* Gold sponsors */
.tier-gold .sponsor-name {
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--bg-warm);
    border-color: #fde68a;
}

/* ---------- Page Header (Gallery) ---------- */
.page-header {
    padding: 6rem 0 2.5rem;
    background: var(--purple);
    text-align: center;
    margin-top: 70px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
}

.btn-back {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ---------- Gallery ---------- */
.gallery-section {
    padding: 4rem 0 5rem;
    background: var(--bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.gallery-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.gallery-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    font-size: 3rem;
    color: var(--text-light);
}

.gallery-card-info {
    padding: 1.25rem;
}

.gallery-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-card-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.photo-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--bg);
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.photo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-top: 1rem;
    text-align: center;
    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open { display: flex; }

    .hero-slider {
        height: 45vh;
        min-height: 320px;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-date { font-size: 1.2rem; }
    .hero-overlay { padding: 2rem 1.5rem 3rem; }

    .countdown { gap: 1rem; }
    .countdown-number { font-size: 2.5rem; }
    .countdown-unit { min-width: 70px; }

    .section-heading { font-size: 1.75rem; }

    .event-card {
        flex-direction: column;
        gap: 0.5rem;
    }

    .event-time { min-width: 0; }

    .slider-btn { width: 40px; height: 40px; font-size: 1rem; }
    .slider-prev { left: 0.75rem; }
    .slider-next { right: 0.75rem; }

    .page-header { padding: 5rem 0 2rem; }
    .page-title { font-size: 1.75rem; }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .photo-card img { height: 160px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .countdown-number { font-size: 2rem; }
    .countdown-unit { min-width: 60px; }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    /* Hide everything except schedule */
    body.printing-schedule .main-nav,
    body.printing-schedule .hero-slider,
    body.printing-schedule .countdown-section,
    body.printing-schedule .about-section,
    body.printing-schedule .downloads-section,
    body.printing-schedule .sponsors-section,
    body.printing-schedule .site-footer,
    body.printing-schedule .schedule-tabs,
    body.printing-schedule .schedule-toolbar,
    body.printing-schedule .btn-print {
        display: none !important;
    }

    /* Show ALL days when printing */
    body.printing-schedule .schedule-day {
        display: block !important;
        margin-bottom: 0.75rem;
        page-break-inside: avoid;
    }

    /* Clean print look */
    body.printing-schedule .schedule-section {
        padding: 0;
        background: #fff;
    }

    body.printing-schedule .section-heading {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    body.printing-schedule .section-heading::after {
        background: #333;
        margin: 0.4rem auto 0.75rem;
    }

    body.printing-schedule .day-header {
        border-bottom-color: #333;
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
    }

    body.printing-schedule .day-title {
        color: #000;
        font-size: 1.1rem;
    }

    body.printing-schedule .day-meta {
        font-size: 0.8rem;
    }

    body.printing-schedule .events-list {
        gap: 0.4rem;
    }

    body.printing-schedule .event-card {
        box-shadow: none;
        border: 1px solid #ddd;
        border-left: 3px solid #333;
        padding: 0.5rem 0.75rem;
    }

    body.printing-schedule .event-time {
        color: #000;
        font-size: 0.8rem;
        min-width: 120px;
    }

    body.printing-schedule .event-title {
        font-size: 0.9rem;
    }

    body.printing-schedule .event-details {
        font-size: 0.8rem;
    }
}
