/* ============================================================
   minisite.css — conference mini-site (event/index.php)
   Independent nav + article layout, built on the lab's tokens.
   ============================================================ */

/* ---- Top nav (independent conference menu) ---- */
.ms-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 5%;
    background: rgba(5, 5, 16, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.ms-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-brand span { color: var(--accent-color); }

.ms-nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.ms-nav-links a {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}
.ms-nav-links a:hover { color: var(--accent-color); }
.ms-nav-links a.active {
    color: var(--accent-color);
    background: rgba(0, 243, 255, 0.1);
    font-weight: 600;
}

.ms-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---- Hero ----
   Override the global `header { height: 100vh }` from style.css and size the
   banner per page: full screen on Home, a compact banner on inner pages so the
   manager's content is visible immediately without scrolling. */
.ms-hero {
    height: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* Home: keep the full-screen welcome hero */
.ms-hero-home {
    min-height: 100vh;
    padding: 6rem 8% 3rem;
}
/* Inner pages: neat top banner with event name + current tab */
.ms-hero-compact {
    min-height: 30vh;
    padding: 8rem 8% 2rem; /* top padding clears the fixed nav */
}
.ms-hero-compact h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.ms-hero-meta {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.ms-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text-main), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ms-page-label {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.35rem 1.1rem;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- Content ---- */
.ms-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 8% 6rem;
}

.ms-article {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 2.5rem 2.75rem;
    backdrop-filter: blur(8px);
    color: #d7d9e6;
    font-size: 1.05rem;
    line-height: 1.8;
}

.ms-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 4rem 1rem;
    font-weight: 300;
}

/* Rich content typography */
.ms-article h1, .ms-article h2, .ms-article h3,
.ms-article h4, .ms-article h5, .ms-article h6 {
    color: var(--text-main);
    line-height: 1.25;
    margin: 1.75rem 0 0.85rem;
    font-weight: 600;
}
.ms-article h1 { font-size: 1.9rem; }
.ms-article h2 { font-size: 1.55rem; color: var(--accent-color); font-weight: 300; }
.ms-article h3 { font-size: 1.3rem; }
.ms-article > :first-child { margin-top: 0; }
.ms-article p { margin-bottom: 1.2rem; }
.ms-article a { color: var(--accent-color); text-decoration: underline; text-underline-offset: 2px; }
.ms-article a:hover { text-shadow: 0 0 8px rgba(0, 243, 255, 0.4); }
.ms-article ul, .ms-article ol { margin: 0 0 1.2rem 1.5rem; }
.ms-article li { margin-bottom: 0.5rem; }
.ms-article ul li::marker, .ms-article ol li::marker { color: var(--accent-color); }
.ms-article img { max-width: 100%; height: auto; border-radius: 10px; margin: 1rem 0; }
.ms-article hr { border: none; border-top: 1px solid var(--card-border); margin: 2rem 0; }
.ms-article blockquote {
    margin: 0 0 1.2rem;
    padding: 0.5rem 0 0.5rem 1.25rem;
    border-left: 3px solid var(--accent-color);
    color: var(--text-muted);
    font-style: italic;
}
.ms-article code {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}
.ms-article pre {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.2rem;
}
.ms-article pre code { background: none; padding: 0; }

/* Tables — styled to match the dark/cyan theme */
.ms-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.ms-article th, .ms-article td {
    border: 1px solid var(--card-border);
    padding: 0.7rem 1rem;
    text-align: left;
    vertical-align: top;
}
.ms-article thead th,
.ms-article th {
    background: rgba(0, 243, 255, 0.08);
    color: var(--accent-color);
    font-weight: 600;
}
.ms-article tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
.ms-article caption { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }

/* ---- Footer ---- */
.ms-footer {
    border-top: 1px solid var(--card-border);
    padding: 2.5rem 8%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.ms-footer a { color: var(--accent-color); text-decoration: none; }
.ms-footer a:hover { text-decoration: underline; }

/* ---- Empty / not-found ---- */
.ms-empty-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem;
}
.ms-empty-page h1 { font-weight: 300; }
.ms-empty-page .btn { margin-top: 1rem; }

/* ---- Responsive: collapse the menu ---- */
@media (max-width: 860px) {
    .ms-nav-toggle { display: block; }
    .ms-brand { max-width: 70%; }
    .ms-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 5% 1rem;
        background: rgba(5, 5, 16, 0.97);
        border-bottom: 1px solid var(--card-border);
    }
    .ms-nav-links.open { display: flex; }
    .ms-nav-links a { padding: 0.7rem 0.5rem; font-size: 0.95rem; }
    .ms-article { padding: 1.75rem 1.5rem; }
}
