/* ==========================================================================
   TEDxEmiratesHills Event Hub - event.tedxemirateshills.com
   Ultra-fast, responsive, modern single-page archive
   ========================================================================== */

:root {
  --ted-red: #eb0028;
  --ted-red-hover: #ff1a3d;
  --ted-red-glow: rgba(235, 0, 40, 0.25);
  --ted-red-soft: rgba(235, 0, 40, 0.1);

  --bg-dark: #0a0a0e;
  --bg-darker: #050508;
  --bg-card: #13131a;
  --bg-card-hover: #1a1a24;
  --bg-glass: rgba(19, 19, 26, 0.75);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-active: rgba(235, 0, 40, 0.5);

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(235, 0, 40, 0.25);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  background: radial-gradient(circle at 50% 0%, #1a080c 0%, var(--bg-dark) 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: inherit;
}

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

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--ted-red-soft);
  color: var(--ted-red);
  border: 1px solid rgba(235, 0, 40, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-main-site {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-main-site:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 3.5rem 0 2rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(235, 0, 40, 0.12);
  border: 1px solid rgba(235, 0, 40, 0.3);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  color: #ff526c;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ted-red);
  box-shadow: 0 0 10px var(--ted-red);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-title .highlight-red {
  color: var(--ted-red);
  position: relative;
  display: inline-block;
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.stats-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-pill strong {
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   STICKY YEAR QUICK-NAV & SEARCH BAR
   ========================================================================== */

.sticky-nav-bar {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  margin-bottom: 2.5rem;
  transition: var(--transition);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.year-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.year-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.year-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.year-pill-btn.active {
  background: var(--ted-red);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--ted-red-glow);
}

.year-pill-btn .year-tag {
  font-size: 0.68rem;
  opacity: 0.85;
  font-weight: 500;
}

.quick-search-wrap {
  position: relative;
  min-width: 260px;
  flex-grow: 1;
  max-width: 360px;
}

.quick-search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.quick-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  padding: 0.48rem 1rem 0.48rem 2.4rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.quick-search-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ted-red);
  box-shadow: 0 0 12px var(--ted-red-glow);
}

.quick-search-input::placeholder {
  color: var(--text-dim);
}

/* ==========================================================================
   UPCOMING / FUTURE TEASER (2027)
   ========================================================================== */

.upcoming-teaser-banner {
  background: linear-gradient(135deg, rgba(235, 0, 40, 0.08) 0%, rgba(20, 20, 28, 0.6) 100%);
  border: 1px dashed rgba(235, 0, 40, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.teaser-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.teaser-badge {
  background: var(--ted-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.teaser-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.teaser-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.teaser-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #ffffff;
  border: 1px solid var(--border-card);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.teaser-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* ==========================================================================
   EVENT EDITION SECTION (2026, 2025, 2024)
   ========================================================================== */

.event-edition-section {
  scroll-margin-top: 150px;
  margin-bottom: 4rem;
  position: relative;
}

.event-edition-section::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin-top: 4rem;
}

.event-edition-section:last-of-type::after {
  display: none;
}

/* Edition Header Card */
.edition-banner {
  background: linear-gradient(135deg, #181822 0%, #121219 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.edition-banner:hover {
  border-color: rgba(235, 0, 40, 0.35);
}

.edition-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--ted-red);
}

.banner-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.edition-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.edition-year {
  font-size: 2.25rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.edition-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.badge-latest {
  background: var(--ted-red);
  color: #ffffff;
  box-shadow: 0 0 12px var(--ted-red-glow);
}

.badge-archive {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-edition-site {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(235, 0, 40, 0.12);
  color: #ff4d66;
  border: 1px solid rgba(235, 0, 40, 0.3);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-edition-site:hover {
  background: var(--ted-red);
  color: #ffffff;
  border-color: var(--ted-red);
  box-shadow: 0 4px 15px var(--ted-red-glow);
  transform: translateY(-1px);
}

.edition-theme-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.theme-label {
  color: var(--ted-red);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Event Meta Strip (Date & Location) */
.event-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item svg {
  color: var(--ted-red);
  flex-shrink: 0;
}

.meta-item strong {
  color: #ffffff;
  font-weight: 600;
}

.meta-link {
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border-card);
  transition: var(--transition);
}

.meta-link:hover {
  color: #ffffff;
  border-bottom-color: var(--ted-red);
}

/* ==========================================================================
   SECTION HEADINGS INSIDE EDITIONS
   ========================================================================== */

.sub-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sub-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.sub-section-title .title-accent {
  color: var(--ted-red);
}

.sub-section-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   SPEAKER GRID & CARDS (COMPACT & BEAUTIFUL)
   ========================================================================== */

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.speaker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.speaker-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(235, 0, 40, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6), 0 0 15px rgba(235, 0, 40, 0.15);
}

.speaker-avatar-wrap {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  position: relative;
  margin-bottom: 1rem;
  padding: 3px;
  background: linear-gradient(135deg, rgba(235, 0, 40, 0.8), rgba(255, 255, 255, 0.1));
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.speaker-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #1b1b22;
  transition: var(--transition);
}

.speaker-card:hover .speaker-img {
  transform: scale(1.04);
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b0b12, #181822);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ted-red);
  letter-spacing: 0.05em;
}

.speaker-role-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.tag-guest {
  background: rgba(235, 0, 40, 0.15);
  color: #ff4d66;
  border: 1px solid rgba(235, 0, 40, 0.3);
}

.tag-performer {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.tag-team {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.speaker-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.speaker-designation {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: auto;
}

/* ==========================================================================
   PARTNERS & SPONSORS GRID (COMPACT)
   ========================================================================== */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.partner-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.partner-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.partner-logo {
  max-height: 52px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.92) contrast(1.05);
  transition: var(--transition);
}

.partner-card:hover .partner-logo {
  filter: brightness(1) contrast(1.1);
  transform: scale(1.03);
}

.partner-name-fallback {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  max-width: 440px;
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 0.85rem;
}

.tedx-disclaimer {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.footer-link {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--ted-red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
}

.credit-link {
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
}

.credit-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--ted-red);
  border-color: var(--ted-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--ted-red-glow);
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 768px) {
  .nav-container {
    height: 64px;
  }

  .brand-logo {
    height: 30px;
  }

  .brand-badge {
    display: none;
  }

  .hero-section {
    padding: 2.25rem 0 1.5rem;
  }

  .sticky-nav-bar {
    top: 64px;
    padding: 0.6rem 0;
  }

  .nav-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .year-pills-wrap {
    justify-content: center;
    width: 100%;
  }

  .year-pill-btn {
    flex: 1;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }

  .quick-search-wrap {
    max-width: 100%;
  }

  .edition-banner {
    padding: 1.25rem;
  }

  .edition-year {
    font-size: 1.85rem;
  }

  .edition-theme-text {
    font-size: 1rem;
  }

  .event-meta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .speaker-card {
    padding: 1rem 0.75rem;
  }

  .speaker-avatar-wrap {
    width: 86px;
    height: 86px;
  }

  .speaker-name {
    font-size: 0.95rem;
  }

  .speaker-designation {
    font-size: 0.76rem;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .partner-card {
    height: 75px;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .speakers-grid {
    grid-template-columns: 1fr;
  }

  .speaker-avatar-wrap {
    width: 96px;
    height: 96px;
  }
}
