:root {
  --bg: #f4f4f5;
  --card: #ffffff;
  --text: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --primary: #111111;
  --primary-soft: #27272a;
  --accent: #facc15;
  --accent-soft: #fef9c3;
  --accent-border: #fde68a;
  --green: #16a34a;
  --purple: #7c3aed;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.20), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.12), transparent 28rem),
    var(--bg);
  line-height: 1.65;
}

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

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

.top-actions,
.hero-actions,
.event-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-actions { justify-content: flex-end; }
.hero-actions { margin-top: 22px; }
.event-actions { gap: 8px; }
.footer-links { justify-content: center; gap: 8px 12px; margin-top: 18px; }

.pill-link,
.button,
.event-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.pill-link:hover,
.button:hover,
.event-actions a:hover {
  background: white;
  border-color: #d4d4d8;
}

.button.primary,
.event-actions a.primary {
  border-color: transparent;
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.18);
}

.button.green {
  border-color: transparent;
  background: var(--green);
  color: white;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}

.event-actions a.instagram {
  border-color: transparent;
  background: #c13584;
  color: white;
}

.event-actions a.secondary {
  border-color: transparent;
  background: #475569;
  color: white;
}

.card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  padding: 46px 46px 34px;
  color: white;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.98), rgba(39, 39, 42, 0.94)),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.55), transparent 20rem),
    radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.35), transparent 18rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: 17px;
}

.content { padding: 30px 46px 46px; }

.notice-box {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--accent-border);
  border-radius: 18px;
  background: var(--accent-soft);
  color: #713f12;
}

.notice-box p { margin: 0; color: #713f12; }
.notice-box p + p { margin-top: 8px; }

.events-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #e4e4e7;
  border-radius: 18px;
  background: #fafafa;
}

.search-box,
.select-box {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  outline: none;
}

.search-box:focus,
.select-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.20);
}

.agenda-summary {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(250, 204, 21, 0.035), transparent 110px),
    #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  border-color: #d4d4d8;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
}

.event-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.event-date-box {
  display: grid;
  place-items: center;
  min-width: 78px;
  padding: 10px 8px;
  border-radius: 18px;
  background: #0f172a;
  color: #facc15;
  text-align: center;
  font-weight: 950;
  line-height: 1.1;
}

.event-day { font-size: 26px; }
.event-month { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.event-year { color: rgba(255,255,255,0.76); font-size: 12px; }

.event-main { min-width: 0; flex: 1; }

.event-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.event-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  background: #fafafa;
  color: #52525b;
  font-size: 13px;
  font-weight: 700;
}

.event-location-details,
.event-description {
  color: var(--muted);
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.5;
}

.event-location-details {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3b82f6;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.visible {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.empty-state {
  padding: 24px;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: #eff6ff;
  color: #1e3a8a;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.footer-links,
.footer-links a,
.footer-note {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer-links a {
  color: #2563eb;
  font-weight: 850;
  text-decoration: none;
}

.footer-note {
  margin-top: 12px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 20px, 1040px); padding: 18px 0; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .top-actions { width: 100%; justify-content: stretch; }
  .pill-link { flex: 1; }
  .hero, .content { padding-left: 22px; padding-right: 22px; }
  .hero { padding-top: 32px; }
  .events-toolbar { grid-template-columns: 1fr; }
  .event-top { flex-direction: column; }
  .event-date-box {
    width: 100%;
    grid-template-columns: auto auto auto;
    justify-content: center;
    gap: 8px;
  }
  .event-day { font-size: 22px; }
  .event-meta-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .event-meta-row span {
    border-radius: 12px;
  }
  .event-actions a { width: 100%; }
}
