/*
 * MYTHICAL ARCHIVES - Core Design System
 * Version: 3.1.0
 * Immersive mythological experience styling
 */

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */
:root {
    --myth-gold: #c9a227;
    --myth-gold-light: #e6c84a;
    --myth-gold-glow: rgba(201, 162, 39, 0.5);
    --myth-blue: #4a90a4;
    --myth-blue-dark: #2a5a6a;
    --myth-blue-glow: rgba(74, 144, 164, 0.4);
    --myth-bg-primary: #0d0d15;
    --myth-bg-secondary: #12121c;
    --myth-bg-tertiary: #1a1a28;
    --myth-bg-card: rgba(26, 26, 40, 0.8);
    --myth-text-primary: #f4f0e8;
    --myth-text-secondary: #a8a4a0;
    --myth-text-muted: #6a6866;
    --myth-transition-fast: 0.2s ease;
    --myth-transition-med: 0.3s ease;
    --myth-transition-slow: 0.5s ease;
    --myth-shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --myth-shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --myth-shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --myth-shadow-glow: 0 0 30px var(--myth-gold-glow);
    --myth-font-display: 'Cinzel Decorative', 'Cinzel', serif;
    --myth-font-heading: 'Cinzel', serif;
    --myth-font-body: 'Cormorant Garamond', serif;
}

/* ========================================
   GLOBAL BASE STYLES
   ======================================== */
body {
    background: var(--myth-bg-primary) !important;
    color: var(--myth-text-primary);
    font-family: var(--myth-font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

body, .site, .site-main, .ct-container, .entry-content, [data-prefix], .ct-section {
    background-color: var(--myth-bg-primary) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--myth-font-heading);
    color: var(--myth-text-primary);
}

.entry-content h1, .entry-content h2, .entry-content h3 {
    color: var(--myth-gold);
    text-shadow: 0 0 20px var(--myth-gold-glow);
}

a { color: var(--myth-gold); transition: var(--myth-transition-fast); }
a:hover { color: var(--myth-gold-light); text-shadow: 0 0 10px var(--myth-gold-glow); }

/* ========================================
   COSMIC BACKGROUND SYSTEM
   ======================================== */
.mythical-cosmos {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(201,162,39,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(74,144,164,0.03) 0%, transparent 50%),
        var(--myth-bg-primary);
    animation: cosmicBreathe 20s ease-in-out infinite;
}

@keyframes cosmicBreathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }

.mythical-cosmos::before {
    content: '';
    position: absolute;
    width: 200%; height: 200%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(201,162,39,0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent);
    background-size: 200px 200px;
    animation: starDrift 120s linear infinite;
}

@keyframes starDrift { 0% { transform: translate(0, 0); } 100% { transform: translate(-200px, -200px); } }

#mythical-particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* ========================================
   PORTAL HERO SECTION
   ======================================== */
.portal-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background: radial-gradient(ellipse at center, rgba(201,162,39,0.05) 0%, transparent 60%);
}

.portal-fog { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

.fog-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(201,162,39,0.02) 20%, rgba(74,144,164,0.03) 40%, rgba(201,162,39,0.02) 60%, transparent 100%);
    will-change: transform;
}

.fog-layer:nth-child(1) { animation: fogDrift1 30s ease-in-out infinite; top: 20%; }
.fog-layer:nth-child(2) { animation: fogDrift2 40s ease-in-out infinite; top: 50%; opacity: 0.5; }
.fog-layer:nth-child(3) { animation: fogDrift3 35s ease-in-out infinite; top: 70%; opacity: 0.3; }

@keyframes fogDrift1 { 0%, 100% { transform: translateX(-25%); } 50% { transform: translateX(0%); } }
@keyframes fogDrift2 { 0%, 100% { transform: translateX(0%); } 50% { transform: translateX(-25%); } }
@keyframes fogDrift3 { 0%, 100% { transform: translateX(-15%); } 50% { transform: translateX(10%); } }

.portal-runes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }

.rune {
    position: absolute;
    font-size: 2rem;
    color: rgba(201,162,39,0.15);
    animation: runeFloat 15s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(201,162,39,0.3);
    will-change: transform;
}

