/* 
====================================================
SPIRITUAL HERBALS - MASTER HOLISTIC STYLESHEET
Theme: Slate Grey Archive (Production Grade)
Palette: Slate Grey (#2a2a2a), Parchment (#fffdec), Gold (#f1c40f)
====================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Inter:wght@300;400;600;800&display=swap');

:root {
    --gold: #f1c40f;         /* Radiant Divine Gold */
    --gold-glow: rgba(241, 196, 15, 0.4);
    --parchment: #fffdec;    /* Primary Text - Bright Scroll */
    --aged-paper: #ece6d1;   /* Muted Text - Secondary */
    --mercury: #ffffff;      /* Pure Highlights */
    
    /* THE 24% BRIGHTER BACKGROUND SYSTEM */
    --dark-bg: #2a2a2a;      /* Main Background (Slate Grey) */
    --stone-bg: #383838;     /* Card Background (Elevated Grey) */
    --deep-black: #1a1a1a;   /* Inputs and Deep Areas */
    
    --glass: rgba(255, 255, 255, 0.08);
    --transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 1. CORE RESET & BODY */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body { 
    background-color: var(--dark-bg); 
    color: var(--parchment); 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden; 
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }

/* 2. UNIVERSAL TYPOGRAPHY */
h1, h2, h3, h4, h5, .gold-text { 
    font-family: 'Cinzel', serif; 
    color: var(--gold) !important; 
    text-shadow: 0 0 15px var(--gold-glow); 
    letter-spacing: 1px;
}

p, span, li, label, .mercury-text { color: var(--parchment); line-height: 1.8; }
.silver-text { color: var(--aged-paper) !important; }
.small-caps { text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; }

/* 3. NAVIGATION */
.navbar { 
    background: rgba(42, 42, 42, 0.96) !important; 
    border-bottom: 1px solid rgba(241, 196, 15, 0.2); 
    backdrop-filter: blur(15px);
}
.nav-link { 
    color: var(--aged-paper) !important; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    padding: 10px 20px !important;
}
.nav-link:hover, .nav-link.active { color: var(--gold) !important; }

/* 4. LUXURY COMPONENTS */
.mystic-card {
    background: var(--stone-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 30px;
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.mystic-card:hover { 
    border-color: var(--gold); 
    box-shadow: 0 10px 50px rgba(0,0,0,0.5); 
    transform: translateY(-8px);
}

.btn-mystic {
    background: linear-gradient(45deg, #d4af37, #f1c40f);
    color: #000 !important; font-weight: 800; border: none; border-radius: 50px;
    padding: 14px 40px; text-transform: uppercase; letter-spacing: 2px;
    transition: 0.3s;
}
.btn-mystic:hover { transform: scale(1.03); box-shadow: 0 0 30px var(--gold-glow); background: #fff !important; }

/* 5. HERO ENGINE & FLOATING HEADS */
.portal-hero { position: relative; min-height: 100vh; background: var(--dark-bg); overflow: hidden; display: flex; align-items: center; }
.hero-visual-engine { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.globe-underlay { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) contrast(1.1); opacity: 0.4; }

.node-head-circle {
    position: absolute; width: 55px; height: 55px; border-radius: 50%;
    border: 2px solid var(--gold); box-shadow: 0 0 25px var(--gold-glow);
    background-size: cover; background-position: center; z-index: 10;
    animation: floatNode 6s infinite ease-in-out;
}
@keyframes floatNode { 0%, 100% { transform: translateY(0); filter: brightness(1); } 50% { transform: translateY(-20px); filter: brightness(1.3); } }

/* 6. NEURAL GENERATORS (Spells/Herbs/Oracle) */
.icon-orb-lg {
    width: 110px; height: 110px;
    background: radial-gradient(circle, rgba(241, 196, 15, 0.2) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; transition: 0.4s;
}
.action-hover-card:hover .icon-orb-lg { border-color: var(--gold); transform: scale(1.1) rotate(10deg); }

/* 7. CHAT SYSTEM (Sided) */
/* Seeker (User) -> LEFT SIDE */
.bubble-seeker { 
    align-self: flex-start !important; 
    background: #444 !important; 
    color: var(--parchment) !important; 
    border: 1px solid #555;
    border-radius: 18px 18px 18px 0; 
    margin-bottom: 12px; padding: 12px 18px;
    max-width: 80%;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}
/* Temple (Admin) -> RIGHT SIDE */
.bubble-temple { 
    align-self: flex-end !important; 
    background: linear-gradient(135deg, var(--gold), #ffffff) !important; 
    color: #000 !important; font-weight: 700;
    border-radius: 18px 18px 0 18px; 
    margin-bottom: 12px; padding: 12px 18px;
    max-width: 80%;
    box-shadow: 0 5px 20px var(--gold-glow);
}

/* 8. WIDGETS & TOASTS */
#mini-feed-widget { z-index: 10000; pointer-events: auto; }
.mystic-toast-item { 
    background: rgba(42, 42, 42, 0.98); 
    border-left: 4px solid var(--gold); 
    border-radius: 10px;
    color: var(--parchment);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 9. FORM & INPUTS (Visibility Fix) */
.form-control, .form-select {
    background: var(--deep-black) !important; 
    color: #ffffff !important;
    border: 1px solid #555 !important; 
    border-radius: 12px; padding: 12px;
}
.form-control:focus { border-color: var(--gold) !important; box-shadow: 0 0 15px var(--gold-glow) !important; }
::placeholder { color: var(--aged-paper) !important; opacity: 0.5; }

/* 10. BACKGROUND STARFIELD */
#bg-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none; opacity: 0.6;
}

/* 11. ARTICLE PORTALS */
.artifact-portal {
    height: 180px; 
    background: radial-gradient(circle, #444 0%, #2a2a2a 100%); 
    display: flex; align-items: center; justify-content: center; 
    font-size: 4rem; color: var(--gold); opacity: 0.4; transition: 0.5s;
}
.luxury-hover:hover .artifact-portal { opacity: 1; transform: scale(1.05); filter: drop-shadow(0 0 20px var(--gold)); }

/* 12. PREDICTIVE SEARCH */
#predictive-container, #predictive-box {
    background: var(--stone-bg);
    border: 1px solid var(--gold);
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

/* 13. ANIMATIONS */
.animate-wand-glow { animation: wandWave 3s infinite ease-in-out; }
@keyframes wandWave { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(20deg); } }

/* 14. ADMIN TABLES */
.table { color: var(--parchment) !important; }
.table-hover tbody tr:hover { background: rgba(241, 196, 15, 0.05) !important; }

/* 15. MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .main-content { margin-left: 0 !important; padding: 20px !important; }
    .hero-main-title { font-size: 3rem !important; }
    .mystic-card { padding: 20px; }
    .node-head-circle { width: 35px; height: 35px; }
}