/* 🔮 DARKAIS QUANT TAROT — MASTER CYBER ORACLE STYLESHEET */
:root {
    --bg-dark: #05070D;
    --bg-card: #0B101D;
    --bg-panel: #12192C;
    --bg-glass: rgba(11, 16, 29, 0.94);
    
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --cyan: #00F0FF;
    --cyan-glow: rgba(0, 240, 255, 0.35);
    
    --purple: #C084FC;
    --purple-dark: #A855F7;
    --purple-glow: rgba(168, 85, 247, 0.35);
    
    --gold: #FFB800;
    --gold-glow: rgba(255, 184, 0, 0.35);
    
    --acid: #39FF14;
    --danger: #FF0055;
    
    --border: #1E293B;
    --border-light: #2B3B55;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Roboto', -apple-system, sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-primary); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Orbitron', sans-serif; letter-spacing: 0.5px; }
.mono { font-family: 'JetBrains Mono', monospace; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }

/* Header */
.header { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: var(--bg-glass); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.logo a { display: flex; align-items: center; gap: 8px; }
.logo h1 { font-size: 18px; font-weight: 800; }
.logo .accent { color: var(--gold); text-shadow: 0 0 10px var(--gold-glow); }
.logo .sub { color: var(--cyan); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--text-secondary); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: var(--radius-sm); transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(255, 184, 0, 0.08); border: 1px solid rgba(255, 184, 0, 0.25); }

.star-btn { background: rgba(255, 184, 0, 0.1); border: 1px solid rgba(255, 184, 0, 0.4); color: #FFB800; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.star-btn:hover { background: #FFB800; color: #05070A; box-shadow: 0 0 15px rgba(255, 184, 0, 0.4); }

/* Altar / Hero */
.altar-hero { padding: 35px 20px 25px; text-align: center; background: radial-gradient(circle at 50% 20%, rgba(255, 184, 0, 0.08) 0%, rgba(168, 85, 247, 0.05) 45%, transparent 75%), linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%); border-bottom: 1px solid var(--border); }
.altar-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.altar-title .glow { color: var(--gold); text-shadow: 0 0 16px var(--gold-glow); }
.altar-desc { font-size: 15px; color: var(--text-secondary); max-width: 800px; margin: 0 auto 20px; }

/* 🔮 Custom Question Input Box */
.oracle-query-box { max-width: 650px; margin: 0 auto 20px; position: relative; }
.oracle-query-input { width: 100%; background: rgba(18, 25, 44, 0.9); border: 1px solid var(--gold); color: #FFF; padding: 12px 18px; border-radius: var(--radius-md); font-size: 14px; outline: none; box-shadow: 0 0 15px rgba(255, 184, 0, 0.15); transition: all 0.2s ease; }
.oracle-query-input:focus { border-color: var(--cyan); box-shadow: 0 0 25px var(--cyan-glow); }
.query-chips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip-btn { background: var(--bg-panel); border: 1px solid var(--border); color: var(--text-muted); padding: 3px 8px; border-radius: 12px; font-size: 11px; cursor: pointer; transition: all 0.2s; }
.chip-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Spread Mode Tabs */
.spread-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.spread-btn { background: var(--bg-panel); border: 1px solid var(--border); color: var(--text-secondary); padding: 8px 16px; border-radius: var(--radius-md); font-family: 'Orbitron', sans-serif; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.spread-btn:hover { border-color: var(--gold); color: #FFF; }
.spread-btn.active { background: rgba(255, 184, 0, 0.12); border-color: var(--gold); color: var(--gold); box-shadow: 0 0 16px var(--gold-glow); }

/* 3D Cards Altar Arena */
.altar-arena { max-width: 1200px; margin: 24px auto 40px; padding: 0 20px; width: 100%; }

.cards-spread-container { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; perspective: 1200px; min-height: 380px; align-items: center; margin-bottom: 30px; }

/* 3D Holographic Card Element */
.tarot-card-slot { width: 220px; height: 360px; perspective: 1000px; cursor: pointer; position: relative; }

.tarot-card-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-radius: var(--radius-lg); box-shadow: 0 15px 35px rgba(0,0,0,0.8); }
.tarot-card-inner.flipped { transform: rotateY(180deg); }
.tarot-card-inner.flipped.inverted { transform: rotateY(180deg) rotateZ(180deg); }

.card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }

/* Holographic Shimmer Foil Overlay */
.card-face::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, transparent 20%, rgba(0,240,255,0.15) 45%, rgba(255,0,170,0.15) 55%, transparent 80%); pointer-events: none; opacity: 0.6; mix-blend-mode: color-dodge; }

