/* ==========================================================================
   Conference Intelligence — shared stylesheet
   Extends the existing SundarSpeaks design system. The tokens below are copied
   verbatim from the site's inline <style> blocks so this section matches.
   ========================================================================== */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1a1a1a;
    --cyan-accent: #00d4ff;
    --cyan-dark: #00a8cc;
    --coral-accent: #ff4757;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;
    --border-subtle: rgba(0, 212, 255, 0.15);
    --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

a { color: var(--cyan-accent); }

/* Accessibility ---------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--cyan-accent); outline-offset: 3px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--cyan-accent); color: #0a0a0a;
    padding: 0.7rem 1.2rem; font-weight: 700; z-index: 2000;
}
.skip-link:focus { left: 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Navigation (matches existing site) ------------------------------------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.nav-logo-link { display: flex; align-items: center; }
.nav-logo { height: 70px; width: auto; }

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

.nav-menu a {
    color: var(--text-primary); text-decoration: none;
    font-size: 0.95rem; font-weight: 500; transition: color 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--cyan-accent); }

.mobile-menu-btn {
    display: none; background: none; border: none;
    color: var(--text-primary); font-size: 1.5rem; cursor: pointer;
}

/* Layout ----------------------------------------------------------------- */
.page-content { padding: 7rem 5% 4rem; }
.content-container { max-width: 1400px; margin: 0 auto; }
.narrow { max-width: 900px; }

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; color: var(--cyan-accent);
    margin-bottom: 1.5rem; font-style: italic;
}

.section-head-row {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.section-head-row .section-heading { margin-bottom: 0; }

.full-section { margin-bottom: 4rem; }

.lead { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.2rem; }
.lead strong { color: var(--text-primary); }

/* Hero ------------------------------------------------------------------- */
.ci-hero { margin-bottom: 2rem; }

.ci-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem; color: var(--cyan-accent);
    font-style: italic; margin-bottom: 1.2rem;
}

.ci-hero .tagline {
    color: var(--text-secondary); font-size: 1.15rem;
    line-height: 1.8; max-width: 780px; margin-bottom: 1rem;
}
.ci-hero .support { color: var(--text-muted); font-size: 1rem; max-width: 780px; }

.curator-line { margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }

/* Stat strip ------------------------------------------------------------- */
.stat-strip {
    display: flex; flex-wrap: wrap; gap: 2.5rem; padding: 1.4rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin: 2rem 0 3rem;
}
.stat-strip div { min-width: 100px; }
.stat-strip .num {
    display: block; font-size: 1.7rem; font-weight: 700;
    color: var(--cyan-accent); line-height: 1.2;
}
.stat-strip .lbl {
    font-size: 0.82rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.06em;
}

/* Search + filters ------------------------------------------------------- */
.filter-bar {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem;
}

.filter-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem;
}

.filter-bar label {
    display: block; font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.4rem;
}

.filter-bar input[type="search"],
.filter-bar input[type="text"],
.filter-bar select {
    width: 100%; background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.14); border-radius: 6px;
    color: var(--text-primary); padding: 0.65rem 0.8rem;
    font-family: inherit; font-size: 0.95rem;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--cyan-accent); outline: none; }

.filter-actions {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-top: 1rem; flex-wrap: wrap;
}
.result-count { color: var(--text-muted); font-size: 0.9rem; }

.btn-reset {
    background: none; border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-secondary); padding: 0.55rem 1.1rem;
    border-radius: 6px; font-family: inherit; font-size: 0.9rem; cursor: pointer;
}
.btn-reset:hover { border-color: var(--cyan-accent); color: var(--cyan-accent); }