.rune:nth-child(1) { left: 5%; top: 20%; animation-delay: 0s; }
.rune:nth-child(2) { left: 15%; top: 70%; animation-delay: -3s; }
.rune:nth-child(3) { left: 85%; top: 25%; animation-delay: -6s; }
.rune:nth-child(4) { left: 90%; top: 65%; animation-delay: -9s; }
.rune:nth-child(5) { left: 50%; top: 10%; animation-delay: -12s; }
.rune:nth-child(6) { left: 8%; top: 45%; animation-delay: -2s; }
.rune:nth-child(7) { left: 92%; top: 45%; animation-delay: -7s; }
.rune:nth-child(8) { left: 25%; top: 85%; animation-delay: -4s; }
.rune:nth-child(9) { left: 75%; top: 85%; animation-delay: -11s; }

@keyframes runeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    25% { transform: translateY(-20px) rotate(5deg); opacity: 0.25; }
    50% { transform: translateY(-10px) rotate(-3deg); opacity: 0.2; }
    75% { transform: translateY(-25px) rotate(3deg); opacity: 0.3; }
}

.portal-ring-container {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portal-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    will-change: transform;
}

.portal-ring-outer {
    width: 100%; height: 100%;
    border-color: rgba(201,162,39,0.3);
    animation: portalRotate 60s linear infinite;
    box-shadow: 0 0 30px rgba(201,162,39,0.1), inset 0 0 30px rgba(201,162,39,0.05);
}

.portal-ring-middle {
    width: 80%; height: 80%;
    border-color: rgba(74,144,164,0.25);
    animation: portalRotate 45s linear infinite reverse;
    box-shadow: 0 0 20px rgba(74,144,164,0.1), inset 0 0 20px rgba(74,144,164,0.05);
}

.portal-ring-inner {
    width: 60%; height: 60%;
    border-color: rgba(201,162,39,0.2);
    animation: portalRotate 30s linear infinite;
    box-shadow: 0 0 15px rgba(201,162,39,0.1), inset 0 0 15px rgba(201,162,39,0.05);
}

.portal-ring-core {
    width: 40%; height: 40%;
    background: radial-gradient(circle, rgba(201,162,39,0.1) 0%, rgba(74,144,164,0.1) 50%, transparent 70%);
    animation: portalPulse 4s ease-in-out infinite;
}

@keyframes portalRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes portalPulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.8; } }

.portal-content { position: relative; z-index: 10; text-align: center; max-width: 800px; }

.portal-sigil {
    font-size: 3rem;
    color: var(--myth-gold);
    margin-bottom: 1rem;
    animation: sigilGlow 3s ease-in-out infinite;
    text-shadow: 0 0 20px var(--myth-gold-glow);
    display: block;
}

@keyframes sigilGlow { 0%, 100% { opacity: 0.7; filter: brightness(1); } 50% { opacity: 1; filter: brightness(1.3); } }

.portal-title {
    font-family: var(--myth-font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--myth-text-primary);
}

.title-line { display: block; }

.title-line-accent {
    display: block;
    background: linear-gradient(135deg, var(--myth-gold) 0%, var(--myth-gold-light) 50%, var(--myth-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s linear infinite;
}

@keyframes goldShimmer { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.portal-subtitle {
    font-size: 1.25rem;
    color: var(--myth-text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* ========================================
   ETHEREAL BUTTONS
   ======================================== */
.btn-ethereal {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--myth-font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--myth-gold);
    background: rgba(201,162,39,0.1);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all var(--myth-transition-med);
    cursor: pointer;
    text-decoration: none;
}

.btn-ethereal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201,162,39,0.2), transparent);
    transition: 0.5s;
}

.btn-ethereal:hover {
    background: rgba(201,162,39,0.2);
    border-color: var(--myth-gold);
    box-shadow: 0 0 30px var(--myth-gold-glow);
    color: var(--myth-gold-light);
    transform: translateY(-2px);
}

.btn-ethereal:hover::before { left: 100%; }

.btn-ethereal.btn-secondary {
    color: var(--myth-blue);
    background: rgba(74,144,164,0.1);
    border-color: rgba(74,144,164,0.3);
}

.btn-ethereal.btn-secondary:hover {
    background: rgba(74,144,164,0.2);
    border-color: var(--myth-blue);
    box-shadow: 0 0 30px var(--myth-blue-glow);
}

.portal-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--myth-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(10px); opacity: 1; } }

