/* -------------------------------------------------
   GLOBAL
------------------------------------------------- */

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

body {
  font-family: 'Archivo', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: #fffbf5;
  color: #1a1a1a;
  min-height: 100vh;
}

.events-root {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 1.2rem 3rem;
}


/* -------------------------------------------------
   HERO SECTION
------------------------------------------------- */

.page-hero {
  text-align: center;
  padding: 2.8rem 1.5rem 2rem;
  background: transparent;
  position: relative;
}

/* Foreground motifs — above content */
.foreground-motifs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 100;
}

.fg-motif {
  position: absolute;
  user-select: none;
}

.fg-motif-lightning {
  width: 90px;
  bottom: 12%;
  right: -18px;
  transform: rotate(12deg);
  opacity: 0.85;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.18));
}

.fg-motif-pacman {
  width: 100px;
  top: 38%;
  left: -22px;
  transform: rotate(-15deg) scaleX(-1);
  opacity: 0.9;
  filter: drop-shadow(-2px 4px 6px rgba(0,0,0,0.15));
}

@media (max-width: 600px) {
  .fg-motif-lightning { width: 64px; right: -12px; }
  .fg-motif-pacman    { width: 72px; left: -16px;  }
}

/* Scattered motifs — fixed full-page layer */
.page-motifs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

body > *:not(.page-motifs) {
  position: relative;
  z-index: 1;
}

.motif {
  position: absolute;
  opacity: 0.11;
  user-select: none;
}

/* Lightning bolt — far left, near top */
.motif-1  { width: 64px;  top: 4%;   left: 3%;    transform: rotate(-15deg); }
/* Starburst — far right, near top */
.motif-2  { width: 88px;  top: 3%;   right: 4%;   transform: rotate(10deg);  }
/* Purple star — left-center, high */
.motif-3  { width: 70px;  top: 12%;  left: 22%;   transform: rotate(-22deg); opacity: 0.09; }
/* Diamond — right-center, high */
.motif-4  { width: 58px;  top: 14%;  right: 20%;  transform: rotate(8deg);   }
/* 4-point star — center */
.motif-5  { width: 52px;  top: 8%;   left: 50%;   transform: rotate(20deg);  opacity: 0.08; }
/* Moon — far right, upper-mid */
.motif-6  { width: 72px;  top: 28%;  right: 6%;   transform: rotate(-30deg); }
/* Green star — left, mid */
.motif-7  { width: 66px;  top: 38%;  left: 8%;    transform: rotate(18deg);  }
/* Pink ring — right-center, mid */
.motif-8  { width: 80px;  top: 32%;  right: 24%;  transform: rotate(-5deg);  opacity: 0.09; }
/* Outline star — center-left, lower-mid */
.motif-9  { width: 60px;  top: 52%;  left: 28%;   transform: rotate(-12deg); }
/* Blue arc — far right, lower-mid */
.motif-10 { width: 74px;  top: 58%;  right: 5%;   transform: rotate(25deg);  }
/* Green arc — far left, lower */
.motif-11 { width: 68px;  top: 68%;  left: 4%;    transform: rotate(-20deg); }
/* Pink arc — center-right, lower */
.motif-12 { width: 60px;  top: 74%;  right: 28%;  transform: rotate(40deg);  }
/* Orange pacman — center, mid */
.motif-13 { width: 76px;  top: 46%;  left: 55%;   transform: rotate(-8deg);  opacity: 0.09; }
/* Yellow pacman — center-left, bottom */
.motif-14 { width: 70px;  top: 84%;  left: 18%;   transform: rotate(15deg);  }
/* Blue blob — far right, bottom */
.motif-15 { width: 90px;  top: 87%;  right: 3%;   transform: rotate(-18deg); opacity: 0.08; }
/* Cream blob — center-right, bottom */
.motif-16 { width: 80px;  top: 92%;  left: 60%;   transform: rotate(30deg);  opacity: 0.08; }

@media (max-width: 600px) {
  .motif { opacity: 0.08; }
  .motif-1  { width: 44px; }
  .motif-2  { width: 56px; }
  .motif-3, .motif-5, .motif-8, .motif-13 { display: none; }
  .motif-4  { width: 40px; }
  .motif-6  { width: 50px; }
  .motif-7  { width: 46px; }
  .motif-9  { width: 42px; }
  .motif-10 { width: 50px; }
  .motif-11 { width: 46px; }
  .motif-12 { width: 42px; }
  .motif-14 { width: 48px; }
  .motif-15 { width: 58px; }
  .motif-16 { width: 54px; }
}


.hero-logo {
  width: clamp(200px, 55vw, 420px);
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
}

