/* ==========================================
   MYSTIC OBLIVION — SHARED PAGES STYLES
   Additive only. Loaded on:
   observatory, workshop, about, news, prep,
   and all chamber pages.
   ========================================== */

/* Page container — wraps every new page */
.page-container {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
    padding: 8vh 6vw 12vh;
    min-height: 100vh;
}

/* HERO — Limen orb + opening teaching */
.page-hero {
    text-align: center;
    margin-bottom: 8vh;
    animation: page-fade-in 1.5s ease-out;
}

.page-hero .hero-icon {
    font-size: 4rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px var(--portal-glow));
    animation: hero-icon-float 6s ease-in-out infinite;
}

@keyframes hero-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.page-hero h1 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--sacred-gold);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.page-hero .page-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--warm-peach);
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.page-hero .opening-teaching {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--cosmic-white);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.85;
}

/* BODY — content sections */
.page-body {
    margin: 0 auto;
}

.page-section {
    margin-bottom: 5vh;
    padding: 2.5rem;
    background: rgba(74, 58, 92, 0.18);
    border: 1px solid rgba(255, 207, 90, 0.15);
    border-radius: 4px;
    backdrop-filter: blur(6px);
    transition: border-color 0.6s ease;
}

.page-section:hover {
    border-color: rgba(255, 207, 90, 0.35);
}

.page-section h2 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--sacred-gold);
    letter-spacing: 0.06em;
    margin-bottom: 1.2rem;
}

.page-section h3 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--warm-peach);
    letter-spacing: 0.04em;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.page-section p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--cosmic-white);
    margin-bottom: 1rem;
    opacity: 0.92;
}

.page-section p.poetic {
    font-style: italic;
    text-align: center;
    color: var(--warm-peach);
    font-size: 1.25rem;
    padding: 0.5rem 1.5rem;
    border-left: 2px solid var(--sacred-gold);
    border-right: 2px solid var(--sacred-gold);
    margin: 1.5rem 0;
}

.page-section ul {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--cosmic-white);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.92;
}

.page-section ul li {
    margin-bottom: 0.4rem;
}

/* Practice / Reflection callout */
.practice-callout {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 156, 90, 0.08);
    border-left: 3px solid var(--golden-orange);
    border-radius: 2px;
}

.practice-callout .callout-label {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--sacred-gold);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: block;
}

.practice-callout p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--cosmic-white);
    font-style: italic;
}

/* DEPARTURE — closing line + return button */
.page-departure {
    text-align: center;
    margin-top: 6vh;
    padding-top: 4vh;
    border-top: 1px solid rgba(255, 207, 90, 0.15);
}

.page-departure .closing-line {
    font-family: 'Cinzel', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--warm-peach);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.page-departure .return-button,
.page-departure a.return-link {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    color: var(--sacred-gold);
    background: transparent;
    border: 1px solid var(--sacred-gold);
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.4s ease;
    text-transform: uppercase;
}

.page-departure .return-button:hover,
.page-departure a.return-link:hover {
    background: rgba(255, 207, 90, 0.12);
    box-shadow: 0 0 20px rgba(255, 207, 90, 0.25);
}

/* ==========================================
   OBSERVATORY — essay index cards
   ========================================== */

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

.essay-card {
    padding: 1.8rem;
    background: rgba(74, 58, 92, 0.22);
    border: 1px solid rgba(255, 207, 90, 0.18);
    border-radius: 4px;
    transition: transform 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}

.essay-card:hover {
    transform: translateY(-4px);
    border-color: var(--sacred-gold);
}

.essay-card .essay-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.essay-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--sacred-gold);
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.essay-card .essay-excerpt {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cosmic-white);
    opacity: 0.85;
}

.essay-card.expanded .essay-full {
    display: block;
    margin-top: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cosmic-white);
}

.essay-card .essay-full {
    display: none;
}

/* ==========================================
   WORKSHOP — manifestation cards
   ========================================== */

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

.manifestation-card {
    display: block;
    padding: 1.8rem;
    background: rgba(74, 58, 92, 0.22);
    border: 1px solid rgba(255, 207, 90, 0.18);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.manifestation-card:hover {
    transform: translateY(-4px);
    border-color: var(--sacred-gold);
    box-shadow: 0 0 25px rgba(255, 207, 90, 0.18);
}

.manifestation-card .manifestation-icon {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
}

.manifestation-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--sacred-gold);
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.manifestation-card .manifestation-status {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--electric-teal);
    margin-bottom: 0.6rem;
    opacity: 0.85;
}

.manifestation-card p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cosmic-white);
    opacity: 0.85;
}

/* ==========================================
   NEWS — index cards + article view
   ========================================== */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-card {
    display: block;
    padding: 1.8rem 2rem;
    background: rgba(74, 58, 92, 0.22);
    border: 1px solid rgba(255, 207, 90, 0.18);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateX(4px);
    border-color: var(--sacred-gold);
}