/* ========================================
   SECTION STYLING
   ======================================== */
.mythical-section { padding: 6rem 2rem; position: relative; }
.section-container { max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }

.section-overline {
    display: inline-block;
    font-family: var(--myth-font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--myth-gold);
    margin-bottom: 0.5rem;
}

.section-overline::before, .section-overline::after { content: '✦'; margin: 0 0.5rem; opacity: 0.5; }

.section-title {
    font-family: var(--myth-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--myth-text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--myth-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   REALM GATE CARDS
   ======================================== */
.pantheon-realm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }

.realm-gate {
    position: relative;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    perspective: 1000px;
    transition: transform var(--myth-transition-med);
}

.realm-gate:hover { transform: translateY(-8px) rotateX(2deg); }

.realm-gate-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transition: all var(--myth-transition-slow);
    will-change: transform;
}

.realm-greek .realm-gate-bg { background: linear-gradient(135deg, rgba(74,144,164,0.3) 0%, rgba(201,162,39,0.2) 100%); }
.realm-japanese .realm-gate-bg { background: linear-gradient(135deg, rgba(138,58,58,0.3) 0%, rgba(201,162,39,0.2) 100%); }
.realm-norse .realm-gate-bg { background: linear-gradient(135deg, rgba(74,144,164,0.3) 0%, rgba(58,122,74,0.2) 100%); }
.realm-egyptian .realm-gate-bg { background: linear-gradient(135deg, rgba(201,162,39,0.3) 0%, rgba(138,58,58,0.2) 100%); }
.realm-celtic .realm-gate-bg { background: linear-gradient(135deg, rgba(58,122,74,0.3) 0%, rgba(74,144,164,0.2) 100%); }
.realm-chinese .realm-gate-bg { background: linear-gradient(135deg, rgba(138,58,58,0.3) 0%, rgba(201,162,39,0.2) 100%); }

.realm-gate:hover .realm-gate-bg { transform: scale(1.1); }

.realm-gate-content {
    position: relative !important;
    z-index: 10 !important;
    padding: 2rem !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    background: linear-gradient(180deg, transparent 0%, rgba(13,13,21,0.95) 60%) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.realm-sigil { 
    font-size: 2.5rem !important; 
    margin-bottom: 0.5rem !important; 
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.realm-name { 
    font-family: var(--myth-font-display) !important; 
    font-size: 1.75rem !important; 
    color: #f4f0e8 !important; 
    color: var(--myth-text-primary) !important; 
    margin-bottom: 0.25rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.realm-domain { 
    font-size: 0.9rem !important; 
    color: #c9a227 !important;
    color: var(--myth-gold) !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.1em !important; 
    margin-bottom: 0.75rem !important;
    display: block !important;
    visibility: visible !important;
}
.realm-desc { 
    font-size: 1rem !important; 
    color: #a8a4a0 !important;
    color: var(--myth-text-secondary) !important; 
    line-height: 1.6 !important;
    display: block !important;
    visibility: visible !important;
}

.realm-enter {
    display: inline-block !important;
    margin-top: auto !important;
    padding-top: 1rem !important;
    color: #c9a227 !important;
    color: var(--myth-gold) !important;
    font-family: var(--myth-font-heading) !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.1em !important;
    opacity: 0 !important;
    transform: translateY(10px);
    transition: all var(--myth-transition-med);
    visibility: visible !important;
}

.realm-gate:hover .realm-enter { 
    opacity: 1 !important; 
    transform: translateY(0); 
}

/* FIX: Ensure content renders above background */
.realm-gate * {
    position: relative;
}

.realm-gate h3,
.realm-gate p,
.realm-gate span {
    visibility: visible !important;
    opacity: 1 !important;
}

.pantheon-realm-grid .realm-gate-content h3,
.pantheon-realm-grid .realm-gate-content p {
    color: inherit !important;
}

/* ========================================
   MYSTICAL DIVIDER
   ======================================== */
.mystical-divider { display: flex; align-items: center; justify-content: center; padding: 4rem 0; }
.divider-line { flex: 1; max-width: 200px; height: 1px; background: linear-gradient(90deg, transparent, var(--myth-gold), transparent); }
.divider-symbol { color: var(--myth-gold); font-size: 1.5rem; margin: 0 1.5rem; animation: symbolPulse 3s ease-in-out infinite; }

@keyframes symbolPulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }

/* ========================================
   DOMAIN CARDS
   ======================================== */
.creature-domain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.domain-card {
    background: var(--myth-bg-card);
    border: 1px solid rgba(201,162,39,0.1);
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    transition: all var(--myth-transition-med);
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--myth-gold), var(--myth-blue));
    transform: scaleX(0);
    transition: transform var(--myth-transition-med);
}

