/* 16-bit Era Styled Coming Soon Page */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Super Mario World inspired color palette */
    --primary-bg: #5c94fc;
    --secondary-bg: #3c5a9e;
    --accent-blue: #0058f8;
    --accent-red: #e40058;
    --accent-green: #00a800;
    --accent-yellow: #fca044;
    --accent-brown: #ac7c00;
    --text-white: #fcfcfc;
    --text-cream: #f8d878;
    --pixel-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4);
    --pixel-font: 'Press Start 2P', monospace;
}

body {
    font-family: var(--pixel-font);
    background-color: var(--primary-bg);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    image-rendering: pixelated;
}

body.modal-open {
    overflow: hidden;
}

/* CRT Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Pixel Border */
.pixel-border {
    border: 4px solid var(--accent-yellow);
    box-shadow: 
        inset 0 0 0 4px var(--secondary-bg),
        inset 0 0 0 8px var(--accent-red),
        var(--pixel-shadow);
    background: var(--secondary-bg);
    padding: 30px 40px;
}

/* Header */
.header {
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    color: var(--text-cream);
    text-shadow: 
        4px 4px 0 var(--accent-red),
        -2px -2px 0 var(--accent-brown);
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: clamp(0.8rem, 3vw, 1.5rem);
    color: var(--accent-yellow);
    text-shadow: 2px 2px 0 var(--accent-brown);
    letter-spacing: 2px;
}

/* Coming Soon Text */
.coming-soon {
    text-align: center;
}

.blink {
    font-size: clamp(1rem, 4vw, 2rem);
    color: var(--accent-green);
    animation: blink 1s infinite;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Countdown Timer */
.countdown {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--secondary-bg);
    border: 3px solid var(--accent-yellow);
    padding: 15px 20px;
    min-width: 80px;
    box-shadow: var(--pixel-shadow);
}

.countdown-value {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-cream);
    text-shadow: 2px 2px 0 var(--accent-brown);
}

.countdown-label {
    font-size: clamp(0.5rem, 1.5vw, 0.75rem);
    color: var(--text-white);
    margin-top: 8px;
}

/* CTA Button */
.cta {
    margin: 20px 0;
}

.pixel-btn {
    font-family: var(--pixel-font);
    font-size: clamp(0.6rem, 2vw, 1rem);
    padding: 15px 30px;
    background: var(--accent-red);
    color: var(--text-white);
    border: none;
    border-bottom: 4px solid #a00040;
    border-right: 4px solid #a00040;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: var(--pixel-shadow);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pixel-btn:hover {
    background: var(--accent-green);
    border-bottom-color: #007800;
    border-right-color: #007800;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.pixel-btn:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.btn-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--text-white);
    color: var(--accent-red);
    text-align: center;
    line-height: 20px;
    font-weight: bold;
}

.pixel-btn:hover .btn-icon {
    color: var(--accent-green);
}

/* Sponsors Section */
.sponsors {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.sponsors-title {
    font-size: clamp(0.6rem, 2vw, 0.9rem);
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.sponsors-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.sponsor-logo {
    width: 150px;
    background: var(--secondary-bg);
    border: 2px dashed var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 20px;
}

.sponsor-logo img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.sponsor-logo:hover {
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 168, 0, 0.5);
}

.placeholder-logo {
    font-size: 0.5rem;
    color: var(--text-white);
    text-align: center;
}

/* Footer */
.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--secondary-bg);
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-white);
    text-align: center;
    line-height: 1.7;
}

.footer a {
    color: var(--text-white);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal-content {
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    font-family: var(--pixel-font);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-yellow);
}

.modal-title {
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
    color: var(--text-cream);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 var(--accent-brown);
}

.modal-body {
    font-size: clamp(0.5rem, 1.5vw, 0.7rem);
    line-height: 2;
    color: var(--text-white);
}

.modal-body p {
    margin-bottom: 15px;
}

.info-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 88, 248, 0.2);
    border-left: 3px solid var(--accent-yellow);
}

.info-section h3 {
    font-size: clamp(0.6rem, 1.8vw, 0.8rem);
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

.info-section ul {
    list-style: none;
    padding-left: 10px;
}

.info-section ul li {
    margin: 8px 0;
    color: var(--text-white);
}

.info-section ul li::before {
    content: '>';
    margin-right: 10px;
    color: var(--accent-red);
}

.contact-info {
    text-align: center;
    color: var(--text-cream);
    margin-top: 20px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
        gap: 20px;
    }

    .pixel-border {
        padding: 20px 25px;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        padding: 10px 15px;
        min-width: 60px;
    }

    .sponsors-logos {
        gap: 15px;
    }

    .sponsor-logo {
        width: 120px;
        height: 60px;
    }

    .modal-content {
        max-height: 90vh;
    }
}

@media (max-width: 400px) {
    .countdown-item {
        min-width: 50px;
        padding: 8px 10px;
    }

    .pixel-btn {
        padding: 12px 20px;
    }

    .sponsor-logo {
        width: 100px;
        height: 50px;
    }
}
