/* Global Starfield Background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
    background: transparent;
}

.starfield::before,
.starfield::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: radial-gradient(1px 1px at 10% 20%, #fff, transparent),
        radial-gradient(1px 1px at 30% 50%, #fff, transparent),
        radial-gradient(1px 1px at 50% 80%, #fff, transparent),
        radial-gradient(1px 1px at 70% 30%, #fff, transparent),
        radial-gradient(1px 1px at 90% 60%, #fff, transparent);
    background-size: 50% 50%;
    opacity: 0.3;
    animation: global-star-drift 240s linear infinite;
}

.starfield::after {
    opacity: 0.15;
    animation-duration: 400s;
    animation-direction: reverse;
}

@keyframes global-star-drift {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

:root {
    --bg-color: #090c15;
    --bg-gradient: radial-gradient(circle at top center, #1a233a 0%, #090c15 60%);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-blue: #3b82f6;
    --accent-gold: #fde047;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Light ray effect */
.light-ray {
    position: fixed;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 150vh;
    background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cinzel {
    font-family: 'Cinzel', serif;
}

main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    /* Expanded for new grid layouts */
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner Hero Styling */
.banner-hero {
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    margin-top: 0;
    margin-bottom: 30px;
    border-radius: 0;
    /* Removed rounding as requested */
    width: 100%;
    min-height: 40vh;
    /* Reduced from 50vh to feel less empty */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, #1e293b 0%, var(--bg-color) 70%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    /* Places content over image */
    z-index: 2;
    padding: 100px 40px 60px 40px;
}

.majestic-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff, var(--accent-gold), #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(253, 224, 71, 0.3), 0 2px 5px rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.horizontal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    /* Slightly wider gap for full horizontal bar */
    flex-wrap: wrap;
}

.main-nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -30px;
    margin-bottom: 60px;
    padding: 15px 0;
    background: rgba(30, 41, 59, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 100;
}

.nav-link,
.hebrew-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.7);
    /* Deeply muted Slate/Indigo */
    text-decoration: none;
    position: relative;
    transition: all 0.5s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
}

.nav-link:hover,
.hebrew-link:hover {
    color: rgba(253, 224, 71, 0.9);
    /* Dulls the hover gold slightly as well */
    text-shadow: 0 0 10px rgba(253, 224, 71, 0.3);
}

.hebrew-text-large {
    font-size: 2rem;
    color: var(--accent-blue);
    text-align: center;
    display: block;
    margin-bottom: 10px;
}

.domain-text {
    font-family: 'Cinzel', serif;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.domain-text:hover {
    color: var(--text-primary);
}

/* Content Sections */
.content-wrapper {
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--accent-gold);
}

.glass-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glow Effect for Journals and Linked Boxes */
.interactive-glow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s ease-out;
}

.interactive-glow:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(253, 224, 71, 0.25),
        0 0 20px rgba(253, 224, 71, 0.15),
        inset 0 0 30px rgba(253, 224, 71, 0.08);
    border-color: rgba(253, 224, 71, 0.9);
    z-index: 10;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 300;
}

p:last-child {
    margin-bottom: 0;
}

/* Specific component layouts */
.scripture-block {
    margin: 30px 0;
    padding-left: 20px;
    border-left: 3px solid var(--accent-gold);
}

.scripture {
    font-style: italic;
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.scripture-reference {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.scripture-reference::before,
.scripture-reference::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(253, 224, 71, 0.6), transparent);
    margin: 0 20px;
}


/* Advanced Journal Layout */
.journal-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 900px) {
    .journal-layout-grid {
        display: grid;
        grid-template-columns: 1fr 300px;
        /* Entries left, Parallax placeholder right */
        align-items: stretch;
    }
}

.journal-entries-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.journal-entry {
    padding: 30px;
    margin-bottom: 0 !important;
    display: block;
    position: relative;
    padding-top: 45px;
    /* Extra top room for mobile top-ribbon scenario */
}

@media (min-width: 600px) {
    .journal-entry {
        padding: 40px;
        padding-left: 110px;
        /* Dedicated space so the text never touches the ribbon */
    }
}



.entry-content p {
    font-size: 1.02rem;
}