.domain-card:hover { transform: translateY(-5px); border-color: rgba(201,162,39,0.3); box-shadow: var(--myth-shadow-md); }
.domain-card:hover::before { transform: scaleX(1); }

.domain-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.domain-title { font-family: var(--myth-font-heading); font-size: 1.25rem; color: var(--myth-text-primary); margin-bottom: 0.5rem; }
.domain-creatures { font-size: 0.95rem; color: var(--myth-text-secondary); line-height: 1.6; margin: 0; }

/* ========================================
   CHRONICLE NEWSLETTER
   ======================================== */
.chronicle-section {
    text-align: center;
    padding: 6rem 2rem;
    background: radial-gradient(ellipse at center, rgba(201,162,39,0.05) 0%, transparent 70%);
}

.chronicle-scroll { font-size: 3rem; display: block; margin-bottom: 1rem; animation: scrollFloat 3s ease-in-out infinite; }

@keyframes scrollFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.chronicle-title {
    font-family: var(--myth-font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--myth-gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px var(--myth-gold-glow);
}

.chronicle-desc { font-size: 1.1rem; color: var(--myth-text-secondary); max-width: 600px; margin: 0 auto 2rem; }
.chronicle-note { font-size: 0.85rem; color: var(--myth-text-muted); margin-top: 1.5rem; }

/* ========================================
   VAULT CARDS
   ======================================== */
.vault-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.vault-card {
    background: var(--myth-bg-tertiary);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    transition: all var(--myth-transition-med);
    position: relative;
}

.vault-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, var(--myth-gold), var(--myth-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--myth-transition-med);
}

.vault-card:hover { transform: translateY(-5px); box-shadow: var(--myth-shadow-lg); }
.vault-card:hover::after { opacity: 1; }

.vault-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.vault-title { font-family: var(--myth-font-heading); font-size: 1.35rem; color: var(--myth-text-primary); margin-bottom: 0.75rem; }
.vault-desc { font-size: 0.95rem; color: var(--myth-text-secondary); line-height: 1.7; margin: 0; }

/* ========================================
   JOURNEY CTA
   ======================================== */
.journey-cta {
    text-align: center;
    padding: 6rem 2rem;
    background: radial-gradient(ellipse at center, rgba(74,144,164,0.1) 0%, transparent 70%);
    position: relative;
}

.journey-cta::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(201,162,39,0.05) 0%, transparent 70%);
    animation: journeyPulse 4s ease-in-out infinite;
}

@keyframes journeyPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; } }

.journey-title { font-family: var(--myth-font-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--myth-text-primary); margin-bottom: 1rem; position: relative; }
.journey-desc { font-size: 1.15rem; color: var(--myth-text-secondary); max-width: 700px; margin: 0 auto 1.5rem; position: relative; }
.journey-question { font-family: var(--myth-font-display); font-size: 1.5rem; color: var(--myth-gold); font-style: italic; position: relative; }

/* ========================================
   MAP SECTION
   ======================================== */
.map-section { padding: 6rem 2rem; text-align: center; }
.map-container { max-width: 1200px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: var(--myth-shadow-lg); border: 1px solid rgba(201,162,39,0.2); }
.map-container img { width: 100%; height: auto; display: block; }
.map-caption { color: var(--myth-text-muted); font-size: 0.9rem; margin-top: 1rem; }

/* ========================================
   WISDOM SECTION
   ======================================== */
