/* ═══════════════════════════════════════════════════
   EventMe — Stylesheet
   Professional, minimal, bilingual (AR/EN) ready.
   ═══════════════════════════════════════════════════ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@200;300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  /* Colors */
  --c-bg: #fafaf9;
  --c-surface: #ffffff;
  --c-surface-alt: #f5f3f0;
  --c-border: #e8e4df;
  --c-text: #1a1714;
  --c-text-secondary: #6b6560;
  --c-text-muted: #9e9893;
  --c-accent: #d97706;
  --c-accent-hover: #b45309;
  --c-accent-light: #fef3c7;
  --c-now: #059669;
  --c-now-bg: #ecfdf5;
  --c-next: #2563eb;
  --c-next-bg: #eff6ff;
  --c-done: #9e9893;
  --c-done-bg: #f5f3f0;
  --c-also-live: #7c3aed;
  --c-also-live-bg: #f5f3ff;

  /* Typography */
  --ff: 'Readex Pro', -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.75rem;
  --fs-5xl: 3.5rem;
  --lh: 1.65;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --max-w: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.08);

  /* Transition */
  --tr: 0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 600; }

/* ── Utilities ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-6); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═════════════════════════════════════════════════
   HEADER / NAV
   ═════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,249,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--tr);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.wordmark {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.02em;
}
.wordmark span { color: var(--c-accent); }

/* Desktop nav */
.nav-links { display: none; gap: var(--sp-6); align-items: center; }
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-secondary);
  transition: color var(--tr);
}
.nav-links a:hover { color: var(--c-text); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* Header actions */
.header-actions { display: flex; gap: var(--sp-3); align-items: center; }

/* Lang toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-secondary);
  transition: all var(--tr);
  background: var(--c-surface);
}
.lang-toggle:hover { border-color: var(--c-accent); color: var(--c-accent); }
.lang-toggle .globe {
  width: 16px; height: 16px;
  opacity: .6;
}

/* ═════════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════════ */
.hero {
  padding: var(--sp-20) 0 var(--sp-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(217,119,6,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero h1 {
  font-size: var(--fs-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
  color: var(--c-text);
}
.hero p {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-8);
  max-width: 560px;
  margin-inline: auto;
}
.hero-ctas { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: 500;
  transition: all var(--tr);
}
.btn-primary {
  background: var(--c-text);
  color: var(--c-bg);
}
.btn-primary:hover { background: #2d2924; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  border: 1.5px solid var(--c-border);
  color: var(--c-text-secondary);
  background: var(--c-surface);
}
.btn-secondary:hover { border-color: var(--c-text); color: var(--c-text); }
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }

/* ═════════════════════════════════════════════════
   SECTIONS
   ═════════════════════════════════════════════════ */
.section {
  padding: var(--sp-16) 0;
}
.section:nth-child(even) { background: var(--c-surface-alt); }
.section-header {
  text-align: center;
  margin-bottom: var(--sp-10);
}
.section-header h2 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}

/* What */
.what-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.what-content p {
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-lg);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}
.benefit-col h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  color: var(--c-accent);
}
.benefit-col li {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-secondary);
  font-size: var(--fs-base);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.benefit-col li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  margin-top: 0.65em;
}

/* How Steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
.step-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
  background: var(--c-surface);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  transition: transform var(--tr), box-shadow var(--tr);
}
.step-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-accent-light);
  color: var(--c-accent);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
.step-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step-card p { color: var(--c-text-secondary); font-size: var(--fs-sm); }

/* Use Cases */
.usecases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 640px) {
  .usecases-grid { grid-template-columns: repeat(3, 1fr); }
}
.usecase-card {
  padding: var(--sp-8) var(--sp-6);
  background: var(--c-surface);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  transition: transform var(--tr), box-shadow var(--tr);
}
.usecase-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.usecase-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-4);
}
.usecase-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.usecase-card p { color: var(--c-text-secondary); font-size: var(--fs-sm); }

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--c-border);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-5) 0;
  font-size: var(--fs-lg);
  font-weight: 500;
  text-align: start;
  color: var(--c-text);
  gap: var(--sp-4);
  transition: color var(--tr);
}
.faq-q:hover { color: var(--c-accent); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  transition: transform var(--tr);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p {
  padding-bottom: var(--sp-5);
  color: var(--c-text-secondary);
  font-size: var(--fs-base);
}

/* Contact */
.contact-content {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.contact-content p { color: var(--c-text-secondary); margin-bottom: var(--sp-6); }
.contact-email {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--c-accent);
  display: block;
  margin-bottom: var(--sp-2);
}
.email-plain {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-4);
  display: block;
  user-select: all;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  background: var(--c-surface);
  transition: all var(--tr);
}
.copy-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.copy-btn.copied { border-color: var(--c-now); color: var(--c-now); }

/* Footer */
.site-footer {
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--c-border);
  text-align: center;
}
.site-footer p { font-size: var(--fs-sm); color: var(--c-text-muted); }
.site-footer p + p { margin-top: var(--sp-2); }

/* ═════════════════════════════════════════════════
   TIMELINE PAGE
   ═════════════════════════════════════════════════ */

/* Timeline Header */
.tl-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-4) 0;
}
.tl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.tl-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.tl-back {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  transition: all var(--tr);
}
.tl-back:hover { border-color: var(--c-text); color: var(--c-text); }

