/**
 * Course Coming Soon — Styles
 * Mobile-first, minimal, elegant
 */

/* === Wrapper === */
.coming-soon-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #0a0a0f 0%, #000 100%);
}

/* === Three.js Canvas === */
#comingSoonCanvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
    opacity: 0.85;
}

/* No mask on content wrapper */

/* === Content === */
.coming-soon-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    max-width: 500px;
}

/* Badge */
.coming-soon-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

/* Title */
.coming-soon-title {
    font-family: 'Inter', 'Heebo', sans-serif;
    font-size: clamp(48px, 15vw, 100px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    text-shadow: 0 0 60px rgba(79, 195, 247, 0.3);
}

.coming-soon-title .title-line {
    display: block;
    color: #fff;
}

.coming-soon-title .title-line.accent {
    background: linear-gradient(135deg, #4fc3f7 0%, #f97316 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtitle */
.coming-soon-subtitle {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 28px;
}

/* Dark radial fade - ONLY behind subtitle */
.coming-soon-subtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 180px;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 80%);
    pointer-events: none;
}

.coming-soon-subtitle .highlight {
    color: #f97316;
    font-weight: 600;
}

/* === Syllabus Toggle Button === */
.syllabus-toggle-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(79, 195, 247, 0.18);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.35s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 2px 20px rgba(79, 195, 247, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.syllabus-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.12) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(79, 195, 247, 0.35);
    color: #fff;
    box-shadow:
        0 4px 30px rgba(79, 195, 247, 0.15),
        0 0 20px rgba(79, 195, 247, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}


/* === Syllabus Overlay (Holographic Book) === */
.syllabus-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.syllabus-overlay.active {
    visibility: visible;
}

/* Ensure 3D transforms work inside overlay */
.syllabus-overlay .book-wrapper {
    transform-style: preserve-3d;
    perspective: 2500px;
}

.syllabus-overlay .holo-book,
.syllabus-overlay .pages-container,
.syllabus-overlay .book-page {
    transform-style: preserve-3d;
}

.syllabus-overlay .syllabus-close-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1010;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.syllabus-overlay .syllabus-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Book uses same RTL direction as Hebrew version - works fine for English content */

/* === Floating Particles (CSS decoration) === */
.floating-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.floating-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #4fc3f7;
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 12s infinite;
}

.floating-particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-particles span:nth-child(2) { left: 30%; animation-delay: 2s; }
.floating-particles span:nth-child(3) { left: 50%; animation-delay: 4s; }
.floating-particles span:nth-child(4) { left: 70%; animation-delay: 6s; }
.floating-particles span:nth-child(5) { left: 85%; animation-delay: 8s; }
.floating-particles span:nth-child(6) { left: 95%; animation-delay: 10s; }

@keyframes floatUp {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: scale(0.5);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: scale(1.2);
    }
}

/* === Mobile Optimizations === */
@media (max-width: 768px) {
    .coming-soon-content {
        padding: 20px;
    }

    .coming-soon-title {
        font-size: clamp(42px, 18vw, 72px);
        margin-bottom: 16px;
    }

    .coming-soon-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .syllabus-toggle-btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    #comingSoonCanvas {
        opacity: 0.6;
    }

    .floating-particles span {
        width: 3px;
        height: 3px;
    }

    .syllabus-overlay .syllabus-close-btn {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}