/* Chip filters ----------------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }

.chip {
    background: rgba(0, 212, 255, 0.05); border: 1px solid var(--border-subtle);
    color: var(--text-secondary); border-radius: 999px;
    padding: 0.45rem 1rem; font-size: 0.88rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--cyan-accent); color: var(--text-primary); }
.chip[aria-pressed="true"] {
    background: var(--cyan-accent); border-color: var(--cyan-accent); color: #0a0a0a;
}

/* Event cards ------------------------------------------------------------ */
.event-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.5rem;
}

.event-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius); padding: 1.5rem;
    display: flex; flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.event-card:hover { border-color: var(--cyan-accent); transform: translateY(-3px); }
.event-card.is-hidden { display: none; }

.event-card .date-line {
    color: var(--coral-accent); font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.55rem;
}

.event-card h3 { font-size: 1.12rem; line-height: 1.45; margin-bottom: 0.55rem; }
.event-card h3 a { color: var(--text-primary); text-decoration: none; }
.event-card h3 a:hover { color: var(--cyan-accent); }

.event-card .meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.5rem; }

.event-card .desc {
    color: var(--text-secondary); font-size: 0.94rem; line-height: 1.65;
    margin-bottom: 1rem; flex-grow: 1;
}

.event-card .card-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.8rem; flex-wrap: wrap; margin-top: auto;
}

.view-link { color: var(--cyan-accent); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.view-link:hover { text-decoration: underline; }

.empty-state {
    display: none; text-align: center; padding: 3rem 1rem;
    color: var(--text-muted); border: 1px dashed rgba(255,255,255,0.15);
    border-radius: var(--radius);
}
.empty-state.show { display: block; }

/* Badges ----------------------------------------------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }

.badge {
    display: inline-block; font-size: 0.68rem; font-weight: 800;
    letter-spacing: 0.07em; text-transform: uppercase;
    padding: 0.28rem 0.6rem; border-radius: 4px; border: 1px solid;
}

.badge-open    { color: #4ade80; border-color: rgba(74,222,128,0.4);  background: rgba(74,222,128,0.09); }
.badge-cfp     { color: #38bdf8; border-color: rgba(56,189,248,0.4);  background: rgba(56,189,248,0.09); }

/* Live speaker calls pulse gently so they read at a glance while scanning.
   Only the three actionable states animate — never CURATED or CALL CLOSED. */
@keyframes badge-pulse-green { 0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.45); } 55% { box-shadow: 0 0 0 5px rgba(74,222,128,0); } }
@keyframes badge-pulse-blue  { 0%, 100% { box-shadow: 0 0 0 0 rgba(56,189,248,0.45); } 55% { box-shadow: 0 0 0 5px rgba(56,189,248,0); } }
@keyframes badge-pulse-amber { 0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.5);  } 55% { box-shadow: 0 0 0 5px rgba(251,191,36,0); } }

