/* 2026 Spatial Glass System */
:root {
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-shine: linear-gradient(125deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.0) 40%, rgba(255, 255, 255, 0.05) 100%);
    --neon-vis: #d946ef;
    --neon-tech: #3b82f6;
    --neon-exec: #10b981;
    --neon-op: #f59e0b;
}

/* Base Body Override for Deep Space Feel */
body.archetype-mode {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #030014;
    background-image:
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(217, 70, 239, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    perspective: 1000px;
    /* Enable Z-axis */
    overflow-x: hidden;
}

/* Glass Card Container */
.spatial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
    will-change: transform;
}

/* Hover Effect: Lift & Shine */
/* Hover Effect Removed per user request */
/* .spatial-card:hover {
    transform: translateY(-5px) rotateX(2deg);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(var(--active-color-rgb), 0.2);
} */

/* Option Tile (The Answers) */
.spatial-option {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.spatial-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-shine);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spatial-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.spatial-option:hover::before {
    opacity: 1;
}

/* Result Reveal Animation */
@keyframes tarotReveal {
    0% {
        transform: rotateY(180deg) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

.reveal-anim {
    animation: tarotReveal 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Progress Bar with Neon Glow */
.neon-progress {
    background: linear-gradient(90deg, #d946ef, #3b82f6);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.5);
    transition: width 0.5s ease-out;
}

/* Noise Texture Removed per user request */
.noise-overlay {
    display: none;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .spatial-card {
        backdrop-filter: blur(20px);
        /* Save GPU on mobile */
        -webkit-backdrop-filter: blur(20px);
    }

    .spatial-option {
        min-height: 60px;
        /* Touch target */
    }
}

/* =========================================
   PREMIUM BUTTON STYLES (Ported from v2.0)
   ========================================= */
:root {
    --color-primary: #8B5CF6;
    --color-primary-light: #A78BFA;
    --color-primary-dark: #6D28D9;
    --color-secondary: #06B6D4;
    --transition-normal: 300ms;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-primary {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    border-radius: 12px;
    /* Matching border-radius */
    color: white;
    font-weight: 700;
    overflow: hidden;
    transition: all var(--transition-normal) var(--ease-out-expo);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary), var(--color-primary));
    border-radius: 14px;
    /* Slightly larger for border effect */
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before,
.btn-primary:hover::after {
    opacity: 1;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* =========================================
   OVERHAUL: PREMIUM RESULT STYLES
   ========================================= */

/* Sophisticated Watermark */
.result-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: min(25vw, 280px);
    /* Responsive sizing */
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    mix-blend-mode: overlay;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
    letter-spacing: -0.05em;
    filter: blur(1px);
}

/* Inner Glass Panels for depth */
.inner-glass {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.inner-glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Subtle Reveal Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-reveal {
    opacity: 0;
    animation: revealUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Action Button Polish */
.btn-primary.large {
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}

/* Fluid Typography for Results */
.fluid-h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.fluid-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
}