.entry-meta {
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.entry-mood {
    width: 100%;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
}

@media (min-width: 600px) {
    .entry-meta {
        top: 25px;
        left: -20px;
        border-radius: 6px;
    }
}

.entry-meta time {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Parallax Area Styling */
.parallax-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: rgba(30, 41, 59, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.placeholder-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.line-decorator {
    height: 1px;
    width: 50px;
    background: rgba(253, 224, 71, 0.3);
    margin: 0 auto;
}

@media (max-width: 899px) {
    .hidden-mobile {
        display: none !important;
    }
}


.heart {
    color: #60a5fa;
}

.signature {
    margin-top: 25px;
    font-style: italic;
    color: var(--accent-gold);
}


.vine-quote {
    padding: 50px 30px;
    margin: 60px 0;
}

.text-gradient {
    font-size: 2rem;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-gold));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(253, 224, 71, 0.2);
}

/* Memorial */
.highlight-box {
    border-color: var(--glass-border);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.memorial-intro,
.memorial-outro {
    text-align: left;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
}

.names-list {
    list-style: none;
    text-align: left;
    margin: 40px 0;
    padding-left: 20px;
    border-left: 1px solid rgba(253, 224, 71, 0.2);
}

.names-list li {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin: 15px 0;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 0;
    background: #0f172a;
    /* Solid deep indigo/slate */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
    width: 100%;
    position: relative;
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.back-to-top {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #fef08a;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards ease-out;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1.0s;
}

.delay-6 {
    animation-delay: 1.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .majestic-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 50px 20px;
    }

    .glass-box {
        padding: 25px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Helper Classes */
.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-underline {
    text-decoration: none;
}

.hover-glow {
    display: inline-block;
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.link-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.link-box:hover .hover-glow {
    text-shadow: 0 0 20px rgba(253, 224, 71, 0.6);
    transform: scale(1.02);
}

.scripture-note {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: normal;
    font-family: 'Inter', sans-serif;
}

/* Focused Pages */
.focused-page {
    margin-top: 40px;
    min-height: calc(100vh - 160px);
}

.back-nav {
    margin-bottom: 30px;
    text-align: center;
}

.back-link {
    display: inline-block;
    color: var(--accent-gold);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: 1px solid rgba(253, 224, 71, 0.3);
    border-radius: 30px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(5px);
}

.back-link:hover {
    color: #fef08a;
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(253, 224, 71, 0.6);
    box-shadow: 0 0 15px rgba(253, 224, 71, 0.2);
}

.page-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    line-height: 1.3;
}

.standalone-image {
    max-width: 600px;
    margin: 0 auto;
}

.art-selection-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.art-bridge-link {
    cursor: pointer;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 30px !important;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.art-bridge-link p {
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin: 0;
    letter-spacing: 2.5px;
    font-style: italic;
    text-shadow: 0 0 10px rgba(253, 224, 71, 0.2);
}



/* Art Showcase Specifics - Rectangular & Overlaid */
.art-showcase-container {
    max-width: 900px;
    margin: 40px auto 0;
    position: relative;
    /* Removed border and shadow from main wrapper */
    border-radius: 0;
    animation: fadeIn 0.8s ease-out;
}

.art-quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Subtle fade from dark top to transparent */
    background: linear-gradient(to bottom,
            rgba(9, 12, 21, 0.8) 0%,
            rgba(9, 12, 21, 0.4) 60%,
            transparent 100%);
    padding: 35px 20px;
    z-index: 10;
    text-align: center;
}

.art-quote-sub {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 2.5px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.art-images-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.art-version-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.art-version-container:not(:last-child) {
    margin-bottom: 20px;
}

.art-version-container img {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 1.2s ease;
}

.art-version-container:hover img {
    transform: scale(1.02);
}

.version-ribbon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    padding: 12px 24px;
    color: var(--accent-gold);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 15;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.large-names li {
    font-size: 1.8rem;
    margin: 25px 0;
    letter-spacing: 1px;
}

/* Celestial Parallax Bar Specifics */
.parallax-placeholder {
    position: relative;
    min-height: 500px;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(253, 224, 71, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.stars-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.stars-layer {
    position: absolute;
    inset: -100px;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.4;
}

.stars-layer-1 {
    animation: celestial-drift-1 120s linear infinite, twinkle 4s ease-in-out infinite;
    opacity: 0.6;
}

.stars-layer-2 {
    background-size: 300px 300px;
    animation: celestial-drift-2 180s linear infinite, twinkle 7s ease-in-out infinite 1s;
    opacity: 0.4;
}

.stars-layer-3 {
    background-size: 150px 150px;
    animation: celestial-drift-3 90s linear infinite, twinkle 5s ease-in-out infinite 2s;
    opacity: 0.2;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes celestial-drift-1 {
    from {
        transform: translateY(0) rotate(0deg);
    }

    to {
        transform: translateY(-200px) rotate(5deg);
    }
}

@keyframes celestial-drift-2 {
    from {
        transform: translateX(0) scale(1);
    }

    to {
        transform: translateX(-150px) scale(1.1);
    }
}

@keyframes celestial-drift-3 {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(-100px, -100px) rotate(-10deg);
    }
}

.parallax-placeholder .placeholder-content {
    position: relative;
    z-index: 5;
    background: rgba(9, 12, 21, 0.5);
    padding: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.parallax-placeholder .placeholder-text {
    margin: 15px 0;
    font-size: 1.1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(253, 224, 71, 0.5);
}

/* -------------------------------------------------
   Hibernation Mode - Full Site Overlay
   ------------------------------------------------- */
body.hibernation-mode {
    overflow: hidden !important;
    height: 100vh;
}

.hibernation-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #020617;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    /* Removed animation for instant load */
}

body.hibernation-mode .hibernation-overlay {
    display: flex;
}

.hibernation-content {
    max-width: 95vw;
    /* Allow it to take up most of the width */
    position: relative;
    z-index: 10002;
}

.hibernation-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    /* Slightly larger default */
    color: var(--accent-gold);
    margin-bottom: 25px;
    letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(253, 224, 71, 0.4);
    white-space: nowrap;
    /* Prevents wrapping */
}

.hibernation-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 50px;
    font-family: 'Inter', sans-serif;
}

.hibernation-status {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-blue);
    opacity: 0.8;
}

.hibernation-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 40px auto;
}

/* Ensure the starfield is still visible but layered under moderation */
body.hibernation-mode .starfield {
    z-index: 10001;
}

@media (max-width: 900px) {
    .hibernation-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 600px) {
    .hibernation-title {
        font-size: 1.2rem;
        /* Ensure it really doesn't wrap on small phones */
        letter-spacing: 2px;
    }

    .hibernation-quote {
        font-size: 1.1rem;
    }
}