.badge-open { animation: badge-pulse-green 2.6s ease-out infinite; }
.badge-cfp  { animation: badge-pulse-blue  2.6s ease-out infinite; }
.badge-soon { animation: badge-pulse-amber 2.2s ease-out infinite; }
.badge-curated { color: #c4b5fd; border-color: rgba(196,181,253,0.4); background: rgba(196,181,253,0.09); }
.badge-closed  { color: #9ca3af; border-color: rgba(156,163,175,0.4); background: rgba(156,163,175,0.09); }
.badge-soon    { color: #fbbf24; border-color: rgba(251,191,36,0.45); background: rgba(251,191,36,0.11); }
.badge-past    { color: #9ca3af; border-color: rgba(156,163,175,0.35); background: transparent; }
.badge-sample  { color: var(--coral-accent); border-color: rgba(255,71,87,0.45); background: rgba(255,71,87,0.09); }
.badge-cat     { color: var(--text-secondary); border-color: rgba(255,255,255,0.18); background: transparent; font-weight: 600; }

/* Detail page ------------------------------------------------------------ */
.detail-head { margin-bottom: 2rem; }
.detail-head h1 {
    font-family: 'Playfair Display', serif; font-size: 2.1rem;
    color: var(--cyan-accent); font-style: italic;
    margin-bottom: 1rem; line-height: 1.3;
}

.breadcrumb { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan-accent); }

.fact-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.fact-table th, .fact-table td {
    text-align: left; padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: top; font-size: 0.97rem;
}
.fact-table th {
    color: var(--text-muted); font-weight: 600; width: 34%;
    text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.05em;
}
.fact-table td { color: var(--text-secondary); }
.fact-table td strong { color: var(--text-primary); }

.table-wrap { overflow-x: auto; }

.na { color: var(--text-muted); font-style: italic; }

.detail-block {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius); padding: 1.8rem; margin-bottom: 2rem;
}
.detail-block h2 {
    font-family: 'Playfair Display', serif; font-size: 1.35rem;
    color: var(--cyan-accent); font-style: italic; margin-bottom: 1rem;
}
.detail-block p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 0.9rem; }
.detail-block p:last-child { margin-bottom: 0; }
.detail-block ul { color: var(--text-secondary); padding-left: 1.3rem; line-height: 1.8; }

.ref-list { list-style: none; padding: 0; }
.ref-list li { padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ref-list li:last-child { border-bottom: none; }
.ref-official {
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
    color: #4ade80; border: 1px solid rgba(74,222,128,0.4);
    border-radius: 4px; padding: 0.15rem 0.45rem;
    margin-left: 0.5rem; text-transform: uppercase;
}

.disclaimer {
    border-left: 3px solid var(--coral-accent);
    background: rgba(255,71,87,0.05);
    padding: 1.1rem 1.3rem; border-radius: 0 6px 6px 0;
    color: var(--text-secondary); font-size: 0.93rem;
    line-height: 1.75; margin-bottom: 2rem;
}

.sample-notice {
    border-left: 3px solid var(--coral-accent);
    background: rgba(255,71,87,0.08);
    padding: 1rem 1.3rem; border-radius: 0 6px 6px 0;
    color: var(--text-secondary); font-size: 0.93rem; margin-bottom: 2rem;
}

/* Buttons ---------------------------------------------------------------- */
.cta-button {
    display: inline-block; background: var(--cyan-accent); color: #0a0a0a;
    padding: 0.9rem 2rem; border-radius: 8px; font-weight: 700;
    text-decoration: none; border: none; font-family: inherit;
    font-size: 1rem; cursor: pointer; transition: transform 0.3s ease;
}
.cta-button:hover { transform: translateY(-2px); }

.btn-secondary {
    display: inline-block; background: transparent; color: var(--cyan-accent);
    border: 1px solid var(--cyan-accent); padding: 0.85rem 1.8rem;
    border-radius: 8px; font-weight: 700; text-decoration: none;
    font-family: inherit; cursor: pointer;
}
.btn-secondary:hover { background: rgba(0,212,255,0.08); }

.button-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.cta-panel {
    background: linear-gradient(135deg, #1a1025 0%, #0f1520 100%);
    border-left: 4px solid var(--cyan-accent);
    border-radius: 12px; padding: 2.5rem; margin-bottom: 4rem;
}
.cta-panel h2 {
    font-family: 'Playfair Display', serif; font-size: 1.6rem;
    color: var(--cyan-accent); font-style: italic; margin-bottom: 1rem;
}
.cta-panel p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.4rem; }

/* Browse grids ----------------------------------------------------------- */
.browse-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.9rem;
}
.browse-grid a {
    display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
    background: rgba(0,212,255,0.04); border: 1px solid var(--border-subtle);
    border-radius: 8px; padding: 0.85rem 1.1rem;
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.93rem; font-weight: 600;
}
.browse-grid a:hover { border-color: var(--cyan-accent); color: var(--text-primary); }
.browse-grid .count { color: var(--text-muted); font-size: 0.82rem; font-weight: 600; }

/* Forms ------------------------------------------------------------------ */
.form-section {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.8rem;
}
.form-section > h2 {
    font-family: 'Playfair Display', serif; font-size: 1.3rem;
    color: var(--cyan-accent); font-style: italic; margin-bottom: 1.4rem;
}

.field { margin-bottom: 1.3rem; }
.field label {
    display: block; font-size: 0.9rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 0.45rem;
}
.field .hint {
    display: block; font-weight: 400; color: var(--text-muted);
    font-size: 0.83rem; margin-top: 0.2rem;
}
.req { color: var(--coral-accent); }

.field input[type="text"], .field input[type="email"], .field input[type="url"],
.field input[type="tel"], .field input[type="date"], .field input[type="number"],
.field select, .field textarea {
    width: 100%; background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.14); border-radius: 6px;
    color: var(--text-primary); padding: 0.7rem 0.85rem;
    font-family: inherit; font-size: 0.97rem;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--cyan-accent); outline: none;
}

