/* ════════════════════════════════════════════════════════════════════
   Events Voting — Events List & Event Page  ·  v2.2.0
   Fonts: Playfair Display (headings) + Outfit (body) — same as profile
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ───────────────────────────────────────────────── */
.evt-events-root, .evt-event-page {
  --gold:      #9a6f10;
  --gold-lt:   #c49a2a;
  --gold-bg:   #fdf6e3;
  --gold-bdr:  #e8cc80;
  --bg:        #ffffff;
  --bg-2:      #f8f9fa;
  --bg-3:      #f1f3f5;
  --border:    #dee2e6;
  --text:      #111827;
  --text-2:    #374151;
  --text-3:    #6b7280;
  --radius:    14px;
  --shadow:    0 2px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.11), 0 2px 8px rgba(0,0,0,.07);
  --ff-d:      'Playfair Display', Georgia, serif;
  --ff-b:      'Outfit', system-ui, sans-serif;
  font-family: var(--ff-b);
  color: var(--text);
  box-sizing: border-box;
}

.evt-events-root *, .evt-events-root *::before, .evt-events-root *::after,
.evt-event-page *,  .evt-event-page *::before,  .evt-event-page *::after {
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════════
   EVENTS LIST PAGE
   ══════════════════════════════════════════════════════════════════ */

.evt-events-root {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ── Page Header ─────────────────────────────────────────────────── */
.evt-list-header {
  text-align: center;
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.evt-list-header h1 {
  font-family: var(--ff-d);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.15;
}
.evt-list-header p {
  font-size: 16px;
  color: var(--text-3);
  margin: 0;
  font-weight: 400;
}
.evt-list-header .evt-gold-line {
  width: 56px;
  height: 3px;
  background: var(--gold-lt);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ── Filter Bar ──────────────────────────────────────────────────── */
.evt-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.evt-filter-bar span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-right: 4px;
}
.evt-filter-btn {
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--ff-b);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.evt-filter-btn:hover { border-color: var(--gold-lt); color: var(--gold); }
.evt-filter-btn.active {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  color: #fff;
}

/* ── Events Grid ─────────────────────────────────────────────────── */
.evt-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ── Event Card ──────────────────────────────────────────────────── */
.evt-event-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex;
  flex-direction: column;
}
.evt-event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-bdr);
}

.evt-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-3);
}
.evt-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform .4s ease;
}
.evt-event-card:hover .evt-card-image img { transform: scale(1.04); }

.evt-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, #fdf6e3, #fef9ec);
}

/* Badges on image */
.evt-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.evt-badge {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  line-height: 1;
}
.evt-badge-online   { background: #dbeafe; color: #1e40af; }
.evt-badge-offline  { background: #dcfce7; color: #166534; }
.evt-badge-hybrid   { background: #fce7f3; color: #9d174d; }
.evt-badge-open     { background: #c49a2a; color: #fff; }
.evt-badge-closed   { background: rgba(0,0,0,.55); color: #fff; }
.evt-badge-upcoming { background: #f3f4f6; color: #374151; }
.evt-badge-free     { background: #166534; color: #fff; }

/* Price tag top-right */
.evt-card-price-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.72);
  color: #fff;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}
.evt-card-price-tag.free { background: #166534; }

/* Card body */
.evt-card-body {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.evt-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.evt-card-meta span { display: flex; align-items: center; gap: 4px; }
.evt-card-meta .dot { width: 3px; height: 3px; background: var(--border); border-radius: 50%; }

.evt-card-title {
  font-family: var(--ff-d);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.25;
}
.evt-card-excerpt {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

.evt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--bg-3);
  gap: 10px;
}
.evt-card-stats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-3);
}
.evt-card-stats strong { color: var(--text-2); font-weight: 700; }
.evt-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--gold-lt);
  color: #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s, transform .18s;
  white-space: nowrap;
  font-family: var(--ff-b);
}
.evt-card-cta:hover { background: var(--gold); transform: scale(1.03); color: #fff; text-decoration: none; }

/* No events state */
.evt-no-events {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
  grid-column: 1/-1;
}
.evt-no-events .icon { font-size: 48px; margin-bottom: 12px; }
.evt-no-events h3 { font-family: var(--ff-d); font-size: 22px; color: var(--text-2); margin: 0 0 8px; }


/* ══════════════════════════════════════════════════════════════════
   SINGLE EVENT PAGE  (voting form wrapper)
   ══════════════════════════════════════════════════════════════════ */

.evt-event-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.evt-hero {
  position: relative;
  height: clamp(260px, 40vw, 480px);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.evt-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: .75;
}
.evt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
}
.evt-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 32px;
}
.evt-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.evt-hero-title {
  font-family: var(--ff-d);
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.evt-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.evt-hero-meta span { display: flex; align-items: center; gap: 5px; }

/* No hero image fallback */
.evt-hero-plain {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.evt-hero-plain .evt-hero-title {
  color: var(--text);
  text-shadow: none;
  font-size: clamp(24px, 4vw, 40px);
  margin-bottom: 12px;
}
.evt-hero-plain .evt-hero-meta { color: var(--text-3); }
.evt-hero-plain .evt-hero-badges { margin-bottom: 10px; }

/* ── Action Buttons Row ──────────────────────────────────────────── */
.evt-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.evt-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--ff-b);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .18s;
  cursor: pointer;
  border: none;
}
.evt-action-btn.primary   { background: var(--gold-lt); color: #fff; }
.evt-action-btn.primary:hover { background: var(--gold); color: #fff; }
.evt-action-btn.outline   { background: var(--bg); color: var(--gold); border: 2px solid var(--gold-bdr); }
.evt-action-btn.outline:hover { background: var(--gold-bg); }
.evt-action-btn.stream    { background: #1e40af; color: #fff; }
.evt-action-btn.stream:hover  { background: #1e3a8a; color: #fff; }

/* ── Two-column layout ───────────────────────────────────────────── */
.evt-event-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .evt-event-layout { grid-template-columns: 1fr; }
}

/* ── Content Cards ───────────────────────────────────────────────── */
.evt-content-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.evt-content-card:last-child { margin-bottom: 0; }

.evt-card-heading {
  font-family: var(--ff-d);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.evt-bio-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}
.evt-bio-text p { margin: 0 0 14px; }
.evt-bio-text p:last-child { margin: 0; }

/* ── Ticket Purchase Card ────────────────────────────────────────── */
.evt-ticket-card {
  background: linear-gradient(135deg, var(--gold-bg), #fff);
  border: 1.5px solid var(--gold-bdr);
}
.evt-ticket-price-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.evt-ticket-price-display .price-main {
  font-family: var(--ff-d);
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
}
.evt-ticket-price-display .price-unit {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 500;
}
.evt-ticket-price-display .price-original {
  font-size: 16px;
  color: var(--text-3);
  text-decoration: line-through;
}
.evt-discount-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.evt-ticket-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.evt-qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.evt-qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.evt-qty-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-2);
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-2);
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.evt-qty-btn:hover { background: var(--gold-bg); color: var(--gold); }
.evt-qty-input {
  width: 52px;
  height: 36px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-family: var(--ff-b);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  -moz-appearance: textfield;
}
.evt-qty-input::-webkit-outer-spin-button,
.evt-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.evt-ticket-total {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}
.evt-ticket-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.evt-ticket-total-row:last-child { margin-bottom: 0; }
.evt-ticket-total-row .label { color: var(--text-3); }
.evt-ticket-total-row .value { font-weight: 700; color: var(--text); }
.evt-ticket-total-row.total .value { font-size: 18px; color: var(--gold); font-family: var(--ff-d); }
.evt-ticket-total-row .saving { color: #16a34a; font-weight: 700; }
.evt-ticket-buy-btn {
  width: 100%;
  padding: 13px;
  background: var(--gold-lt);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--ff-b);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .18s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.evt-ticket-buy-btn:hover { background: var(--gold); transform: translateY(-1px); }
.evt-ticket-buy-btn:disabled { background: #9ca3af; cursor: not-allowed; transform: none; }
.evt-ticket-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 10px;
}
.evt-free-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #166534;
}

/* ── Sidebar Cards ───────────────────────────────────────────────── */
.evt-sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.evt-sidebar-card:last-child { margin-bottom: 0; }

.evt-sidebar-heading {
  font-family: var(--ff-d);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--bg-3);
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

/* Gallery */
.evt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
}
.evt-gallery-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-3);
  cursor: pointer;
}
.evt-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s, opacity .3s;
}
.evt-gallery-thumb:hover img { transform: scale(1.08); opacity: .88; }

