/* ============================================================
   EVENTS PAGE — Events calendar, filters, featured event,
   event cards, capacity indicators, sold-out states.
   Matches dark wine aesthetic of СердцеВина&meat95.
   ============================================================ */

/* ============================================================
   EVENTS HERO (extends .page-hero)
   ============================================================ */
.events-hero {
  background:
    radial-gradient(ellipse 55% 40% at 30% 55%, rgba(92, 26, 42, 0.42) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 75% 35%, rgba(58, 14, 27, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 35% 25% at 55% 90%, rgba(212, 175, 55, 0.08) 0%, transparent 70%),
    var(--bg-deep);
}

/* ============================================================
   EVENTS CATALOG WRAPPER
   ============================================================ */
.events-catalog {
  position: relative;
  padding-bottom: var(--section-pad);
}

/* ============================================================
   FILTER BAR — Sticky below nav
   ============================================================ */
.events-filters {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 5, 8, 0.88);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding: 20px 0;
  transition: box-shadow 0.4s var(--ease);
}
.events-filters.scrolled {
  box-shadow: 0 8px 40px -12px rgba(0, 0, 0, 0.6);
}
.events-filters-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.events-filters .filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.events-filters .events-count {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   EVENTS CONTENT WRAPPER
   ============================================================ */
.events-wrap {
  width: var(--container);
  margin: 0 auto;
  padding-top: 48px;
}

/* ============================================================
   FEATURED EVENT — Large hero-style card at top
   ============================================================ */
.events-featured {
  margin-bottom: 72px;
}
.events-featured-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 56px;
  padding: 56px;
  background:
    linear-gradient(135deg, rgba(92, 26, 42, 0.55), rgba(26, 10, 15, 0.3)),
    radial-gradient(ellipse at bottom right, rgba(212, 175, 55, 0.15), transparent 60%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
}
.events-featured-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 160%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05), transparent 60%);
  animation: featuredGlow 28s linear infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes featuredGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Left: big date block */
.events-featured-card .event-date-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  padding: 32px 20px;
  background: rgba(13, 5, 8, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 2px;
  position: relative;
  z-index: 1;
}
.event-date-big .day {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 400;
  line-height: 0.9;
  color: var(--gold);
  letter-spacing: -0.04em;
}
.event-date-big .month {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
}
.event-date-big .weekday {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 6px;
}
.event-date-big .time {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  width: 100%;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Center: title + description + highlights */
.events-featured-card .featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  z-index: 1;
}
.events-featured-card .event-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 24px;
}
.events-featured-card .event-type-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--wine);
  border-radius: 50%;
  animation: pulseDot 1.8s ease-in-out infinite;
}
.events-featured-card h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.events-featured-card h2 em {
  font-style: italic;
  color: var(--gold);
}
.events-featured-card .featured-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream-muted);
  max-width: 540px;
  margin-bottom: 28px;
}
.events-featured-card .highlights-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-bottom: 0;
}
.highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--cream);
  list-style: none;
}
.highlights-list li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 10px;
}

/* Right: price + capacity + CTA */
.events-featured-card .featured-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  min-width: 220px;
  padding-left: 40px;
  border-left: 1px solid rgba(212, 175, 55, 0.15);
  z-index: 1;
}
.events-featured-card .featured-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.featured-price .price-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.featured-price .price-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.featured-price .price-unit {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Capacity indicator */
.event-capacity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-capacity .capacity-text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.event-capacity .capacity-text .num {
  color: var(--cream);
  font-weight: 600;
  font-size: 13px;
}
.event-capacity .capacity-bar {
  position: relative;
  height: 6px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.event-capacity .capacity-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.6s var(--ease), background 0.4s;
}
.event-capacity.low .capacity-fill { background: #e8a24a; }
.event-capacity.critical .capacity-fill { background: #c24a30; }
.event-capacity.critical .capacity-text .num { color: #e8a24a; }

/* Featured CTA */
.events-featured-card .featured-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}
.events-featured-card .featured-cta:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(212, 175, 55, 0.5);
}
.events-featured-card .featured-cta svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   EVENTS GRID HEADING
   ============================================================ */
.events-grid-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.events-grid-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin: 0;
}
.events-grid-head h2 em {
  font-style: italic;
  color: var(--gold);
}
.events-grid-head .hint {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
}

/* ============================================================
   EVENTS GRID
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   EVENT CARD
   ============================================================ */
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(26, 10, 15, 0.65), rgba(13, 5, 8, 0.4));
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.6s var(--ease);
}
.event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 24px 60px -24px rgba(212, 175, 55, 0.15);
}
.event-card:hover::before {
  width: 100%;
}

/* Card top row: type chip + date chip */
.event-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 12px;
}
.event-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
}
.event-type-chip[data-type="masterclass"] {
  color: #e8c84a;
  border-color: rgba(232, 200, 74, 0.3);
  background: rgba(232, 200, 74, 0.08);
}
.event-type-chip[data-type="festival"] {
  color: #e89a4a;
  border-color: rgba(232, 154, 74, 0.3);
  background: rgba(232, 154, 74, 0.08);
}
.event-type-chip[data-type="dinner"] {
  color: #e8a0b0;
  border-color: rgba(232, 160, 176, 0.3);
  background: rgba(232, 160, 176, 0.08);
}
.event-type-chip[data-type="tasting"] {
  color: var(--gold);
}

