/* Base Variables */
:root {
    --bg-color: #0a0a05;
    --text-main: #ffffff;
    --text-muted: #d4d4d8;
    
    --primary: #e85d04; /* Bright Orange */
    --primary-hover: #dc2f02;
    --secondary: #ffb703; /* Yellow Gold */
    
    --glass-bg: rgba(20, 15, 10, 0.75);
    --glass-border: rgba(255, 255, 255, 0.15);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.hidden {
    display: none !important;
}

/* Background Image styling */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("https://offertabs.s3.amazonaws.com/offer/wfvmhk/site/media/69ce89bc942512.78784695.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 5, 0, 0.95) 0%, rgba(25, 10, 5, 0.8) 50%, rgba(10, 5, 0, 0.9) 100%);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.sponsor-logo {
    max-width: 240px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    /* Removed invert & screen mix-blend-mode to fix visibility issues */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.neon-text {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(255, 183, 3, 0.5), 0 0 20px rgba(255, 183, 3, 0.3);
    display: block;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(232, 93, 4, 0.15);
    color: var(--primary);
    border: 1px solid rgba(232, 93, 4, 0.3);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* Event Details */
.event-info-col {
    display: flex;
    flex-direction: column;
}

.event-details-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--primary);
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-icon {
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.detail-text strong {
    font-size: 1.25rem;
    font-weight: 600;
}

.detail-text span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Action Links */
.action-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Countdown */
.countdown-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    display: inline-block;
}

.countdown-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.countdown-timer {
    display: flex;
    gap: 1rem;
}

.cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cd-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.cd-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cd-ended {
    color: #ef4444;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.glass-panel h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #e4e4e7;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border-radius: 12px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.2);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Notice box */
.opt-in-notice {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #d00000 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(232, 93, 4, 0.39);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.5);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #9d0208 100%);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-social {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.btn-social:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 0.75rem 1rem;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* Post Entry / Success */
.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 183, 3, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 30px rgba(255, 183, 3, 0.2);
}

#success-container {
    text-align: center;
}

.share-panel {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.share-panel h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.share-panel p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.share-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.share-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-icon {
    padding: 0.75rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.fb-btn { background: #1877F2; border: none; }
.x-btn { background: #000; border: 1px solid rgba(255,255,255,0.2); }

/* Messages */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.status-message {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.rules-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.text-link {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
    text-underline-offset: 2px;
}

.text-link:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #18181b;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 101;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    color: white;
}

.rules-body {
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #d4d4d8;
    white-space: pre-wrap;
}

/* Footer */
footer {
    padding: 2rem 0;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .event-info-col {
        text-align: center;
        align-items: center;
    }

    .sponsor-logo {
        margin-left: auto;
        margin-right: auto;
    }
    
    .event-details-card {
        border-left: none;
        padding-left: 0;
        align-items: center;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .action-links {
        justify-content: center;
    }
}