/* Lightbox */
.evt-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.evt-lightbox.open { display: flex; }
.evt-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}
.evt-lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  opacity: .85;
}
.evt-lightbox-close:hover { opacity: 1; }

/* Share */
.evt-share-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
}
.evt-share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: opacity .15s, transform .15s;
  color: #fff;
  cursor: pointer;
  border: none;
  font-family: var(--ff-b);
}
.evt-share-btn:hover { opacity: .88; transform: translateX(2px); color: #fff; text-decoration: none; }
.evt-share-btn.whatsapp { background: #25d366; }
.evt-share-btn.facebook { background: #1877f2; }
.evt-share-btn.twitter  { background: #000; }
.evt-share-btn.copy     { background: var(--bg-2); color: var(--text-2); border: 1.5px solid var(--border); }
.evt-share-btn.copy:hover { color: var(--text-2); }
.evt-share-icon { font-size: 16px; flex-shrink: 0; }

/* Event Details sidebar card */
.evt-details-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.evt-detail-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.evt-detail-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.evt-detail-body { font-size: 13px; line-height: 1.5; }
.evt-detail-body .label { font-weight: 700; color: var(--text-2); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 2px; }
.evt-detail-body .value { color: var(--text-3); }

/* Voting status bar */
.evt-voting-status {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.evt-voting-status.open     { background: #f0fdf4; color: #166534; border-top: 1px solid #bbf7d0; }
.evt-voting-status.closed   { background: #fef2f2; color: #991b1b; border-top: 1px solid #fecaca; }
.evt-voting-status.upcoming { background: #fefce8; color: #854d0e; border-top: 1px solid #fef08a; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .evt-content-card { padding: 18px 16px; }
  .evt-hero-content { padding: 20px 18px; }
  .evt-events-grid { grid-template-columns: 1fr; gap: 18px; }
  .evt-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .evt-ticket-qty-row { gap: 8px; }
}

/* ── Full-width gallery (below contestants) ──────────────────────── */
.evt-gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 6px;
}
@media (max-width: 768px) {
  .evt-gallery-grid-full { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .evt-gallery-grid-full { grid-template-columns: repeat(3, 1fr); }
}
.evt-gallery-grid-full .evt-gallery-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-3);
  cursor: pointer;
  border-radius: 4px;
}
.evt-gallery-grid-full .evt-gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s, opacity .3s;
}
.evt-gallery-grid-full .evt-gallery-thumb:hover img { transform: scale(1.07); opacity: .88; }

/* ── Horizontal share buttons (below gallery) ────────────────────── */
.evt-share-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0;
}
.evt-share-buttons-row .evt-share-btn {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 140px;
  border-radius: 50px;
  padding: 11px 20px;
}
