/* ============================================
   bioxai.eu — Shared Styles
   European Bio × AI Hackathon Series
   ============================================ */

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

:root {
    --white: #ffffff;
    --white-90: rgba(255, 255, 255, 0.9);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-30: rgba(255, 255, 255, 0.3);
    --glass-bg: rgba(25, 20, 85, 0.4);
    --glass-bg-light: rgba(25, 20, 85, 0.25);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --accent: rgba(100, 180, 255, 0.9);
    --accent-dim: rgba(100, 180, 255, 0.5);
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto Mono', monospace;
    background: url('assets/bg.png') no-repeat center center fixed;
    background-attachment: fixed;
    background-size: cover;
    color: var(--white);
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
}

/* ---- Layout ---- */

.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.container--narrow {
    max-width: 800px;
}

section {
    padding: 4rem 0;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--white);
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

h4 {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

p {
    font-size: 0.85rem;
    color: var(--white-70);
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--white-30);
    text-underline-offset: 3px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent-dim);
}

strong {
    font-weight: 500;
    color: var(--white-90);
}

/* ---- Section Labels ---- */

.section-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

/* ---- Dividers ---- */

.divider {
    width: 60px;
    height: 1px;
    background: var(--white-50);
    margin: 0 auto 2rem;
}

.divider--left {
    margin: 0 0 2rem 0;
}

/* ---- Glass Cards ---- */

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease;
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
}

.glass-card--light {
    background: var(--glass-bg-light);
}

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    border-radius: 8px;
    padding: 0.85rem 2.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    color: var(--white);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

.btn--accent {
    border-color: var(--accent);
    background: rgba(100, 180, 255, 0.1);
}

.btn--accent:hover {
    background: rgba(100, 180, 255, 0.22);
}

.btn--small {
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
}

/* ---- Navigation ---- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 46, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    text-decoration: none;
}

.nav__logo:hover {
    text-decoration: none;
    color: var(--white);
}

.nav__logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.nav__links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav__links a {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: var(--white-70);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.nav__links a:hover {
    color: var(--white);
    text-decoration: none;
}

/* Mobile nav toggle */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* ---- Hero ---- */

.hero {
    text-align: center;
    padding: 10rem 0 5rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
}

.hero .section-label {
    color: var(--white-90);
}

.hero__logo {
    max-width: 320px;
    width: 70%;
    height: auto;
    margin-bottom: 1.5rem;
}

.hero .btn {
    margin-top: 1.5rem;
}

/* ---- Edition Cards ---- */

.editions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.editions-grid__label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-30);
    margin-top: 1rem;
}

.edition-card {
    text-align: left;
}

.edition-card__row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
}

.edition-card__city {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
}

.edition-card__meta {
    font-size: 0.8rem;
    color: var(--white-70);
}

.edition-card__meta span {
    color: var(--white-50);
}

.edition-card__stats {
    font-size: 0.75rem;
    color: var(--white-50);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--glass-border);
}

.edition-card .btn--small {
    margin-top: 1rem;
}

/* Status badges */
.status {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.status--completed {
    background: rgba(80, 200, 120, 0.15);
    color: rgba(80, 200, 120, 0.9);
    border: 1px solid rgba(80, 200, 120, 0.3);
}

.status--upcoming {
    background: rgba(255, 200, 60, 0.15);
    color: rgba(255, 200, 60, 0.9);
    border: 1px solid rgba(255, 200, 60, 0.3);
}

.status--planned {
    background: rgba(100, 180, 255, 0.15);
    color: rgba(100, 180, 255, 0.9);
    border: 1px solid rgba(100, 180, 255, 0.3);
}

/* ---- CTA Section ---- */

.cta-section {
    text-align: center;
    padding: 4rem 0;
}

.cta-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Tally Embed ---- */

.tally-embed {
    max-width: 450px;
    margin: 0 auto;
}

/* ---- Footer ---- */

.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer p {
    font-size: 0.75rem;
    color: var(--white-50);
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--white-50);
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
}

.footer__links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer__links a {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- Playbook-specific ---- */

.playbook-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 46, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 2rem;
    z-index: 50;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.3s ease;
}

.playbook-nav--hidden {
    transform: translateY(-200%);
}

.playbook-nav a {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: var(--white-50);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

.playbook-nav a:hover,
.playbook-nav a.active {
    color: var(--white);
}

.playbook-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.playbook-section:last-of-type {
    border-bottom: none;
}

.playbook-section ul,
.playbook-section ol {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: var(--white-70);
    line-height: 1.8;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.playbook-section li {
    margin-bottom: 0.5rem;
}

/* Tier cards for partnership section */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Schedule timeline */
.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.timeline-time {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.timeline-content {
    font-size: 0.85rem;
    color: var(--white-70);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    flex: 1;
}

.timeline-item:last-child .timeline-content {
    border-bottom: none;
    padding-bottom: 0;
}

/* Callout boxes */
.callout {
    background: rgba(100, 180, 255, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.callout p {
    color: var(--white-70);
    margin-bottom: 0;
}

.callout--warning {
    background: rgba(255, 200, 60, 0.08);
    border-left-color: rgba(255, 200, 60, 0.9);
}

/* ---- Animations ---- */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

.fade-up--d1 { animation-delay: 0.1s; }
.fade-up--d2 { animation-delay: 0.2s; }
.fade-up--d3 { animation-delay: 0.3s; }
.fade-up--d4 { animation-delay: 0.4s; }
.fade-up--d5 { animation-delay: 0.5s; }
.fade-up--d6 { animation-delay: 0.6s; }
.fade-up--d7 { animation-delay: 0.7s; }
.fade-up--d8 { animation-delay: 0.8s; }

/* Scroll-triggered fade (used with IntersectionObserver) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 1.25rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 8rem 0 3rem;
        min-height: 70vh;
    }

    h1 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .editions-grid {
        grid-template-columns: 1fr;
    }

    .tier-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile nav */
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 46, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--glass-border);
        padding: 1rem 2rem;
        gap: 1rem;
    }

    .nav__links.open {
        display: flex;
    }

    .nav__toggle {
        display: block;
    }

    /* Playbook nav scrollable on mobile */
    .playbook-nav {
        padding: 0.75rem 1.25rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .timeline-time {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 7rem 0 2rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}
