/* ===== COPIED FROM index.css: Header ===== */
html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Spacing scale */
:root {
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.05);
}

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

/* Links */
a {
  color: var(--text);
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Header --- */
#header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
#header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1rem;
  max-width: 1120px;
  margin: 0 auto;
}
.header-left a {
  font-weight: 800;
  letter-spacing: 0.6px;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1;
  color: var(--text);
}
.header-left a:hover {
  text-decoration: none;
  color: var(--accent);
}
.header-right {
  display: flex;
  gap: var(--space-3);
}
.header-right a {
  padding: .4rem .6rem;
  border-radius: 8px;
  transition: background .15s ease;
}
.header-right a:hover {
  background: var(--surface-alt);
}

@media (max-width: 640px) {
  #header nav {
    height: 56px;
  }
  .header-right {
    gap: .5rem;
  }
}

/* ===== COPIED FROM index.css: Footer ===== */
/* --- Footer --- */
#footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: clamp(2rem, 6vw, 4rem);
}
#footer-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
#footer h2 {
  font-size: 18px;
  margin-top: 0;
  position: relative;
  padding-left: 0.6rem;
}

#footer h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
}
#footer p {
  margin-top: var(--space-2);
}
#footer a {
  display: inline-block;
  margin-top: .5rem;
}
#footer .contact a {
  margin-top: var(--space-3);
  padding: .6rem .9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-alt);
}
#footer .socials a,
#footer .learn-more a {
  display: block;
  margin-top: .6rem;
}
/* --- Footer contact: hover “box” like other links --- */
#footer .contact a {
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
#footer .contact a:hover {
  background: var(--surface);      /* subtle box on hover */
  border-color: var(--accent);     /* hint of accent */
  transform: translateY(-1px);
  text-decoration: none;
}

#credits {
  border-top: 1px solid var(--border);
  padding: .9rem 1rem;
  text-align: center;
  color: var(--text-soft);
}
#credits a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#credits a:hover {
  color: var(--accent);
  text-decoration: none;
}
@media (max-width: 900px) {
  #footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
}
@media (max-width: 640px) {
  #footer-content {
    grid-template-columns: 1fr;
  }
}
/* ===== PAGE: Events ===== */
.page-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3rem) 1rem 0;
}
.page-hero h1 { margin-top: 0; }
.page-hero p {
  margin-top: var(--space-2);
  color: var(--text-muted);
}

/* Optional filters row */
.events-filters {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem clamp(1rem, 4vw, 1.25rem);
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.events-filters .chip {
  padding: .45rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: .95rem;
  cursor: pointer;
  transition: transform .06s ease, border-color .15s ease, background .15s ease;
}
.events-filters .chip:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

/* Events list grid */
.events-list {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem clamp(2rem, 6vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.event-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-3);
  align-items: center;
}
.event-date {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-weight: 700;
}
.event-date .month {
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-soft);
}
.event-date .day {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text);
}
.event-body h3 { margin: 0; font-size: 1.25rem; }
.event-body .meta {
  margin-top: .25rem;
  font-size: .95rem;
  color: var(--text-soft);
}
.event-body p { margin-top: .5rem; }
.event-body .actions {
  margin-top: .75rem;
  display: flex;
  gap: .5rem;
}
.event-body .actions a {
  display: inline-block;
  padding: .55rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.event-body .actions a:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

/* Empty state */
.empty-state {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1rem;
  text-align: center;
  color: var(--text-soft);
}

/* Responsive */
@media (max-width: 900px) {
  .events-list { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 72px 1fr; }
  .event-date { width: 72px; height: 72px; }
  .event-date .day { font-size: 1.5rem; }
}