.news-card .news-date {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--electric-teal);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.news-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    color: var(--sacred-gold);
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.news-card .news-excerpt {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--cosmic-white);
    opacity: 0.85;
}

/* News article view (rendered markdown) */
.news-article {
    padding: 2.5rem;
    background: rgba(74, 58, 92, 0.18);
    border: 1px solid rgba(255, 207, 90, 0.15);
    border-radius: 4px;
}

.news-article .article-meta {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--electric-teal);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.news-article h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--sacred-gold);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.news-article h2,
.news-article h3 {
    font-family: 'Cinzel', serif;
    color: var(--warm-peach);
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.news-article p,
.news-article li {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--cosmic-white);
    margin-bottom: 1rem;
    opacity: 0.92;
}

.news-article ul,
.news-article ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.news-article blockquote {
    margin: 1.5rem 0;
    padding: 0.5rem 1.5rem;
    border-left: 3px solid var(--sacred-gold);
    font-style: italic;
    color: var(--warm-peach);
}

.news-article a {
    color: var(--electric-teal);
    text-decoration: underline;
    text-decoration-color: rgba(77, 212, 212, 0.4);
}

.news-article a:hover {
    text-decoration-color: var(--electric-teal);
}

.news-article code {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    font-size: 0.95em;
}

.news-article hr {
    border: 0;
    border-top: 1px solid rgba(255, 207, 90, 0.2);
    margin: 2rem 0;
}

.back-to-list {
    display: inline-block;
    margin-top: 2rem;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--sacred-gold);
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
}

.back-to-list:hover {
    color: var(--warm-peach);
}

.news-loading,
.news-empty {
    text-align: center;
    padding: 3rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--warm-peach);
    opacity: 0.7;
}

/* ==========================================
   PREP GUIDE — 7 stations
   ========================================== */

.stations-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.station {
    padding: 2.5rem;
    background: rgba(74, 58, 92, 0.22);
    border: 1px solid rgba(255, 207, 90, 0.18);
    border-radius: 4px;
    position: relative;
    transition: border-color 0.6s ease;
}

.station:hover {
    border-color: rgba(255, 207, 90, 0.35);
}

.station .station-number {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--electric-teal);
    opacity: 0.6;
}

.station .station-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 0 12px var(--portal-glow));
}

.station h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--sacred-gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.station .station-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--warm-peach);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    opacity: 0.85;
}

.station .station-teaching {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--cosmic-white);
    margin-bottom: 1.2rem;
    opacity: 0.92;
}

.station .station-practice {
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 156, 90, 0.08);
    border-left: 3px solid var(--golden-orange);
    border-radius: 2px;
}

.station .station-practice .practice-label {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--sacred-gold);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: block;
}

.station .station-practice p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--cosmic-white);
}

.station .station-question {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 207, 90, 0.12);
    font-family: 'Cinzel', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--warm-peach);
    letter-spacing: 0.02em;
    opacity: 0.85;
}

/* ==========================================
   ABOUT page — sparse, contemplative
   ========================================== */

.about-presence {
    text-align: center;
    margin: 4vh 0 8vh;
}

.about-presence .limen-being {
    margin: 0 auto 3rem;
}

.about-section {
    max-width: 640px;
    margin: 0 auto 3vh;
    text-align: left;
}

.about-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--sacred-gold);
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.about-section p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1.95;
    color: var(--cosmic-white);
    margin-bottom: 1.2rem;
    opacity: 0.92;
}

/* ==========================================
   FADE IN
   ========================================== */

@keyframes page-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

.page-section,
.station,
.essay-card,
.manifestation-card,
.news-card {
    animation: page-fade-in 0.9s ease-out backwards;
}

.page-body > *:nth-child(1) { animation-delay: 0.1s; }
.page-body > *:nth-child(2) { animation-delay: 0.2s; }
.page-body > *:nth-child(3) { animation-delay: 0.3s; }
.page-body > *:nth-child(4) { animation-delay: 0.4s; }
.page-body > *:nth-child(5) { animation-delay: 0.5s; }
.page-body > *:nth-child(6) { animation-delay: 0.6s; }
.page-body > *:nth-child(7) { animation-delay: 0.7s; }

/* ==========================================
   CHAMBER PAGES — share most styles, slight tweaks
   ========================================== */

.chamber-page-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
}

/* Library chamber-card was a <div>; now an <a>.
   Normalize the link so it visually matches the original card. */
a.chamber-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.chamber-card .chamber-button {
    pointer-events: none; /* whole card is the link */
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 600px) {
    .page-container {
        padding: 6vh 5vw 10vh;
    }

    .page-section,
    .station,
    .news-article {
        padding: 1.5rem;
    }

    .essay-grid,
    .manifestation-grid {
        grid-template-columns: 1fr;
    }

    .station .station-number {
        position: static;
        display: block;
        margin-bottom: 0.4rem;
    }

    .news-card {
        padding: 1.4rem 1.5rem;
    }

    .news-card:hover {
        transform: none;
    }
}