.field-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem;
}

fieldset {
    border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
    padding: 1.1rem 1.2rem; margin-bottom: 1.3rem;
}
legend { padding: 0 0.5rem; font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }

.radio-row { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.radio-row label, .check-line label {
    font-weight: 400; color: var(--text-secondary);
    display: inline-flex; align-items: center; gap: 0.45rem;
    margin: 0; cursor: pointer;
}
.check-line { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.3rem; }
.check-line input { margin-top: 0.3rem; }

.form-note { color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.5rem; }

.form-status {
    display: none; padding: 1rem 1.2rem; border-radius: 6px;
    margin-bottom: 1.5rem; font-size: 0.95rem;
}
.form-status.show { display: block; }
.form-status.err { border-left: 3px solid var(--coral-accent); background: rgba(255,71,87,0.08); color: var(--text-secondary); }

/* Footer (matches existing site) ----------------------------------------- */
.footer { background: var(--bg-secondary); padding: 4rem 5% 2rem; }
.footer-content { max-width: 1400px; margin: 0 auto; }

.footer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-contact-item h3 {
    font-family: 'Playfair Display', serif; font-size: 1.3rem;
    color: var(--cyan-accent); margin-bottom: 0.5rem;
}
.footer-contact-item a {
    font-size: 1.8rem; color: var(--text-primary);
    text-decoration: none; font-weight: 600;
}
.footer-contact-item a:hover { color: var(--cyan-accent); }

.footer-social { display: flex; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.footer-social a {
    color: var(--text-primary); font-size: 2.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-social a:hover { color: var(--cyan-accent); transform: translateY(-3px); }

.footer-bottom {
    text-align: left; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--coral-accent); font-size: 0.85rem;
}
.footer-bottom a { color: var(--cyan-accent); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ci-hero h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg-primary); flex-direction: column;
        padding: 2rem; gap: 1.5rem; max-height: 75vh; overflow-y: auto;
    }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: block; }

    .page-content { padding: 6.5rem 5% 3rem; }
    .ci-hero h1 { font-size: 1.7rem; }
    .detail-head h1 { font-size: 1.6rem; }
    .section-heading { font-size: 1.5rem; }

    .event-grid { grid-template-columns: 1fr; }
    .filter-row { grid-template-columns: 1fr; }
    .stat-strip { gap: 1.5rem; }
    .cta-panel { padding: 1.6rem; }
    .detail-block { padding: 1.3rem; }
    .form-section { padding: 1.3rem; }

    .fact-table th, .fact-table td { display: block; width: 100%; }
    .fact-table th { border-bottom: none; padding-bottom: 0.2rem; }
    .fact-table td { padding-top: 0.2rem; }

    .footer-contact { grid-template-columns: 1fr; gap: 2rem; }
    .footer-contact-item a { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .event-card:hover { transform: none; }
    /* Keep the meaning without the motion. */
    .badge-open, .badge-cfp, .badge-soon { box-shadow: 0 0 0 2px currentColor; }
}