.event-date-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--cream);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.event-date-chip .d {
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
}
.event-date-chip .m {
  font-size: 13px;
  color: var(--cream-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 500;
}

/* Card title */
.event-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.event-card h3 em {
  font-style: italic;
  color: var(--gold);
}

/* Time/duration meta row */
.event-card .card-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  align-items: center;
}
.event-card .card-meta .dot-sep {
  width: 3px;
  height: 3px;
  background: var(--text-dim);
  border-radius: 50%;
}

/* Card description (clamped) */
.event-card .card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card capacity */
.event-card .event-capacity {
  margin-bottom: 20px;
}

/* Card footer (price + button) */
.event-card .card-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.event-card .card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.event-card .card-price .val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1;
}
.event-card .card-price .unit {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Book ticket button */
.event-card .book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  width: 100%;
}
.event-card .book-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
}
.event-card .book-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================================
   SOLD OUT STATE
   ============================================================ */
.event-card.is-sold-out {
  opacity: 0.75;
}
.event-card.is-sold-out::after {
  content: 'SOLD OUT';
  position: absolute;
  top: 18px;
  right: -44px;
  padding: 6px 56px;
  background: var(--wine);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  transform: rotate(35deg);
  z-index: 2;
  pointer-events: none;
}
.event-card.is-sold-out .book-btn {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(120, 120, 120, 0.2);
  color: var(--text-dim);
}
.event-card.is-sold-out .card-price .val {
  color: var(--text-dim);
}
.event-card.is-sold-out .event-capacity .capacity-fill {
  background: var(--wine-light);
}

/* On-request (price on request) CTA tweak */
.event-card.is-on-request .card-price .val {
  font-size: 22px;
  color: var(--cream);
}

/* ============================================================
   LEGAL NOTICE AT BOTTOM
   ============================================================ */
.events-legal {
  width: var(--container);
  margin: 60px auto 0;
  padding: 28px 32px;
  background: rgba(13, 5, 8, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.06);
  border-radius: 2px;
}
.events-legal h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.events-legal p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}
.events-legal p:last-child { margin-bottom: 0; }
.events-legal strong {
  color: var(--cream-muted);
  font-weight: 500;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.events-empty {
  text-align: center;
  padding: 80px 20px;
}
.events-empty p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--cream-muted);
  margin-bottom: 32px;
}

/* ============================================================
   THANK-YOU PAGE
   ============================================================ */
.thankyou-wrap {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(120px, 15vw, 200px) 20px 80px;
  text-align: center;
}
.thankyou-check {
  width: 96px;
  height: 96px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 40px;
  box-shadow: 0 0 80px rgba(212, 175, 55, 0.35);
}
.thankyou-check svg {
  width: 48px;
  height: 48px;
}
.thankyou-check path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 0.8s 0.3s var(--ease) forwards;
}
.thankyou-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.thankyou-wrap h1 em {
  font-style: italic;
  color: var(--gold);
}
.thankyou-wrap .lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--cream-muted);
  max-width: 560px;
  margin-bottom: 48px;
}
.thankyou-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet large */
@media (max-width: 1200px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .events-featured-card {
    grid-template-columns: auto 1fr;
    gap: 40px;
  }
  .events-featured-card .featured-aside {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 28px;
    border-left: none;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px 40px;
  }
  .events-featured-card .featured-aside > * {
    flex: 1 1 200px;
  }
  .events-featured-card .featured-cta {
    flex: 1 1 100%;
  }
}

/* Tablet / mobile landscape */
@media (max-width: 900px) {
  .events-featured-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 28px;
  }
  .events-featured-card .event-date-big {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    padding: 18px 22px;
    min-width: 0;
  }
  .event-date-big .day {
    font-size: 56px;
  }
  .event-date-big .weekday,
  .event-date-big .time {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: auto;
  }
  .event-date-big .time {
    margin-left: auto;
  }
  .events-featured-card .highlights-list {
    grid-template-columns: 1fr;
  }
  .events-featured-card h2 {
    font-size: clamp(30px, 6vw, 44px);
  }

  .events-filters-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .events-filters .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 4px;
  }
  .events-filters .filter-pills::-webkit-scrollbar { display: none; }
  .events-filters .filter-pill {
    flex-shrink: 0;
  }

  .events-wrap {
    padding-top: 32px;
  }
  .events-featured {
    margin-bottom: 48px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .events-featured-card .featured-aside {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .featured-price .price-value {
    font-size: 40px;
  }
  .event-card {
    padding: 26px 22px;
  }
  .event-card h3 {
    font-size: 22px;
  }
  .event-card .card-price .val {
    font-size: 24px;
  }
  .events-legal {
    padding: 22px 20px;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .events-featured-card {
    padding: 32px 22px;
  }
  .events-featured-card h2 {
    font-size: 28px;
  }
  .event-date-big .day {
    font-size: 44px;
  }
}
