@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg: #000;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --border: rgba(255,255,255,0.08);
  --text: #bdccd4;
  --text-dim: #6b7f89;
  --text-bright: #e8f1f5;
  --yellow: #e7ff00;
  --green: #24ff00;
  --lime: #c8ff00;
  --blue: #00e1e8;
  --gradient: linear-gradient(90deg, #e7ff00, #24ff00);
  --gradient-diag: linear-gradient(135deg, #e7ff00 0%, #c8ff00 50%, #24ff00 100%);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--yellow); }

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

/* ─── LAYOUT ─────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HEADER ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.back-link:hover { color: var(--yellow); }
.back-link svg { width: 16px; height: 16px; }

/* ─── HERO ───────────────────────────────── */
.event-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.event-hero .date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 28px;
}
.event-hero .date-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--blue);
}

.event-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.event-hero h1 .gradient-text {
  background: var(--gradient-diag);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.event-hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── COVER IMAGE ────────────────────────── */
.cover-block {
  text-align: center;
}
.cover-block img {
  display: inline-block;
  width: auto;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}

.cover-block {
  width: 100%;
  /* x-height: clamp(220px, 40vw, 480px); removed to control size explicitly */
  overflow: hidden;
  position: relative;
}

.cover-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cover-placeholder svg.solar-motif {
  position: absolute;
  width: 60%;
  max-width: 500px;
  opacity: 0.06;
}

.cover-placeholder .cover-label {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  padding: 0 24px;
  letter-spacing: -0.01em;
}

/* ─── SECTIONS ───────────────────────────── */
.section {
  padding: 80px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin-bottom: 48px;
}

/* ─── AGENDA CARDS ───────────────────────── */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agenda-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: border-color 0.2s;
}

.agenda-card:hover {
  border-color: rgba(231,255,0,0.25);
}

.agenda-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.agenda-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.01em;
}

.type-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.type-badge.panel      { background: rgba(0,225,232,0.12); color: var(--blue); border: 1px solid rgba(0,225,232,0.3); }
.type-badge.keynote    { background: rgba(231,255,0,0.1);  color: var(--yellow); border: 1px solid rgba(231,255,0,0.3); }
.type-badge.workshop   { background: rgba(36,255,0,0.1);   color: var(--green); border: 1px solid rgba(36,255,0,0.3); }
.type-badge.deschidere { background: rgba(189,204,212,0.08); color: var(--text-dim); border: 1px solid var(--border); }

.agenda-themes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agenda-themes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}

.agenda-themes li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gradient);
  margin-top: 8px;
  flex-shrink: 0;
}

.agenda-card.keynote-card .keynote-speaker-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yellow);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.agenda-card.keynote-card .keynote-speaker-link:hover { opacity: 1; }

/* ─── SPEAKER CARDS ──────────────────────── */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.speaker-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.speaker-card:hover {
  border-color: rgba(231,255,0,0.2);
  transform: translateY(-2px);
}

.speaker-card.tbd {
  opacity: 0.5;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  background: var(--gradient-diag);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
  border: 2px solid var(--border);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-name {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.speaker-role {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 2px;
  line-height: 1.4;
}

.speaker-company {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.speaker-tbd-label {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 8px;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.linkedin-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.linkedin-link svg { width: 15px; height: 15px; }

.keynote-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(231,255,0,0.1);
  color: var(--yellow);
  border: 1px solid rgba(231,255,0,0.3);
  margin-bottom: 10px;
}

/* ─── CTA SECTION ────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.cta-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #000;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ─── GALLERY ────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.gallery-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-thumb:hover img { transform: scale(1.04); }

.gallery-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-thumb:hover::after { opacity: 1; }

/* ─── YOUTUBE EMBEDS ─────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.video-embed {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── LIGHTBOX ───────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--text-bright); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
}
.lightbox-nav:hover { background: rgba(231,255,0,0.15); color: var(--yellow); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ─── FOOTER ─────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer .copyright {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--yellow); }

/* ─── EVENT LISTING (index.html) ─────────── */
.listing-hero {
  padding: 64px 0 48px;
}

.listing-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.listing-hero p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.listing-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.event-card:hover {
  border-color: rgba(231,255,0,0.25);
  transform: translateY(-2px);
}

.event-card-cover {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}

.event-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-cover .card-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card-cover .card-cover-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.15;
}

.event-card-body {
  padding: 24px;
}

.event-card-status {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 12px;
}

.event-card-status.upcoming { background: rgba(231,255,0,0.1); color: var(--yellow); border: 1px solid rgba(231,255,0,0.3); }
.event-card-status.past     { background: rgba(189,204,212,0.08); color: var(--text-dim); border: 1px solid var(--border); }

.event-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.35;
}

.event-card-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 640px) {
  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agenda-card {
    padding: 20px;
  }

  .site-footer .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .lightbox-nav { display: none; }
}

/* ─── UTILS ──────────────────────────────── */
.gradient-text {
  background: var(--gradient-diag);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
