/* ========================================
   CSS RESET & BASE STYLES
   MYCELIA PRIME THEME
======================================== */

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

:root {
    /* Backgrounds */
    --bg-deepest: #0a0514;
    --bg-deep: #1a0b2e;
    --bg-mid: #2D1B4E;
    --bg-card: #1a1325;
    
    /* Bioluminescent Glows */
    --glow-cyan: #00D9FF;
    --glow-teal: #4ECDC4;
    --glow-lavender: #B5A6E0;
    --glow-blue: #80D8FF;
    
    /* Faction Colors */
    --fungal-purple: #7B68EE;
    --resistance-blue: #6495ED;
    --crimson-red: #D32F2F;
    
    /* UI States */
    --success: #7CB342;
    --warning: #FFA726;
    --error: #D32F2F;
    
    /* Text */
    --text-primary: #E8E8F0;
    --text-secondary: #B5A6E0;
    --text-dim: #6B5B8C;
}

html {
    margin: 0;
    padding: 0;
    background: var(--bg-deepest);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-deepest);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Remove default margins from all sections */
section {
    margin: 0;
    width: 100%;
}

/* Ensure no gaps between sections */
.hero,
.featured-matchup,
.recent-results,
.champions,
.how-it-works,
.youtube-cta,
.newsletter,
.main-footer {
    margin: 0;
    width: 100%;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--glow-cyan);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* CTA Button - Bioluminescent Glow */
.cta-button {
    display: inline-block;
    padding: 15px 50px;
    border: 2px solid var(--glow-cyan);
    color: var(--glow-cyan);
    background: transparent;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.cta-button:hover {
    background: var(--glow-cyan);
    color: var(--bg-deepest);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
    transform: translateY(-2px);
}

/* Responsive Base */
@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }
}

/* ========================================
   LOADING SPINNER OVERLAY - MYCELIA THEME
======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 5, 20, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.spinner-container {
    text-align: center;
}

.tournament-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--glow-cyan);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
    border-top-color: var(--glow-teal);
    animation-delay: -0.5s;
    animation-duration: 2s;
}

.spinner-ring:nth-child(3) {
    border-top-color: var(--glow-lavender);
    animation-delay: -1s;
    animation-duration: 2.5s;
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--glow-cyan);
    animation: pulse 2s ease-in-out infinite;
}

.spinner-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--glow-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-overlay.active {
    display: flex;
}

/* ========================================
   TIP CONTENT - BIOLUMINESCENT STYLING
======================================== */

.tip-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(26, 11, 46, 0.95);
    border: 2px solid var(--glow-cyan);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--glow-cyan);
}

.tip-text strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: var(--glow-cyan);
}

.tip-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--text-secondary);
}

.tip-close {
    background: none;
    border: none;
    color: var(--glow-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tip-close:hover {
    opacity: 1;
}
/* Add to main.css */
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.3; }
    50% { transform: translateY(-20px) translateX(10px); opacity: 0.6; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 217, 255, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(181, 166, 224, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(78, 205, 196, 0.3), transparent);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}