@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* --- BASE --- */
:root {
    --gold: #D4AF37;
    --gold-light: #F9F1D8;
    --gold-dim: #8a7326;
    --black: #030303;
    --panel-bg: rgba(10, 10, 10, 0.7);
}

* { box-sizing: border-box; }

body { 
    font-family: 'Playfair Display', serif; 
    background-color: var(--black); 
    color: var(--gold-light);
    background-image: radial-gradient(circle at top center, #1F1512 0%, #000000 100%);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- TEXTURES & ATMOSPHERE --- */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 50; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- TYPOGRAPHY --- */
.font-display { font-family: 'Cinzel', serif; }
.font-serif { font-family: 'Playfair Display', serif; }

.text-gold { color: var(--gold); }

/* RESTORED: ANIMATED LIQUID GOLD */
.text-gradient-gold { 
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c); 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent; 
    background-size: 200% auto; 
    animation: shine 4s linear infinite; 
    padding-right: 0.1em; /* Prevent italic clipping */
}
@keyframes shine { to { background-position: 200% center; } }

.text-shadow-glow { text-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }

/* --- UI ELEMENTS --- */
.glass-panel {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 30px rgba(0,0,0,0.5);
}

.input-lux { 
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(212,175,55,0.2); 
    transition: all 0.4s ease; 
    color: white; 
}
.input-lux:focus { 
    border-color: var(--gold); 
    background: rgba(212,175,55,0.05); 
    box-shadow: 0 0 15px rgba(212,175,55,0.1);
    outline: none; 
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(to bottom, #8a7326, #D4AF37); 
    border-radius: 3px; 
}

/* --- ANIMATIONS --- */
.animate-fade-in-up { animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.animate-pulse-slow { animation: pulseSlow 4s ease-in-out infinite; }
@keyframes pulseSlow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.scanner-line { 
    width: 100%; height: 2px; 
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 20px var(--gold); 
    animation: scan 2s cubic-bezier(0.4, 0, 0.2, 1) infinite; 
}
@keyframes scan { 
    0% { transform: translateY(-50px) scaleX(0.5); opacity: 0; } 
    50% { opacity: 1; transform: translateY(0) scaleX(1); } 
    100% { transform: translateY(150px) scaleX(0.5); opacity: 0; } 
}

/* Selection */
::selection { background: var(--gold); color: black; }

/* Add to styles.css */

/* Custom Resize Handle styling for Webkit */
#chat-window::-webkit-resizer {
    background-color: transparent;
    border-bottom: 2px solid #D4AF37;
    border-right: 2px solid #D4AF37;
}

/* Ensure Chat is above everything, including GSAP particles */
#chat-widget, #chat-window {
    z-index: 9999 !important;
}

/* Ensure text inside chat is readable against the darker background */
#chat-messages span {
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Update these classes in your styles.css */
.historical-context div, 
.theological-depth div, 
.alignment-application p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(245, 230, 211, 0.9);
    margin-bottom: 1.5rem; /* This creates the physical gap between paragraphs */
}

/* Ensure the Word/Scripture section is massive and beautiful */
.main-passage-text {
    font-style: italic;
    letter-spacing: -0.01em;
    line-height: 1.4;
    border-left: 3px solid var(--gold);
    padding-left: 2rem;
}