/**
 * Ritual UI CSS
 * CORCADO.COM - The Numerology Ritual Engine
 * Mystic & Atmospheric Design
 */

/* Landing Page Ritual Container */
.ritual-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, rgba(10, 10, 15, 1) 70%);
    padding: 40px 20px;
}

/* Ritual Input Wrapper */
.ritual-input-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

/* Brand Section */
.ritual-brand {
    margin-bottom: 64px;
    animation: fadeInDown 1s ease-out;
}

.ritual-title {
    font-size: 4.5rem;
    font-weight: 200;
    letter-spacing: 8px;
    color: var(--accent-gold);
    margin-bottom: 16px;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        0 0 60px rgba(255, 215, 0, 0.1);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ritual-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Numerology Information */
.numerology-info {
    max-width: 600px;
    margin: 0 auto 48px;
    padding: 32px;
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.info-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 300;
    opacity: 0.9;
}

.info-subtext {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

/* Sign In Link Container */
.signin-link-container {
    margin-top: 32px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.signin-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.signin-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.signin-link:hover {
    color: var(--accent-purple);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Ritual Input Container */
.ritual-input-container {
    margin-bottom: 32px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.ritual-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.7;
}

.ritual-date-input {
    width: 100%;
    max-width: 320px;
    padding: 18px 24px;
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 300;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    margin: 0 auto 32px;
    display: block;
}

.ritual-date-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 
        0 0 0 4px rgba(255, 215, 0, 0.1),
        0 0 30px rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

.ritual-date-input:hover {
    border-color: rgba(255, 215, 0, 0.5);
}

/* Calculate Button */
.ritual-calculate-btn {
    padding: 18px 48px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(139, 92, 246, 0.2));
    border: 2px solid var(--accent-gold);
    border-radius: 50px;
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.ritual-calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s;
}

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

.ritual-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 40px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(139, 92, 246, 0.3));
}

.ritual-calculate-btn:active {
    transform: translateY(0);
}

.ritual-calculate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ritual-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

/* Pulsing Rings */
.ritual-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ritual-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    opacity: 0;
}

.ring-1 {
    width: 300px;
    height: 300px;
    animation: ringPulse 3s ease-out infinite;
}

.ring-2 {
    width: 400px;
    height: 400px;
    animation: ringPulse 3s ease-out infinite 0.5s;
}

.ring-3 {
    width: 500px;
    height: 500px;
    animation: ringPulse 3s ease-out infinite 1s;
}

@keyframes ringPulse {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 0.4;
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Numeric Fragments */
.numeric-fragment {
    position: absolute;
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--accent-gold);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: fragmentFloat 8s ease-in-out infinite;
}

.numeric-fragment[data-index="0"] { animation-delay: 0s; }
.numeric-fragment[data-index="1"] { animation-delay: 0.5s; }
.numeric-fragment[data-index="2"] { animation-delay: 1s; }
.numeric-fragment[data-index="3"] { animation-delay: 1.5s; }
.numeric-fragment[data-index="4"] { animation-delay: 2s; }
.numeric-fragment[data-index="5"] { animation-delay: 2.5s; }
.numeric-fragment[data-index="6"] { animation-delay: 3s; }
.numeric-fragment[data-index="7"] { animation-delay: 3.5s; }
.numeric-fragment[data-index="8"] { animation-delay: 4s; }
.numeric-fragment[data-index="9"] { animation-delay: 4.5s; }
.numeric-fragment[data-index="10"] { animation-delay: 5s; }
.numeric-fragment[data-index="11"] { animation-delay: 5.5s; }
.numeric-fragment[data-index="12"] { animation-delay: 6s; }
.numeric-fragment[data-index="13"] { animation-delay: 6.5s; }
.numeric-fragment[data-index="14"] { animation-delay: 7s; }

@keyframes fragmentFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0.8);
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
        transform: translateY(-100px) translateX(50px) scale(1.2);
    }
    90% {
        opacity: 0.6;
    }
}

/* Ritual Result */
.ritual-result {
    margin-top: 64px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.ritual-result.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.life-path-reveal {
    margin-bottom: 32px;
}

.life-path-number {
    font-size: 8rem;
    font-weight: 100;
    color: var(--accent-gold);
    margin-bottom: 16px;
    text-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 215, 0, 0.4),
        0 0 90px rgba(255, 215, 0, 0.2);
    line-height: 1;
    animation: numberReveal 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.life-path-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
}

.ritual-preview {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-style: italic;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 48px;
    padding: 0 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.ritual-unlock-btn {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    border: none;
    border-radius: 50px;
    color: var(--primary-bg);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s both;
}

.ritual-unlock-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.4);
}

/* Ambient Particles */
.ambient-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes numberReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .ritual-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    .life-path-number {
        font-size: 5rem;
    }
    
    .ritual-preview {
        font-size: 1.1rem;
    }
    
    .ring-1, .ring-2, .ring-3 {
        width: 200px;
        height: 200px;
    }
}

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

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

.energy-display {
    position: relative;
    padding: 32px;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1), 
        rgba(59, 130, 246, 0.05),
        rgba(26, 26, 46, 0.8));
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(139, 92, 246, 0.1) inset,
                0 0 30px rgba(139, 92, 246, 0.08);
}

.energy-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.energy-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        var(--accent-gold),
        var(--accent-purple),
        var(--accent-blue),
        var(--accent-gold)
    );
    opacity: 0.3;
    animation: rotate 3s linear infinite;
}

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

/* Numerology Cards - Override with mystic style */
.numerology-card {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.15), 
        rgba(59, 130, 246, 0.1),
        rgba(26, 26, 46, 0.9)) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    border-radius: 12px !important;
    padding: 18px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: inherit;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    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) !important;
}

.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) !important;
    transform: translateY(-3px) scale(1.03) !important;
    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) !important;
}

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

/* Remove duplicate hover rule - already defined above */

.numerology-number {
    font-size: 2.5rem;
    font-weight: 200;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    position: relative;
}

.numerology-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    opacity: 0.8;
    font-weight: 500;
}

.numerology-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Locked Content - Only apply blur when explicitly locked */
.locked-content {
    position: relative;
}

.locked-content.locked {
    filter: blur(10px);
    pointer-events: none;
    opacity: 0.5;
}

.unlock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, 0.8);
    border-radius: 16px;
    z-index: 10;
}

.unlock-button {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    border: none;
    border-radius: 8px;
    color: var(--primary-bg);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unlock-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* Credit Display */
.credit-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.credit-icon {
    font-size: 24px;
}

.credit-amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-gold);
}

/* Social Proof Ticker */
.social-proof {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 100;
    backdrop-filter: blur(10px);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
