/* =========================================================
   Thompson Visual — Unified Design System Stylesheet
   Balanced Rhythm • 8px Spacing Scale • Modern Layout
   ========================================================= */

/* ---------------------------------------------------------
   1. ROOT TOKENS — COLOR, TYPOGRAPHY, SPACING, RADII
   --------------------------------------------------------- */

:root {
  /* Colors */
  --bg: #69BAC9;
  --card: #41273B;
  --accent: #FFD712;
  --text: #f5f5f7;
  --muted: #e8e8e8;
  --link-bg: #69BAC9;

  /* Typography scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.4rem;

  /* Spacing scale (8px base) */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 48px;

  /* Radii */
  --radius: 12px;
  --radius-pill: 999px;

  /* Layout */
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --site-max-width: 480px;
  --btn-width: 340px;
}

/* ---------------------------------------------------------
   2. RESET / BASE
   --------------------------------------------------------- */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-lg);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------
   3. LAYOUT CONTAINERS
   --------------------------------------------------------- */

.page {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
}

.container-narrow {
  width: min(var(--btn-width), 100%);
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------
   4. CARD
   --------------------------------------------------------- */

.card {
  background: var(--card);
  border-radius: 24px;
  padding: var(--space-lg); /* unified 24px padding */
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ---------------------------------------------------------
   5. AVATAR + HEADER
   --------------------------------------------------------- */

.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.index-page .handle,
.events-page .handle {
  font-size: var(--text-xl);
  font-weight: 700;
}

.subtitle-block {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------------------------------------------------------
   6. BUTTON SYSTEM — UNIFIED
   --------------------------------------------------------- */

.links {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.link-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--card);
  font-weight: 800;
  font-size: var(--text-sm);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;

  width: 100%;
  max-width: var(--btn-width);
  margin-left: auto;
  margin-right: auto;
}

.links .link-main:first-child {
  margin-bottom: var(--space-xs);
}

.btn-2025 {
  background: #FF974B;
}

/* Half-width buttons */
.button-row {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  width: min(var(--btn-width), 100%);
  margin: var(--space-sm) auto 0;
}

.link-half {
  flex: 1;
  text-align: center;
  padding: var(--space-sm) 0;
  border-radius: var(--radius-pill);
  background: #FF974B;
  color: var(--card);
  font-weight: 800;
  font-size: var(--text-sm);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Event card buttons */
.event-block .link-main {
  width: auto;
  max-width: none;
}

/* ---------------------------------------------------------
   7. SOCIAL ICONS
   --------------------------------------------------------- */

.circle-links {
  width: min(var(--btn-width), 100%);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: nowrap;
  padding-top: var(--space-sm);
}

.circle-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--link-bg);
  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);
}

/* ---------------------------------------------------------
   8. EVENTS GRID + CARDS
   --------------------------------------------------------- */

.events-grid {
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  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: var(--space-lg);
  }
}

.event-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: var(--space-md);
  border-radius: var(--radius);
  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: var(--text-md);
  margin-bottom: var(--space-xs);
}

.event-info {
  margin-top: auto;
  margin-bottom: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.event-meta {
  opacity: 0.9;
  font-size: var(--text-xs);
}

.event-location-wrapper {
  display: flex;
  gap: var(--space-xs);
}

.event-location-name {
  font-weight: 700;
  font-size: var(--text-sm);
}

.event-location-address {
  font-size: var(--text-xs);
  opacity: 0.85;
}

.past-event {
  opacity: 0.35;
}

.past-event .link-main {
  pointer-events: none;
  opacity: 0.35;
}

/* ---------------------------------------------------------
   9. SLIDERS (FEATURED + REVIEW)
   --------------------------------------------------------- */

.featured-slider,
.review-slider {
  width: min(var(--btn-width), 100%);
  margin: var(--space-lg) auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.slider-arrow {
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.featured-slide-wrap,
.review-slide-wrap {
  flex: 1;
  position: relative;
}

.featured-slide,
.review-slide {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
  display: none;
  opacity: 0;
}

.featured-slide.active,
.review-slide.active {
  display: block;
  opacity: 1;
}

.featured-slide img,
.review-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
}

.featured-slide h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
}

.featured-slide .price {
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--accent);
  margin: var(--space-xs) 0;
}

.featured-slide .desc {
  opacity: 0.85;
  font-size: var(--text-sm);
  line-height: 1.3;
}

.review-stars {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.review-text {
  font-size: var(--text-xs);
  opacity: 0.9;
  line-height: 1.3;
}

.review-slide {
  min-height: 360px;
}

/* ---------------------------------------------------------
   10. ABOUT PAGE
   --------------------------------------------------------- */

.about-section {
  width: min(var(--btn-width), 100%);
  margin: var(--space-xl) auto var(--space-xl);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
}

.about-photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}

.about-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.about-text {
  font-size: var(--text-md);
  line-height: 1.45;
  color: var(--muted);
}

/* ---------------------------------------------------------
   11. MOBILE RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 420px) {

  body {
    padding: var(--space-xl) var(--space-sm) var(--space-lg);
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  .handle {
    font-size: var(--text-lg);
  }

  .link-main {
    font-size: var(--text-sm);
    padding: var(--space-xs) var(--space-sm);
  }

  .circle-links {
    gap: var(--space-xxs);
  }

  .circle-links a {
    width: 30px;
    height: 30px;
  }

  .circle-links img {
    width: 16px;
    height: 16px;
  }

  .page {
    max-width: 340px;
  }
}