/* Event Info Bar */
.tl-event-bar {
  background: var(--c-text);
  color: var(--c-bg);
  padding: var(--sp-5) 0;
}
.tl-event-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.tl-event-info h1 { font-size: var(--fs-xl); font-weight: 600; }
.tl-event-meta {
  display: flex;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
  opacity: .8;
  flex-wrap: wrap;
}
.tl-event-actions { display: flex; gap: var(--sp-3); align-items: center; }
.tl-share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: #fff;
  transition: all var(--tr);
}
.tl-share-btn:hover { background: rgba(255,255,255,.1); }
.tl-share-btn.copied { border-color: var(--c-now); color: #6ee7b7; }

/* Clock Bar */
.tl-clock-bar {
  background: var(--c-surface-alt);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border);
}
.tl-clock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}
.tl-clock {
  font-weight: 600;
  font-size: var(--fs-lg);
  font-variant-numeric: tabular-nums;
}
.tl-tz { color: var(--c-text-muted); font-size: var(--fs-xs); }
.tl-updated { color: var(--c-text-muted); }

/* Controls Bar */
.tl-controls {
  padding: var(--sp-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.tl-filters { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.tl-select {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: var(--ff);
  font-size: var(--fs-sm);
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
}
.tl-toggles { display: flex; gap: var(--sp-4); align-items: center; }
.tl-toggle-group {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
}
.toggle-switch {
  position: relative;
  width: 40px; height: 22px;
  border-radius: var(--radius-full);
  background: var(--c-border);
  transition: background var(--tr);
  cursor: pointer;
}
.toggle-switch.active { background: var(--c-now); }
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: inset-inline-start var(--tr);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle-switch.active::after { inset-inline-start: 20px; }

/* Timeline Layout */
.tl-body { padding: var(--sp-6) 0 var(--sp-16); }

/* Two-column on desktop */
@media (min-width: 1024px) {
  .tl-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--sp-8);
    align-items: start;
  }
}

/* Sidebar NOW/NEXT */
.tl-sidebar { position: sticky; top: 70px; }
.tl-sidebar-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-4);
}
.tl-sidebar .session-card { margin-bottom: var(--sp-4); }

/* Also Live */
.tl-also-live {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--c-border);
}
.tl-also-live-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-also-live);
  margin-bottom: var(--sp-3);
}

/* Schedule */
.tl-schedule-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-4);
}

/* Session Card */
.session-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  padding: var(--sp-5);
  transition: transform var(--tr), box-shadow var(--tr);
}
.session-card:hover { box-shadow: var(--shadow-sm); }
.session-card + .session-card { margin-top: var(--sp-3); }
.session-card.status-now {
  border-color: var(--c-now);
  border-width: 2px;
  background: var(--c-now-bg);
}
.session-card.status-next {
  border-color: var(--c-next);
  border-width: 2px;
  background: var(--c-next-bg);
}
.session-card.status-done { opacity: .65; }
.session-card.status-also-live {
  border-color: var(--c-also-live);
  background: var(--c-also-live-bg);
}
.session-card.sidebar-card {
  padding: var(--sp-6);
}
.session-card.sidebar-card .session-title { font-size: var(--fs-xl); }

.session-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.session-time { font-size: var(--fs-sm); font-weight: 500; color: var(--c-text-secondary); font-variant-numeric: tabular-nums; }
.session-badge {
  display: inline-flex;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge-now { background: var(--c-now); color: #fff; }
.badge-next { background: var(--c-next); color: #fff; }
.badge-done { background: var(--c-done-bg); color: var(--c-done); }
.badge-also-live { background: var(--c-also-live); color: #fff; }

.session-title { font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--sp-2); }
.session-meta { display: flex; gap: var(--sp-4); font-size: var(--fs-sm); color: var(--c-text-muted); flex-wrap: wrap; }
.session-meta-item { display: flex; align-items: center; gap: var(--sp-1); }

/* Empty state */
.tl-empty {
  text-align: center;
  padding: var(--sp-12);
  color: var(--c-text-muted);
  font-size: var(--fs-lg);
}

/* ═════════════════════════════════════════════════
   VENUE SCREEN MODE
   ═════════════════════════════════════════════════ */
body.venue-mode {
  --fs-base: 1.15rem;
  --fs-lg: 1.35rem;
  --fs-xl: 1.6rem;
  --fs-2xl: 2rem;
}
body.venue-mode .tl-sidebar .session-card.sidebar-card {
  padding: var(--sp-8);
}
body.venue-mode .tl-sidebar .session-card.sidebar-card .session-title {
  font-size: var(--fs-2xl);
}
body.venue-mode .tl-sidebar .session-badge {
  font-size: var(--fs-sm);
  padding: var(--sp-2) var(--sp-4);
}

/* ═════════════════════════════════════════════════
   404 PAGE
   ═════════════════════════════════════════════════ */
.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--sp-8);
}
.page-404 h1 { font-size: var(--fs-4xl); margin-bottom: var(--sp-4); }
.page-404 p { color: var(--c-text-secondary); margin-bottom: var(--sp-8); }

/* ═════════════════════════════════════════════════
   RESPONSIVE FINE-TUNING
   ═════════════════════════════════════════════════ */
@media (max-width: 639px) {
  .hero h1 { font-size: var(--fs-3xl); }
  .hero p { font-size: var(--fs-base); }
  .section { padding: var(--sp-10) 0; }
  .section-header h2 { font-size: var(--fs-2xl); }
  .tl-event-info h1 { font-size: var(--fs-lg); }
}

/* 16:9 large displays */
@media (min-width: 1440px) {
  :root {
    --fs-base: 1.05rem;
    --max-w: 1320px;
  }
}

/* ═════════════════════════════════════════════════
   PRINT
   ═════════════════════════════════════════════════ */
@media print {
  .site-header, .tl-controls, .tl-toggles, .tl-share-btn, .lang-toggle, .tl-back { display: none !important; }
  .session-card { break-inside: avoid; border: 1px solid #ccc !important; }
  .tl-layout { display: block !important; }
  body { background: #fff; }
}
