/* css/style.css — nuyu shared styles */

/* Layout */
html { min-height: 100vh; }
body {
    font-family: 'DM Sans', sans-serif;
    background-color: #000000;
    color: #E4E4E7;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
h1, h2, h3 {
    font-family: 'Instrument Sans', sans-serif;
}

/* Hero gradient */
.hero-gradient {
    background: radial-gradient(ellipse at top, rgba(109, 40, 217, 0.2), transparent 50%),
                radial-gradient(ellipse at bottom, rgba(79, 70, 229, 0.2), transparent 70%);
}

/* Subtle atmospheric glow for mid-page sections */
.section-glow {
    background: radial-gradient(ellipse at center, rgba(109, 40, 217, 0.08), transparent 70%);
}

/* Button gradient */
.btn-gradient {
    background-image: linear-gradient(to right, #8B5CF6, #6366F1);
    transition: all 0.3s ease;
}
.btn-gradient:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Cards */
.content-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}
.content-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-highlight {
    background-color: rgba(139, 92, 246, 0.1);
    border: 1px solid #8B5CF6;
    border-radius: 0.75rem;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1rem;
}

/* Custom list */
.custom-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.custom-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #8B5CF6;
}

/* Quiz modal */
#quiz-modal {
    transition: opacity 0.3s ease-in-out;
}
#progress-bar-fill {
    transition: width 0.3s ease-in-out;
}
.custom-radio:checked {
    background-color: #8B5CF6;
    border-color: #8B5CF6;
}
.custom-radio:checked:after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    margin: 2px;
    border-radius: 50%;
    background: white;
}
.custom-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-print-color-adjust: exact;
}

/* Scroll animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.stat-number { font-variant-numeric: tabular-nums; }

/* Science page — interactive states */
.stage-tab.active { border-color: #8b5cf6; background-color: rgba(139, 92, 246, 0.1); }

/* SVG path animation */
.draw-path { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.5s ease; }
.draw-path.drawn { stroke-dashoffset: 0; }

/* Science section layout */
.science-section { position: relative; overflow: hidden; }
.science-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .science-grid { grid-template-columns: 1fr 1fr; } }
.science-grid.reversed > :first-child { order: 2; }
.science-grid.reversed > :last-child { order: 1; }
@media (max-width: 767px) { .science-grid.reversed > :first-child { order: 0; } .science-grid.reversed > :last-child { order: 0; } }

/* Surface navigation pill */
.surface-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    padding: 2px;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    width: fit-content;
}
.surface-pill a,
.surface-pill .pill-current {
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.surface-pill a { color: #71717a; }
.surface-pill a:hover { color: #e4e4e7; }
.surface-pill .pill-current { background: rgba(255,255,255,0.1); color: #e4e4e7; }