.page-hero .tagline {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  color: #444;
  margin: 0.5rem 0 1.4rem;
  line-height: 1.55;
}

.page-hero h2 {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: 0.02em;
}

.page-hero hr {
  border: none;
  border-top: 1.5px solid #e0e0e0;
  margin: 1.2rem auto;
  max-width: 320px;
}

/* Social Row */
.social-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.8rem 0 1.2rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  border-color: #aaaaaa;
}

.social-icon img {
  display: block;
  width: 22px;
  height: 22px;
  opacity: 0.9;
  transition: opacity 0.18s ease;
}

.social-icon:hover img {
  opacity: 1;
}

@media (max-width: 480px) {
  .social-icon {
    width: 38px;
    height: 38px;
  }
  .social-icon img {
    width: 19px;
    height: 19px;
  }
}


/* -------------------------------------------------
   EVENT CARDS
------------------------------------------------- */

.event-card {
  border: 1.5px solid #e0e0e0;
  padding: 0;
  border-radius: 0;
  margin-bottom: 1.6rem;
  background: #fff;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
}

.event-card-body {
  padding: 1.3rem 1.5rem 1.4rem;
}

@media (max-width: 480px) {
  .event-card-body {
    padding: 1rem 1.1rem 1.2rem;
  }
}

.empty-state {
  text-align: center;
  color: #7a6a5a;
  font-size: 1.1rem;
  margin: 4rem 0;
  padding: 2.5rem;
  background: #fff;
  border: 1.5px dashed #e0e0e0;
}

.empty-state h2 {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.warning {
  font-size: 0.88rem;
  color: #999;
  margin-top: 0.8rem;
}


/* -------------------------------------------------
   EVENT KEY
------------------------------------------------- */

.event-key {
  display: flex;
  gap: 0.6rem;
  max-width: 780px;
  margin: 0 auto 1.8rem;
  padding: 0 1.2rem;
  flex-wrap: wrap;
}

.event-key-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  padding: 0.55rem 0.9rem;
  flex: 1;
  min-width: 140px;
}

.event-key-item strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.event-key-item p {
  margin: 0;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.3;
}

.event-key-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
}

.dot-show     { background: #f5c400; }
.dot-jam      { background: #2ecc71; }
.dot-workshop { background: #2563eb; }


/* -------------------------------------------------
   EVENT TYPE BADGE + STRIP
------------------------------------------------- */

.event-type-show     { border-top: 4px solid #f5c400; }
.event-type-jam      { border-top: 4px solid #2ecc71; }
.event-type-workshop { border-top: 4px solid #2563eb; }

.event-type-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.55rem;
  border: 1.5px solid currentColor;
}

.event-type-show     .event-type-badge { color: #c9a100; }
.event-type-jam      .event-type-badge { color: #1faa58; }
.event-type-workshop .event-type-badge { color: #2563eb; }


/* -------------------------------------------------
   EVENT IMAGE (POSTER)
------------------------------------------------- */

.event-image {
  width: 100%;
  background: #f0f0f0;
  overflow: hidden;
  line-height: 0;
}

.event-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.025);
}

@media (max-width: 480px) {
  .event-image img {
    max-height: 240px;
  }
}


/* -------------------------------------------------
   EVENT TEXT
------------------------------------------------- */

.event-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  line-height: 1.2;
  color: #1a1a1a;
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 0.22rem 0.65rem;
  margin-bottom: 0.8rem;
}

.event-excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
  color: #444;
}


/* -------------------------------------------------
   BUTTONS
------------------------------------------------- */

.event-buttons {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.58rem 1.1rem;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  letter-spacing: 0.01em;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary {
  background: #1a1a1a;
  color: #fff;
  border: 1.5px solid #1a1a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.btn-primary:hover {
  background: #000;
  border-color: #000;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.28);
}

.btn-ghost {
  border: none;
  color: #999;
  background: transparent;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.btn-ghost:hover {
  color: #444;
}


/* -------------------------------------------------
   PROMO CARD
------------------------------------------------- */

.promo-card {
  background: linear-gradient(135deg, #f5f5f5 0%, #f5f5f5 100%);
  border-color: #e0e0e0;
  border-style: dashed;
}

.promo-card .event-title {
  color: #1a1a1a;
}


/* -------------------------------------------------
   FOOTER
------------------------------------------------- */

.footer {
  text-align: center;
  font-size: 0.82rem;
  color: #b0a09a;
  padding: 2rem 0 1.2rem;
  letter-spacing: 0.02em;
}

.footer a {
  color: #8a7a72;
  text-decoration: none;
}

.footer a:hover {
  color: #1a1a1a;
}