/* Card Back (Holographic Cyber Rune) */
.card-back { background: radial-gradient(circle at 50% 50%, #172138 0%, #080C14 100%); border: 2px solid var(--cyan); box-shadow: 0 0 15px var(--cyan-glow); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.card-back-rune { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 0 15px var(--gold-glow); animation: pulseRune 3s infinite; }
@keyframes pulseRune { 0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--gold-glow); } 50% { transform: scale(1.08); box-shadow: 0 0 20px var(--gold); } }
.card-back-title { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 800; color: var(--gold); margin-top: 14px; letter-spacing: 2px; }

/* Card Front (Revealed Cyber Card) */
.card-front { background: radial-gradient(circle at 50% 20%, #16213A 0%, #060910 100%); border: 2px solid var(--gold); transform: rotateY(180deg); padding: 16px; justify-content: space-between; box-shadow: 0 0 25px var(--gold-glow); }
.card-header-top { display: flex; justify-content: space-between; align-items: center; font-family: 'Orbitron', sans-serif; font-size: 11px; color: var(--gold); font-weight: 700; }
.card-icon-art { font-size: 52px; text-align: center; margin: 10px 0; filter: drop-shadow(0 0 12px var(--cyan)); }
.card-name { font-family: 'Orbitron', sans-serif; font-size: 15px; font-weight: 800; text-align: center; color: #FFF; margin-bottom: 2px; }
.card-arcana-sub { font-size: 11px; text-align: center; color: var(--gold); font-family: 'JetBrains Mono'; margin-bottom: 8px; }
.card-keywords-strip { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.card-badge { font-size: 9px; padding: 2px 5px; background: rgba(0,240,255,0.1); border: 1px solid rgba(0,240,255,0.3); border-radius: 3px; color: var(--cyan); font-family: 'JetBrains Mono'; }
.inverted-badge { font-size: 9px; padding: 2px 6px; background: rgba(255, 0, 85, 0.2); border: 1px solid var(--danger); border-radius: 3px; color: var(--danger); font-family: 'Orbitron'; font-weight: 700; margin-left: 6px; }

/* Interpretation Output Panel */
.oracle-reading-panel { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); display: none; }
.oracle-reading-panel.show { display: block; animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.reading-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.reading-title { font-size: 20px; color: var(--gold); }

.card-breakdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 24px; }
.card-analysis-box { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; border-top: 3px solid var(--gold); }
.card-analysis-box h4 { font-size: 15px; margin-bottom: 6px; color: #FFF; display: flex; align-items: center; gap: 8px; }
.card-analysis-box p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 10px; }

.alpha-box { background: rgba(0, 240, 255, 0.05); border: 1px solid rgba(0, 240, 255, 0.3); border-radius: var(--radius-md); padding: 16px; margin-top: 14px; }
.alpha-box h4 { font-size: 13px; color: var(--cyan); margin-bottom: 4px; font-family: 'Orbitron'; }
.alpha-box p { font-size: 13.5px; color: #E2E8F0; }

.reading-actions-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }

.altar-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: var(--radius-md); font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; border: 1px solid transparent; text-transform: uppercase; transition: all 0.2s ease; }
.btn-gold { background: var(--gold); color: #05070A; box-shadow: 0 0 16px var(--gold-glow); }
.btn-gold:hover { background: #FFF; box-shadow: 0 0 25px var(--gold); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--border-light); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* Oracle Journal */
.journal-section { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.journal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.journal-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; font-size: 12px; }

footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 20px 24px; text-align: center; color: var(--text-muted); font-size: 12px; margin-top: auto; }

@media (max-width: 768px) {
    .tarot-card-slot { width: 170px; height: 280px; }
    .card-icon-art { font-size: 38px; }
    .altar-title { font-size: 24px; }
}
