/* ------------------------------------------------------------------
   1. IMPORTS & RESET
   ------------------------------------------------------------------ */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&display=swap");

:root {
    /* --- Colors --- */
    --primary: #38bdf8;
    --secondary: #c084fc;
    --accent: #f472b6;
    --text-main: #eef2ff;
    --text-muted: #94a3b8;
    --text-dim: #475569;

    /* --- Glass --- */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.15);

    /* --- Sizing --- */
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 60px;
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: "Space Grotesk", sans-serif;
    background: #0b0d15;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--secondary);
}

/* ------------------------------------------------------------------
   2. AURORA ANIMATED BLOBS (CSS Art)
   ------------------------------------------------------------------ */
.aurora-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #ff6b9d, var(--secondary));
    top: -10%;
    left: -10%;
    animation-duration: 22s;
}

.blob-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary), #818cf8);
    bottom: -20%;
    right: -10%;
    animation-duration: 28s;
    animation-delay: -5s;
}

.blob-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #fbbf24, var(--accent));
    top: 50%;
    left: 50%;
    animation-duration: 18s;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(120px, -80px) scale(1.1);
    }
    66% {
        transform: translate(-60px, 100px) scale(0.9);
    }
    100% {
        transform: translate(80px, -40px) scale(1.15);
    }
}

/* ------------------------------------------------------------------
   3. CURSOR GLOW
   ------------------------------------------------------------------ */
#cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition:
        width 0.2s ease,
        height 0.2s ease;
    will-change: transform, left, top;
}

/* ------------------------------------------------------------------
   4. GLASSMORPHISM CARDS
   ------------------------------------------------------------------ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-heavy);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    border-color: var(--glass-hover);
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* ------------------------------------------------------------------
   5. AVATAR RING (Spinning Gradient)
   ------------------------------------------------------------------ */
.avatar-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(
        from 0deg,
        var(--primary),
        var(--secondary),
        var(--accent),
        var(--primary)
    );
    animation: spinRing 8s linear infinite;
    margin: 0 auto 20px;
    flex-shrink: 0;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0b0d15;
    display: block;
}

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

/* ------------------------------------------------------------------
   6. NEON BUTTON
   ------------------------------------------------------------------ */
.btn-neon {
    background: transparent;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    font-family: "Space Grotesk", sans-serif;
}

.btn-neon:hover {
    background: var(--primary);
    color: #0b0d15;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
    transform: scale(1.05);
    border-color: var(--primary);
}

.btn-neon:active {
    transform: scale(0.95);
}

/* ------------------------------------------------------------------
   7. FORM ELEMENTS (Glass Inputs)
   ------------------------------------------------------------------ */
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    color: white;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
    outline: none;
    width: 100%;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

textarea {
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
}

/* Character counter (used with JS) */
.char-count {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.7rem;
    color: var(--text-dim);
    pointer-events: none;
    transition: color 0.3s;
}

/* ------------------------------------------------------------------
   8. QUESTION FEED – STAGGERED ENTRIES
   ------------------------------------------------------------------ */
.question-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.question-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------------
   9. UNANSWERED "SPOILER" BLUR + SHIMMER
   ------------------------------------------------------------------ */
.question-item.unanswered .question-text {
    filter: blur(6px);
    user-select: none;
    transition: filter 0.4s ease;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    border-radius: 4px;
    padding: 2px 0;
}

.question-item.unanswered:hover .question-text {
    filter: blur(0px);
    animation: none;
    background: transparent;
}

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

/* ------------------------------------------------------------------
   10. ANSWER REVEAL BOX
   ------------------------------------------------------------------ */
.answer-reveal .glass-card {
    background: rgba(56, 189, 248, 0.05);
    border-left: 3px solid var(--primary);
    padding: 16px;
    margin-top: 12px;
    border-radius: var(--radius-md);
}

.answer-reveal strong {
    color: var(--primary);
}

/* ------------------------------------------------------------------
   11. MISC HELPERS
   ------------------------------------------------------------------ */
.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Fade-in for success messages */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Scrollbar styling (optional) */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}
