/* ============================================================================
   BOZO ON THE BUS — STYLES
   ============================================================================ */

:root {
    --gold: #D4A84B;
    --orange: #E07B3C;
    --purple: #6B4C9A;
    --teal: #2A9D8F;
    --cream: #FDF6E3;
    --dark: #1A1A2E;
    --dark-lighter: #252542;
    --text-muted: rgba(253, 246, 227, 0.7);
}

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

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--cream);
    line-height: 1.7;
    font-size: 18px;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

a {
    color: var(--teal);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================================
   HEADER / NAV
   ============================================================================ */

.site-header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--cream);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    text-decoration: none;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--dark) 0%, #2D1B4E 50%, var(--dark) 100%);
    padding: 60px 24px;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    background: linear-gradient(135deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero .tagline {
    font-size: 1.4rem;
    color: var(--teal);
    font-style: italic;
    margin-bottom: 48px;
}

.hero .kesey {
    font-size: 1.8rem;
    color: var(--cream);
    max-width: 500px;
    margin-bottom: 24px;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

section {
    padding: 80px 24px;
}

section:nth-child(even) {
    background: rgba(255,255,255,0.03);
}

section h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 32px;
    text-align: center;
}

section p {
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--teal);
    font-weight: 600;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(212, 168, 75, 0.3);
    text-decoration: none;
}

.btn-secondary {
    border: 2px solid var(--teal);
    color: var(--teal);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--teal);
    color: var(--dark);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.cta-group {
    text-align: center;
    margin: 40px 0;
}

/* ============================================================================
   FORMS
   ============================================================================ */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--cream);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: var(--dark-lighter);
    color: var(--cream);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

/* ============================================================================
   ORACLE CARD
   ============================================================================ */

.oracle-card {
    background: linear-gradient(135deg, rgba(107,76,154,0.3), rgba(42,157,143,0.2));
    border: 1px solid var(--purple);
    border-radius: 16px;
    padding: 40px;
    margin: 32px 0;
}

.oracle-card .quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--gold);
    line-height: 1.6;
    margin-bottom: 24px;
}

.oracle-card .quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--purple);
    float: left;
    margin-right: 10px;
    line-height: 1;
}

.oracle-card .meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.oracle-card .resonance {
    display: inline-block;
    background: var(--purple);
    color: var(--cream);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.oracle-card .interpretation {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    line-height: 1.8;
}

.oracle-card .interpretation .driver-sig {
    margin-top: 16px;
    font-style: italic;
    color: var(--teal);
}

/* ============================================================================
   CONDITIONS DISPLAY
   ============================================================================ */

.conditions-card {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.conditions-card h3 {
    font-size: 1.1rem;
    color: var(--teal);
    margin-bottom: 16px;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.condition-item {
    text-align: center;
}

.condition-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.condition-item .value {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
}

.condition-item .sublabel {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================================
   LOADING STATE
   ============================================================================ */

.loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   ERROR STATE
   ============================================================================ */

.error-message {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b6b;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
    text-align: center;
    padding: 60px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer blockquote {
    font-style: italic;
    color: var(--gold);
    max-width: 600px;
    margin: 0 auto 24px;
    font-size: 1.1rem;
}

footer .attribution {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer .copyright {
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 50px 16px;
    }
    
    .btn {
        display: block;
        margin: 12px auto;
        max-width: 280px;
        text-align: center;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .oracle-card {
        padding: 24px;
    }
    
    .oracle-card .quote {
        font-size: 1.2rem;
    }
}
