/* ============================================================
   judge.club - Main Styles
   ============================================================ */

/* Root Variables */
:root {
    --color-primary: #C78DFF;
    --color-secondary: #FF2D78;
    --color-accent: #B8FF00;
    --color-cyan: #00E5FF;
    --color-dark-bg: #0A0A0F;
    --color-dark: #16161E;
    --color-dark-2: #2A2A38;
    --color-accent-orange: #FF8A3D;

    --font-display: 'Space Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --font-code: 'IBM Plex Mono', monospace;
    --font-accent: 'Outfit', sans-serif;
}

/* ============================================================
   Global Styles
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark-bg);
    color: var(--color-cyan);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   Drift Chamber Container
   ============================================================ */

#drift-chamber {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, var(--color-dark) 50%, var(--color-dark-bg) 100%);
}

/* ============================================================
   Drift Sections
   ============================================================ */

.drift-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    overflow: hidden;
}

/* ============================================================
   Bubble System
   ============================================================ */

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(2px);
    mix-blend-mode: screen;
    animation: drift 8s ease-in-out infinite;
}

.bubble-large {
    width: 200px;
    height: 200px;
}

.bubble-medium {
    width: 120px;
    height: 120px;
}

.bubble-small {
    width: 60px;
    height: 60px;
}

.bubble {
    background: radial-gradient(circle at 30% 30%, var(--gradient-color), transparent 70%);
}

/* Bubble Positioning and Animations */
@keyframes drift {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.6; }
    25% { transform: translateY(-30px) translateX(20px); opacity: 0.5; }
    50% { transform: translateY(-60px) translateX(-20px); opacity: 0.7; }
    75% { transform: translateY(-30px) translateX(20px); opacity: 0.5; }
}

.bubble-1 { top: 10%; left: 5%; animation-duration: 12s; }
.bubble-2 { top: 15%; right: 8%; animation-duration: 15s; animation-delay: 1s; }
.bubble-3 { top: 20%; left: 15%; animation-duration: 10s; animation-delay: 0.5s; }
.bubble-4 { top: 30%; right: 12%; animation-duration: 13s; animation-delay: 2s; }
.bubble-5 { top: 25%; left: 8%; animation-duration: 11s; animation-delay: 1.5s; }
.bubble-6 { top: 40%; right: 20%; animation-duration: 9s; animation-delay: 2.5s; }
.bubble-7 { top: 15%; left: 20%; animation-duration: 14s; animation-delay: 0.7s; }
.bubble-8 { top: 35%; right: 15%; animation-duration: 12s; animation-delay: 3s; }
.bubble-9 { top: 50%; left: 10%; animation-duration: 10s; animation-delay: 1.2s; }
.bubble-10 { top: 20%; left: 12%; animation-duration: 16s; animation-delay: 0.3s; }
.bubble-11 { top: 45%; right: 10%; animation-duration: 13s; animation-delay: 2.2s; }
.bubble-12 { top: 30%; left: 25%; animation-duration: 11s; animation-delay: 1.8s; }
.bubble-13 { top: 60%; right: 20%; animation-duration: 14s; animation-delay: 3.5s; }

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero-section {
    background: linear-gradient(180deg, var(--color-dark-bg) 0%, var(--color-dark-2) 100%);
    text-align: center;
    min-height: 100vh;
    z-index: 10;
}

.domain-name {
    color: var(--color-cyan);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
    font-size: clamp(3rem, 12vw, 6rem);
    display: block;
    letter-spacing: 0.15em;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 229, 255, 0.4), 0 0 40px rgba(255, 45, 120, 0.2);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 229, 255, 0.8), 0 0 60px rgba(255, 45, 120, 0.4);
    }
}

.hero-subtitle {
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-top: 30px;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* ============================================================
   Section Content
   ============================================================ */

.section-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
}

.section-heading {
    color: var(--color-secondary);
    margin-bottom: 40px;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-shadow: 0 0 20px rgba(255, 45, 120, 0.3);
}

/* ============================================================
   Text Fragments
   ============================================================ */

.text-fragment {
    background: linear-gradient(135deg, rgba(199, 141, 255, 0.1) 0%, rgba(0, 229, 255, 0.1) 100%);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: 30px 35px;
    margin: 20px 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-cyan);
    font-weight: 300;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.text-fragment:hover {
    border-color: var(--color-secondary);
    background: linear-gradient(135deg, rgba(255, 45, 120, 0.15) 0%, rgba(0, 229, 255, 0.15) 100%);
    box-shadow: 0 0 30px rgba(255, 45, 120, 0.2);
}

.verdict-text {
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.subtext {
    font-size: 0.95rem;
    color: var(--color-accent);
    border-color: var(--color-accent);
    font-style: italic;
}

/* ============================================================
   Verdict List
   ============================================================ */

.verdict-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.verdict-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(184, 255, 0, 0.05);
    border-left: 3px solid var(--color-accent);
    padding: 20px 25px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.verdict-item:hover {
    background: rgba(184, 255, 0, 0.1);
    border-left-color: var(--color-secondary);
    transform: translateX(10px);
}

.verdict-header {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.verdict-body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-cyan);
    line-height: 1.6;
}

/* ============================================================
   Deliberation Section
   ============================================================ */

.deliberation-section {
    background: linear-gradient(180deg, var(--color-dark-2) 0%, var(--color-dark) 100%);
}

/* ============================================================
   Archive Section
   ============================================================ */

.archive-section {
    background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
}

/* ============================================================
   Candy Section
   ============================================================ */

.candy-section {
    background: linear-gradient(180deg, var(--color-dark-2) 0%, var(--color-dark) 100%);
}

.candy-section .text-fragment {
    border-color: var(--color-secondary);
    background: linear-gradient(135deg, rgba(255, 45, 120, 0.1) 0%, rgba(184, 255, 0, 0.1) 100%);
}

.candy-section .text-fragment {
    color: var(--color-secondary);
}

/* ============================================================
   Drift Final Section
   ============================================================ */

.drift-final {
    background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-dark-bg) 100%);
    min-height: 120vh;
}

.closing-text {
    color: var(--color-accent-orange);
    font-size: 1.2rem;
    margin-top: 30px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 768px) {
    .drift-section {
        padding: 40px 20px;
        min-height: auto;
    }

    .section-content {
        padding: 30px 20px;
    }

    .text-fragment {
        padding: 20px 20px;
        font-size: 1rem;
    }

    .verdict-list {
        gap: 15px;
    }

    .verdict-item {
        padding: 15px 20px;
    }

    .bubble-large {
        width: 150px;
        height: 150px;
    }

    .bubble-medium {
        width: 90px;
        height: 90px;
    }

    .bubble-small {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .drift-section {
        padding: 30px 15px;
    }

    .section-content {
        padding: 20px 15px;
    }

    .text-fragment {
        padding: 15px 15px;
        font-size: 0.95rem;
    }

    .domain-name {
        font-size: clamp(2rem, 10vw, 4rem);
    }
}
