/* ✨ Tu Aura - Mystical Styles */

:root {
    --bg: #0a0a0f;
    --card: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --glow: rgba(147, 51, 234, 0.5);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* App Container */
.app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Views */
.view {
    display: none;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    animation: fadeIn 0.5s ease;
}

.view.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.container {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* Aura Logo */
.aura-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aura-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #9333EA,
        #3B82F6,
        #22C55E,
        #EAB308,
        #F97316,
        #EC4899,
        #9333EA
    );
    animation: rotate 8s linear infinite;
    filter: blur(15px);
    opacity: 0.7;
}

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

.aura-logo span {
    position: relative;
    font-size: 3rem;
    z-index: 1;
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.stats {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn-glow {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    color: white;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}

.btn-glow:hover {
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.7);
}

.btn-share {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    color: white;
    margin-bottom: 1rem;
}

.btn-retry {
    background: transparent;
    border: 2px solid var(--card-border);
    color: var(--text);
}

/* Progress */
.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, #7C3AED, #EC4899);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Question Card */
.question-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(10px);
}

.question-card.animate {
    animation: slideIn 0.3s ease;
}

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

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.option-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7C3AED;
}

.option-btn:active {
    transform: scale(0.98);
}

/* Analyzing View */
.analyzing {
    text-align: center;
}

.aura-scan {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: pulse-ring 2s ease-out infinite;
}

.ring1 {
    width: 100%;
    height: 100%;
    border-color: #7C3AED;
    animation-delay: 0s;
}

.ring2 {
    width: 130%;
    height: 130%;
    border-color: #EC4899;
    animation-delay: 0.3s;
}

.ring3 {
    width: 160%;
    height: 160%;
    border-color: #3B82F6;
    animation-delay: 0.6s;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.scan-icon {
    font-size: 3rem;
    animation: float 2s ease-in-out infinite;
}

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

.analyzing-text {
    color: var(--text-muted);
    animation: fade-text 0.5s ease;
}

@keyframes fade-text {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Result Card */
.result-card {
    background: var(--card);
    border: 2px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: reveal 0.8s ease;
}

@keyframes reveal {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Aura Reveal */
.aura-reveal {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aura-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.8;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.aura-emoji {
    position: relative;
    font-size: 4rem;
    z-index: 1;
    animation: bounce-in 0.6s ease;
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.aura-name {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.aura-color {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.aura-meaning {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.aura-traits h3,
.aura-advice h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.traits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.trait {
    padding: 0.4rem 0.8rem;
    border: 1px solid;
    border-radius: 20px;
    font-size: 0.85rem;
}

.aura-advice {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
}

.aura-advice p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
}

/* Share Section */
.share-section {
    margin-bottom: 1.5rem;
}

.cta-friends {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Sparkle Effect */
.sparkle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle-fade 1.5s ease-out forwards;
    z-index: 1000;
}

@keyframes sparkle-fade {
    0% { transform: scale(0) translateY(0); opacity: 1; }
    100% { transform: scale(1) translateY(100px); opacity: 0; }
}

/* Responsive */
@media (max-width: 380px) {
    h1 { font-size: 2.5rem; }
    .aura-logo { width: 100px; height: 100px; }
    .aura-color { font-size: 2rem; }
}

/* Safe Area */
@supports (padding: max(0px)) {
    .view {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}
