/* CSS Reset & Variables */
:root {
    --bg-dark: #030303;
    --bg-card: rgba(12, 12, 12, 0.7);
    --primary: #E50914; /* Esports/Gaming Red */
    --primary-light: #ff2e3a;
    --primary-dark: #99050d;
    --primary-rgb: 229, 9, 20;
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* Atmospheric Background */
.site-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.08) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
}

.tech-grid-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 50vh;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: saturate(0.8) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(3, 3, 3, 0.6) 0%, rgba(3, 3, 3, 1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

/* Gaming Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    border-radius: 4px;
    color: var(--primary-light);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.15);
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-light);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #d4d4d8 40%, var(--primary-light) 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(var(--primary-rgb), 0.3);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Layout Grid */
.main-content {
    position: relative;
    z-index: 10;
    margin-top: -40px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: stretch;
}

@media (min-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 60px;
    }
}

/* Status Banner */
.status-banner {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Prize Info Side */
.prizes-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.prize-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.15);
    background: #000;
}

.prize-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

@keyframes pulseGlow {
    0% { filter: blur(50px); opacity: 0.2; }
    50% { filter: blur(70px); opacity: 0.4; }
    100% { filter: blur(50px); opacity: 0.2; }
}

.glow-effect {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: var(--primary);
    animation: pulseGlow 4s ease-in-out infinite;
    z-index: 1;
}

.scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    z-index: 3;
    pointer-events: none;
}

.prize-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prize-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.prize-item:hover {
    transform: translateX(4px);
    border-color: rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.05);
}

.prize-item .icon {
    width: 44px; height: 44px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    flex-shrink: 0;
}

.prize-item h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: #fff;
    letter-spacing: 0.02em;
}

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

/* Requirements Box */
.requirements-box {
    margin-top: 8px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 24px;
}

.form-requirements {
    margin-top: 0;
    margin-bottom: 32px;
    background: rgba(0, 0, 0, 0.4);
}

.player-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.player-notice svg {
    flex-shrink: 0;
}

.requirements-box h3 {
    font-family: var(--font-heading);
    color: var(--primary-light);
    margin-bottom: 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.req-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
}

.req-item:last-child { margin-bottom: 0; }

.req-icon {
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    flex-shrink: 0;
}

.req-text {
    display: flex;
    flex-direction: column;
}

.req-text strong {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 2px;
    font-weight: 600;
}

.req-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Form Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255,255,255,0.02);
    position: relative;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.8;
}

.glass-panel h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(20, 20, 20, 0.8);
    box-shadow: inset 0 0 0 1px var(--primary), inset 0 2px 10px rgba(var(--primary-rgb), 0.1);
}

.btn-primary {
    position: relative;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 1px solid var(--primary-light);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
    overflow: hidden;
    margin-top: 10px;
}

.btn-primary .btn-text {
    position: relative;
    z-index: 2;
}

.btn-primary .btn-glow {
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.6);
}

.btn-primary:hover:not(:disabled) .btn-glow {
    left: 100%;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    border-color: transparent;
}

.error-alert {
    background: rgba(var(--primary-rgb), 0.1);
    border-left: 3px solid var(--primary);
    color: var(--primary-light);
    padding: 14px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 24px;
    line-height: 1.6;
    padding: 0 10px;
}

.disclaimer strong {
    color: #fff;
    display: block;
    margin-bottom: 6px;
}

/* Checkbox Styles */
.checkbox-group {
    margin-top: 16px;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    background-color: rgba(0, 0, 0, 0.4);
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: grid;
    place-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--primary);
    background-color: var(--primary);
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checkbox-label input[type="checkbox"]:checked {
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.tc-link {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.tc-link:hover {
    color: #fff;
}

/* Bottom TC Link */
.bottom-tc-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 24px;
}

.bottom-tc-link a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.bottom-tc-link a:hover {
    color: var(--text-main);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 1), 0 0 0 1px rgba(var(--primary-rgb), 0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary);
    color: var(--primary-light);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    color: var(--text-main);
}

.tc-content h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary-light);
}

.tc-content h2 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 600;
}

.tc-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--primary-light);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.tc-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 0.95rem;
    color: #d4d4d8;
}

.tc-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.tc-content li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #d4d4d8;
    line-height: 1.5;
}

.tc-content a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tc-content a:hover {
    color: #fff;
}


/* Post Entry / Thank You */
.text-center { text-align: center; }

.success-icon {
    width: 72px; height: 72px;
    margin: 0 auto 24px;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

#thank-you-container h2 {
    font-family: var(--font-heading);
    margin-bottom: 16px;
    font-size: 2rem;
}

#thank-you-container > p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Bonus Entries Panel */
.share-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: left;
}

.share-box h3 {
    font-family: var(--font-heading);
    color: var(--primary-light);
    margin-bottom: 12px;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.share-input-group {
    display: flex;
    gap: 12px;
}

.share-input-group input {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: monospace;
    font-size: 0.95rem;
}

.share-input-group input:focus { outline: none; border-color: var(--primary); }

.btn-secondary {
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255,255,255,0.3);
}

/* Powered By Footer Slot */
#wbx-powered-by-slot {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 32px 24px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .hero {
        padding-top: 60px;
    }
    
    .share-input-group {
        flex-direction: column;
    }
    
    .btn-secondary {
        padding: 14px;
    }

    .modal-body {
        padding: 32px 20px;
    }
}
