/* Solomon's Temple journey — overlay layer for index.html
   Loads AFTER styles.css. Existing tokens reused; golden-hour additions below. */

/* Custom font: Humble Signation */
@font-face {
    font-family: "Humble Signation";
    src: url("./humble-signation/Humble Signation.ttf") format("truetype");
    font-display: swap;
}

:root {
    --night: #2a1d0e;
    --night-panel: rgba(32, 22, 10, 0.84);
    --night-panel-soft: rgba(32, 22, 10, 0.66);
    --gold-glow: rgba(212, 175, 55, 0.45);
    --ink-light: #f6efdd;
    --journey-max: 1060px;
}

/* ---------- Canvas & page base ---------- */
.journey-body {
    background: var(--night);
    color: var(--ink-light);
}

#templeCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

/* Static fallback when WebGL is unavailable or reduced motion is set */
.no-3d {
    background:
        radial-gradient(ellipse 60% 45% at 50% 62%, rgba(255, 216, 130, 0.35), transparent 70%),
        linear-gradient(#7fa8d4 0%, #f4c98a 55%, #d8bd8e 100%);
    background-attachment: fixed;
}

.journey-main {
    position: relative;
    z-index: 1;
}

/* ---------- Navbar on the golden court ---------- */
.journey-body .navbar {
    background: linear-gradient(rgba(32, 22, 10, 0.92), rgba(32, 22, 10, 0.75));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.journey-body .navbar .nav-brand { color: var(--gold); }
.journey-body .nav-menu a { color: var(--ink-light); }
.journey-body .nav-menu a:hover,
.journey-body .nav-menu a.active { color: var(--gold); }
.journey-body .nav-toggle span { background: var(--gold); }
@media (max-width: 768px) {
    .journey-body .nav-menu { background: rgba(32, 22, 10, 0.97); }
}

/* ---------- Journey sections ---------- */
.court {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(5rem, 12vh, 8rem) 1.25rem;
    scroll-margin-top: 4.5rem;
}

.court-panel {
    width: min(100%, var(--journey-max));
    background: var(--night-panel);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: clamp(1.5rem, 4vw, 3rem);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.court-panel--soft { background: var(--night-panel-soft); }

/* Eyebrow marks the visitor's place along the temple approach */
/* Center section text within panels */
.court-panel {
    text-align: center;
}
.court-panel p { margin-inline: auto; }
/* Forms and Bible tools stay left-aligned for usability */
.court-panel .contact-form,
.court-panel .bible-search-container { text-align: left; }
.court-panel .bible-search-container p { margin-inline: 0; }

.court-eyebrow {
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: 0.8rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.court h2 {
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--ink-light);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.court p { color: rgba(246, 239, 221, 0.9); line-height: 1.75; max-width: 65ch; }
.court a:not(.btn) { color: var(--gold); }

/* ---------- Hero (outer approach) ---------- */
.court--hero {
    min-height: 100vh;
    text-align: center;
    flex-direction: column;
}
.court--hero .court-panel {
    background: radial-gradient(ellipse 70% 85% at 50% 45%, rgba(32, 22, 10, 0.72), rgba(32, 22, 10, 0.3) 70%, transparent 100%);
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}
/* Neutralize styles.css's white glass card inside the verse box */
.journey-body .verse-content-hero {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
}
.court--hero h1 {
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    color: var(--ink-light);
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.35), 0 2px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}
.hero-tagline {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: var(--gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}
.journey-body .verse-of-day {
    max-width: 640px;
    margin: 0 auto 2rem;
    background: var(--night-panel-soft);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(8px);
}
.journey-body .verse-text-hero { font-family: 'Playfair Display', serif; font-style: italic; color: var(--ink-light); }
.journey-body .verse-reference-hero { color: var(--gold); margin-top: 0.5rem; }

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.1875rem; /* enlarged for readability over the bright scene */
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.9;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
    animation: cue-drift 2.6s ease-in-out infinite;
}
@keyframes cue-drift {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-cue { animation: none; }
}

/* ---------- Grids inside panels ---------- */
.court-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1.5rem;
}
.court-card {
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 8px;
    padding: 1.25rem;
}
.court-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.court-card p { font-size: 0.95rem; }
.court-card .time { color: var(--ink-light); font-size: 1.3rem; font-weight: 700; }

/* ---------- Buttons on warm surfaces ---------- */
.journey-body .btn-primary {
    background: var(--gold);
    color: var(--primary-dark);
    border: none;
}
.journey-body .btn-primary:hover { background: var(--gold-dark); color: var(--white); }
.journey-body .btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.journey-body .btn-secondary:hover { background: rgba(212, 175, 55, 0.15); color: var(--gold); }

.journey-body :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Bible: the Holy Place ---------- */
.court--bible .court-panel {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.18), 0 20px 60px rgba(0, 0, 0, 0.6);
}
.journey-body .search-box,
.journey-body .bible-result,
.journey-body .quick-links,
.journey-body .daily-verse,
.journey-body .bookmarks-section,
.journey-body .bible-browser,
.journey-body .table-of-contents {
    background: rgba(250, 246, 237, 0.97);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0 0; /* uniform vertical rhythm between all Bible panels */
    color: var(--dark);
}
/* Daily Verse — written as if in the Lamb's blood */
.journey-body .daily-verse .daily-verse-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--scarlet);
    text-align: center;
    letter-spacing: 0.02em;
}
.journey-body .daily-verse .daily-verse-reference {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--scarlet);
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Center the results panel's empty-state message */
.journey-body .bible-result .result-empty {
    text-align: center;
}
.journey-body .bible-result .result-empty p { margin-inline: auto; }

