/* ========================================
   TOIAF NETWORK COMING SOON STYLES
   ======================================== */

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

:root {
    /* TOIAF Brand Colors */
    --toiaf-yellow: #ffff33;
    --toiaf-purple: #8e2bff;
    --toiaf-lime: #b6ff00;
    --toiaf-aqua: #24f0ff;
    --toiaf-orange: #ff6900;
    --toiaf-pink: #ff2bd6;
    --toiaf-black: #0a0a0a;
}

body.toiaf-coming-soon {
    font-family: 'Orbitron', sans-serif;
    background: var(--toiaf-black);
    color: #fff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* ========================================
   VIDEO BACKGROUND
   ======================================== */

.toiaf-cs-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.toiaf-cs-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Video overlay for readability */
.toiaf-cs-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.75) 50%,
        rgba(10, 10, 10, 0.85) 100%
    );
    z-index: 2;
}

/* Fallback gradient if no video */
.toiaf-cs-no-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(142, 43, 255, 0.2) 0%,
        rgba(10, 10, 10, 1) 70%
    );
    z-index: 1;
}

/* ========================================
   CONTENT CONTAINER
   ======================================== */

.toiaf-cs-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
}

/* ========================================
   LOGO
   ======================================== */

.toiaf-cs-logo {
    margin-bottom: 60px;
    animation: toiaf-glow-pulse 3s ease-in-out infinite;
}

.toiaf-cs-logo img {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px currentColor);
}

@keyframes toiaf-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 40px currentColor);
    }
}

/* ========================================
   HEADLINE & TEXT
   ======================================== */

.toiaf-cs-headline {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(
        90deg,
        var(--primary-color, var(--toiaf-purple)) 0%,
        var(--secondary-color, var(--toiaf-aqua)) 50%,
        var(--accent-color, var(--toiaf-lime)) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: toiaf-gradient-shift 5s ease infinite;
    background-size: 200% 100%;
}

@keyframes toiaf-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.toiaf-cs-tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-color, var(--toiaf-purple));
    margin-bottom: 40px;
    text-shadow: 0 0 20px currentColor;
}

.toiaf-cs-message {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   COUNTDOWN TIMER
   ======================================== */

.toiaf-cs-countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.toiaf-cs-countdown-item {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--primary-color, var(--toiaf-purple));
    border-radius: 15px;
    padding: 20px 30px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.toiaf-cs-countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: toiaf-shine 3s infinite;
}

@keyframes toiaf-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.toiaf-cs-countdown-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color, var(--toiaf-purple));
    text-shadow: 0 0 20px currentColor;
    line-height: 1;
    margin-bottom: 10px;
}

.toiaf-cs-countdown-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color, var(--toiaf-aqua));
}

/* ========================================
   NEWSLETTER SIGNUP
   ======================================== */

.toiaf-cs-newsletter {
    max-width: 600px;
    margin: 0 auto 40px;
}

.toiaf-cs-newsletter-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color, var(--toiaf-aqua));
    margin-bottom: 20px;
}

.toiaf-cs-newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.toiaf-cs-newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 18px 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary-color, var(--toiaf-purple));
    border-radius: 50px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.toiaf-cs-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.toiaf-cs-newsletter-input:focus {
    border-color: var(--accent-color, var(--toiaf-aqua));
    box-shadow: 0 0 20px var(--accent-color, var(--toiaf-aqua));
}

.toiaf-cs-newsletter-button {
    padding: 18px 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(
        135deg,
        var(--primary-color, var(--toiaf-purple)) 0%,
        var(--secondary-color, var(--toiaf-aqua)) 100%
    );
    border: none;
    border-radius: 50px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toiaf-cs-newsletter-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.toiaf-cs-newsletter-button:hover::before {
    width: 300px;
    height: 300px;
}

.toiaf-cs-newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ========================================
   SOCIAL LINKS
   ======================================== */

.toiaf-cs-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.toiaf-cs-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--primary-color, var(--toiaf-purple));
    border-radius: 50%;
    color: var(--primary-color, var(--toiaf-purple));
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.toiaf-cs-social-link:hover {
    background: var(--primary-color, var(--toiaf-purple));
    color: #000;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* ========================================
   ADMIN NOTICE
   ======================================== */

.toiaf-cs-admin-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--toiaf-yellow);
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 0.9rem;
    color: var(--toiaf-yellow);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .toiaf-cs-logo img {
        max-width: 300px;
    }
    
    .toiaf-cs-headline {
        letter-spacing: 0.1em;
    }
    
    .toiaf-cs-tagline {
        letter-spacing: 0.15em;
    }
    
    .toiaf-cs-countdown {
        gap: 15px;
    }
    
    .toiaf-cs-countdown-item {
        padding: 15px 20px;
        min-width: 100px;
    }
    
    .toiaf-cs-countdown-number {
        font-size: 2rem;
    }
    
    .toiaf-cs-newsletter-form {
        flex-direction: column;
    }
    
    .toiaf-cs-newsletter-input,
    .toiaf-cs-newsletter-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .toiaf-cs-container {
        padding: 20px 15px;
    }
    
    .toiaf-cs-logo {
        margin-bottom: 40px;
    }
    
    .toiaf-cs-logo img {
        max-width: 250px;
    }
    
    .toiaf-cs-countdown-item {
        min-width: 80px;
    }
}

/* ========================================
   LOADING ANIMATION
   ======================================== */

@keyframes toiaf-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toiaf-cs-container > * {
    animation: toiaf-fade-in 0.8s ease-out backwards;
}

.toiaf-cs-logo { animation-delay: 0.1s; }
.toiaf-cs-headline { animation-delay: 0.2s; }
.toiaf-cs-tagline { animation-delay: 0.3s; }
.toiaf-cs-message { animation-delay: 0.4s; }
.toiaf-cs-countdown { animation-delay: 0.5s; }
.toiaf-cs-newsletter { animation-delay: 0.6s; }
.toiaf-cs-social { animation-delay: 0.7s; }
