/* styles.css — authoritative stylesheet for both pages */

:root{
  --bg: #69BAC9;
  --card: #41273B;
  --accent: #FFD712;
  --text: #f5f5f7;
  --muted: #e8e8e8;
  --link-bg: #69BAC9;
  --radius: 12px;
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --site-max-width: 480px;
  --btn-width: 340px;
  --gap: 14px;
  --icon-count: 8;
}

/* Reset / base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* GLOBAL LAYOUT — top aligned + horizontally centered */
body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page container */
.page {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
}

/* Card */
.card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px 20px 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Avatar */
.avatar-wrap { display:flex; justify-content:center; margin-bottom:16px; }
.avatar { width:96px; height:96px; border-radius:50%; overflow:hidden; }
.avatar img { width:100%; height:100%; object-fit:cover; }

/* Header */
.header { text-align:center; margin-bottom:16px; }

/* MATCH HEADER SIZE ACROSS BOTH PAGES */
.index-page .handle,
.events-page .handle {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
}

.subtitle-block { margin-top:6px; font-size:0.95rem; color:var(--muted); }

/* Buttons */
.links {
  margin-top:20px;
  display:flex;
  flex-direction:column;
  gap:3px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.link-main {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  background:var(--accent);
  color:var(--card);
  font-weight:800;
  font-size:0.95rem;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:0.12em;
  width: 100%;
}

.btn-2025 { background:#FF974B !important; }

/* HARD-LOCK SHOP NOW WIDTH ON INDEX */
.index-page .links .link-main:first-child {
  width: var(--btn-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Spacing below SHOP NOW */
.links .link-main:first-child {
  margin-bottom: 3px;
}

/* Two-button row (half-width buttons) */
.button-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(var(--btn-width), 100%);
  margin: 6px auto 0;
}

.link-half {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--card);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Social icon row — single line, fits within button width */
.circle-links {
  width: min(var(--btn-width), 100%);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding-top: 6px;
}

.circle-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #69BAC9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.circle-links a:hover {
  transform: scale(1.08);
}

.circle-links img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* Mobile-only fix: ensure icons fit exactly within button width */
@media (max-width: 420px) {
  .circle-links {
    gap: 6px;
  }

  .circle-links a {
    width: 30px;
    height: 30px;
  }

  .circle-links img {
    width: 16px;
    height: 16px;
  }
}

/* Events grid */
.events-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(var(--btn-width), 100%);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 720px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Event block */
.event-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 16px 18px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  transition: opacity 0.28s ease, transform 180ms ease;
}
.event-block:hover { transform: translateY(-4px); }

.event-title { font-weight:700; font-size:1rem; margin-bottom:8px; }
.event-info { margin-top:auto; margin-bottom:10px; display:flex; flex-direction:column; gap:6px; }
.event-meta { opacity:0.9; font-size:0.78rem; }
.event-location-wrapper { display:flex; gap:8px; }
.event-location-name { font-weight:700; font-size:0.86rem; }
.event-location-address { font-size:0.78rem; opacity:0.85; }

/* Event button */
.event-block .link-main {
  font-size: 0.78rem;
  padding: 6px 10px;
  width: auto;
  border-radius: 8px;
  text-transform: none;
}

/* Past events */
.past-event { opacity: 0.35; }
.past-event .link-main { pointer-events:none; opacity:0.35; }

/* Mobile tweaks */
@media (max-width: 420px) {
  body { padding: 28px 12px 20px; }
  .avatar { width:80px; height:80px; }
  .handle { font-size:1.2rem; }
  .link-main { font-size:0.9rem; padding:10px 14px; }
}

/* EVENTS PAGE OVERRIDES */
.events-page .avatar {
  width: 96px !important;
  height: 96px !important;
}

/* MOBILE OVERRIDES — match index exactly */
@media (max-width: 420px) {

  .events-page .page,
  .index-page .page {
    max-width: 340px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .events-page,
  .index-page {
    padding-top: 48px !important;
  }

  .events-page .handle,
  .index-page .handle {
    font-size: 1.4rem !important;
  }

  .events-page .link-main,
  .index-page .link-main {
    font-size: 0.95rem !important;
    padding: 12px 18px !important;
  }

  .events-page .avatar,
  .index-page .avatar {
    width: 96px !important;
    height: 96px !important;
  }
}