.wisdom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.wisdom-pillar { text-align: center; padding: 1.5rem; }
.wisdom-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.wisdom-title { font-family: var(--myth-font-heading); font-size: 1.25rem; color: var(--myth-gold); margin-bottom: 0.75rem; }
.wisdom-text { font-size: 1rem; color: var(--myth-text-secondary); line-height: 1.7; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .portal-ring-container { width: 350px; height: 350px; }
    .rune { font-size: 1.5rem; }
    .portal-buttons { flex-direction: column; }
    .btn-ethereal { width: 100%; text-align: center; }
    .pantheon-realm-grid, .creature-domain-grid, .vault-grid { grid-template-columns: 1fr; }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.fog-layer, .rune, .portal-ring, .realm-gate-bg {
    will-change: transform;
    transform: translateZ(0);
}

/* ========================================
   BLOCKSY THEME OVERRIDES & CRITICAL FIXES
   ======================================== */

/* Force visibility on all custom card content */
.pantheon-realm-grid .realm-gate .realm-gate-content,
.pantheon-realm-grid .realm-gate .realm-sigil,
.pantheon-realm-grid .realm-gate .realm-name,
.pantheon-realm-grid .realm-gate .realm-domain,
.pantheon-realm-grid .realm-gate .realm-desc,
.pantheon-realm-grid .realm-gate .realm-enter {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.pantheon-realm-grid a.realm-gate .realm-name {
    color: #f4f0e8 !important;
}

.pantheon-realm-grid a.realm-gate .realm-domain {
    color: #c9a227 !important;
}

.pantheon-realm-grid a.realm-gate .realm-desc {
    color: #a8a4a0 !important;
}

/* Domain Cards Critical Fixes */
.creature-domain-grid .domain-card .domain-icon,
.creature-domain-grid .domain-card .domain-title,
.creature-domain-grid .domain-card .domain-creatures {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.creature-domain-grid a.domain-card .domain-title {
    color: #f4f0e8 !important;
    color: var(--myth-text-primary) !important;
}

.creature-domain-grid a.domain-card .domain-creatures {
    color: #a8a4a0 !important;
    color: var(--myth-text-secondary) !important;
}

/* Vault Cards Critical Fixes */
.vault-grid .vault-card .vault-icon,
.vault-grid .vault-card .vault-title,
.vault-grid .vault-card .vault-desc {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 2 !important;
}

.vault-grid a.vault-card .vault-title {
    color: #f4f0e8 !important;
    color: var(--myth-text-primary) !important;
}

.vault-grid a.vault-card .vault-desc {
    color: #a8a4a0 !important;
    color: var(--myth-text-secondary) !important;
}

/* Wisdom Section Fixes */
.wisdom-grid .wisdom-pillar .wisdom-icon,
.wisdom-grid .wisdom-pillar .wisdom-title,
.wisdom-grid .wisdom-pillar .wisdom-text {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Section Header Fixes */
.section-header .section-overline,
.section-header .section-title,
.section-header .section-subtitle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.section-header .section-overline {
    color: #c9a227 !important;
}

.section-header .section-title {
    color: #f4f0e8 !important;
}

.section-header .section-subtitle {
    color: #a8a4a0 !important;
}

/* Blocksy container overrides */
.ct-container .realm-gate-content,
.ct-container .domain-card,
.ct-container .vault-card,
[data-prefix] .realm-gate-content,
[data-prefix] .domain-card,
[data-prefix] .vault-card {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure links don't hide content */
a.realm-gate,
a.domain-card,
a.vault-card {
    color: inherit;
}

a.realm-gate:hover,
a.domain-card:hover,
a.vault-card:hover {
    color: inherit;
}

/* Chronicle section fixes */
.chronicle-section .chronicle-scroll,
.chronicle-section .chronicle-title,
.chronicle-section .chronicle-desc,
.chronicle-section .chronicle-note {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Journey CTA fixes */
.journey-cta .journey-title,
.journey-cta .journey-desc,
.journey-cta .journey-question {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Portal Hero fixes */
.portal-hero .portal-content,
.portal-hero .portal-sigil,
.portal-hero .portal-title,
.portal-hero .portal-subtitle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
