/* The Turing Review — Futuristic AI Styles v3 */

/* ===== Global Sci-Fi Background (Light pages) ===== */
body {
    position: relative;
    overflow-x: hidden;
    background: #111827;
    color: #d1d5db;
}

/* Gradient orbs floating in background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(ellipse 600px 600px at 15% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 85% 20%, rgba(56, 189, 248, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 50% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 70% 60%, rgba(246, 173, 85, 0.06) 0%, transparent 70%);
    animation: orbFloat 15s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 15px) scale(1.02); }
    100% { transform: translate(10px, -10px) scale(0.98); }
}

/* Visible grid with animated glow intersections */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    z-index: -1;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridShift 25s linear infinite;
}

@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

/* ===== Hero Section — Dark AI Theme ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #070d1a 0%, #0e1f38 30%, #12133a 60%, #0a1628 100%);
    overflow: hidden;
    border-radius: 1.5rem;
    margin: -2rem -1rem 2rem;
    padding: 5rem 2rem;
}

/* Star particles */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(2px 2px at 10% 20%, rgba(246, 173, 85, 0.7), transparent),
        radial-gradient(2px 2px at 30% 65%, rgba(99, 102, 241, 0.6), transparent),
        radial-gradient(2px 2px at 50% 15%, rgba(246, 173, 85, 0.5), transparent),
        radial-gradient(2px 2px at 70% 40%, rgba(56, 189, 248, 0.6), transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(168, 85, 247, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 15% 85%, rgba(246, 173, 85, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 45% 45%, rgba(99, 102, 241, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 75% 15%, rgba(56, 189, 248, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 85% 55%, rgba(168, 85, 247, 0.35), transparent),
        radial-gradient(1px 1px at 5% 50%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1px 1px at 25% 35%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 55% 75%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 65% 25%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 95% 10%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 40% 90%, rgba(255, 255, 255, 0.15), transparent);
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Hero grid overlay */
.hero-section .hero-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}

/* Scan line */
.hero-section::after {
    content: '';
    position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 40%;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04), transparent);
    animation: scan 5s ease-in-out infinite;
}

@keyframes scan {
    0% { top: -40%; }
    100% { top: 140%; }
}

/* ===== Glowing Logo ===== */
.logo-glow {
    box-shadow:
        0 0 15px rgba(246, 173, 85, 0.5),
        0 0 30px rgba(246, 173, 85, 0.25),
        0 0 60px rgba(246, 173, 85, 0.1);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(246, 173, 85, 0.4),
            0 0 30px rgba(246, 173, 85, 0.2);
    }
    50% {
        box-shadow:
            0 0 25px rgba(246, 173, 85, 0.6),
            0 0 50px rgba(246, 173, 85, 0.3),
            0 0 80px rgba(246, 173, 85, 0.1);
    }
}

/* ===== Navbar ===== */
nav {
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(99, 102, 241, 0.1);
}

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Reviewer Cards ===== */
.reviewer-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.reviewer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Shine sweep on hover */
.reviewer-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.5s;
}
.reviewer-card:hover::after {
    left: 150%;
}

/* Accent colors */
.reviewer-logician { border-color: #6366f1; }
.reviewer-logician .reviewer-icon { background: linear-gradient(135deg, #4f46e5, #818cf8); }

.reviewer-innovator { border-color: #10b981; }
.reviewer-innovator .reviewer-icon { background: linear-gradient(135deg, #059669, #34d399); }

.reviewer-technician { border-color: #8b5cf6; }
.reviewer-technician .reviewer-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

/* ===== Step Number ===== */
.step-number {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.step-card {
    transition: transform 0.2s;
}
.step-card:hover {
    transform: translateY(-2px);
}

/* ===== Submit Button Glow ===== */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.btn-glow:hover {
    box-shadow:
        0 0 20px rgba(245, 158, 11, 0.4),
        0 0 40px rgba(245, 158, 11, 0.15);
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-glow:hover::after {
    opacity: 1;
}

/* ===== Footer ===== */
footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 25% 50%, rgba(246, 173, 85, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 75% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 40%);
}

/* ===== Loading Dots ===== */
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.loading-dot {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    animation: bounce 1.4s infinite ease-in-out both;
}
.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

/* ===== Guest Reviewer ===== */
.reviewer-guest { border-color: #06b6d4; }
.reviewer-guest .reviewer-icon { background: linear-gradient(135deg, #0891b2, #22d3ee); }

/* Level Badges */
.badge-applicant {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(107, 114, 128, 0.3);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.badge-candidate {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.badge-associate {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

/* ===== Utility ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
html { scroll-behavior: smooth; }
.whitespace-pre-wrap {
    white-space: pre-wrap;
    word-break: break-word;
}

/* ===== Data Pulse (dashboard) ===== */
@keyframes dataPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.data-pulse {
    animation: dataPulse 2s ease-in-out infinite;
}