/* Recent searches strip: hidden when empty so it never adds a phantom gap */
.journey-body #recentSearches:empty { display: none; }
.journey-body #recentSearches { margin: 1.5rem 0 0; }
.journey-body .search-box h2,
.journey-body .quick-links h3,
.journey-body .daily-verse h3,
.journey-body .bookmarks-section h3,
.journey-body .bible-browser h3,
.journey-body .table-of-contents h3 { color: var(--primary); font-family: 'Playfair Display', serif; }
.journey-body .search-box p,
.journey-body .bible-result p,
.journey-body .quick-links p,
.journey-body .bible-browser p,
.journey-body .table-of-contents p { color: var(--gray); }
.journey-body #bibleSearch {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--gold);
    border-radius: 6px;
    font-size: 1rem;
    margin-top: 1rem;
}

/* ---------- Contact form on warm panel ---------- */
.journey-body .contact-form label { color: var(--ink-light); }
.journey-body .contact-form input,
.journey-body .contact-form select,
.journey-body .contact-form textarea {
    background: rgba(250, 246, 237, 0.96);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    padding: 0.75rem;
    width: 100%;
    font-size: 1rem;
    color: var(--dark);
}
.journey-body .contact-form .form-group { margin-bottom: 1rem; }
/* Align the form's top with the info cards in the adjacent column */
.journey-body .contact-form { margin-top: 0; }

/* ---------- Events ---------- */
.event-line {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.event-line:last-child { border-bottom: none; }
.event-when {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    white-space: nowrap;
    min-width: 9.5rem;
}

/* ---------- Footer ---------- */
.journey-body .footer {
    position: relative;
    z-index: 1;
    background: rgba(26, 18, 8, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
}

/* ---------- Reveal on scroll ---------- */
.court-panel { transition: opacity 0.6s ease, transform 0.6s ease; }
.court-panel.is-hidden { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
    .court-panel, .court-panel.is-hidden { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 480px) {
    .court { padding: 4.5rem 0.9rem; }
    .court-panel { padding: 1.25rem; }
    .event-when { min-width: 7.5rem; font-size: 0.9rem; }
}
