/**
 * Core CSS
 * CORCADO.COM - The Numerology Ritual Engine
 */

:root {
    --primary-bg: #050510;
    --secondary-bg: #0f0f1a;
    --accent-gold: #FFD700;
    --accent-purple: #8B5CF6;
    --accent-blue: #3B82F6;
    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --glow-intensity: 0.4;
    --shimmer-speed: 1s;
    --mystic-glow: rgba(139, 92, 246, 0.3);
    --mystic-shadow: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 92, 246, 0.02) 2px,
            rgba(139, 92, 246, 0.02) 4px
        );
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 80px);
}

/* Mystic UI Elements */
.mystic-glow {
    box-shadow: 0 0 20px rgba(255, 215, 0, var(--glow-intensity));
    transition: box-shadow 0.3s ease;
}

.mystic-ring {
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer var(--shimmer-speed) infinite;
}

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

/* Energy Score Visual - Mystic */
.energy-score {
    font-size: 3.5rem;
    font-weight: 200;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
    animation: energyPulse 3s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
        transform: scale(1.05);
    }
}

.energy-low { --glow-intensity: 0.2; --shimmer-speed: 2s; }
.energy-medium { --glow-intensity: 0.5; --shimmer-speed: 1s; }
.energy-high { --glow-intensity: 1.0; --shimmer-speed: 0.5s; }

/* Buttons - Mystic Style */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    color: var(--primary-bg);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4),
                0 0 30px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Cards - Futuristic Glassmorphism */
.card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.75), 
        rgba(20, 20, 35, 0.85)) !important;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ensure cards are visible by default */
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35), 
                0 0 0 1px rgba(139, 92, 246, 0.12) inset,
                0 0 35px rgba(139, 92, 246, 0.06);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    border-color: rgba(255, 215, 0, 0.35);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45), 
                0 0 0 1px rgba(255, 215, 0, 0.22) inset,
                0 0 45px rgba(139, 92, 246, 0.18),
                0 0 70px rgba(255, 215, 0, 0.12);
    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
}

.card.animated {
    opacity: 0;
    transform: translateY(20px);
}

/* Only locked content should have blur */
.card .locked-content {
    filter: blur(10px);
    pointer-events: none;
    opacity: 0.5;
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0.3;
}

/* Numeric Fragments */
.numeric-fragment {
    position: absolute;
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent-gold);
    opacity: 0;
    pointer-events: none;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dashboard Grid - Compact & Mystic */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.dashboard-grid .card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    padding: 18px;
}

/* Numerology Cards - Mystic Style */
.numerology-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.15), 
        rgba(59, 130, 246, 0.1),
        rgba(26, 26, 46, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(139, 92, 246, 0.2) inset,
                0 0 25px rgba(139, 92, 246, 0.08);
}

.numerology-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.numerology-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 215, 0, 0.3) inset,
                0 0 40px rgba(139, 92, 246, 0.2),
                0 0 60px rgba(255, 215, 0, 0.15);
}

.numerology-card:hover::after {
    opacity: 1;
}

/* Quick Nav Items - Futuristic */
.quick-nav-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-nav-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3),
                0 0 40px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4) !important;
}

.quick-nav-item:hover span:first-child {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    transition: all 0.3s ease;
}

.quick-nav-item span:first-child {
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .energy-score {
        font-size: 3rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    h1 {
        font-size: 1.75rem;
        letter-spacing: 2px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
}

