/* ============================================================
   JetPages Events — events.css
   Mobile-first. Dark theme consistent with main site.
   ============================================================ */

/* ── Buttons ────────────────────────────────────────────────── */
.btn-event-primary {
  display: inline-block;
  background: #f59e0b;
  color: #0f0f1a;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-event-primary:hover { background: #d97706; color: #000; }

.btn-event-outline {
  display: inline-block;
  background: transparent;
  color: #f59e0b;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 6px;
  border: 1px solid #f59e0b;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-event-outline:hover { background: #f59e0b; color: #000; }

/* ── Filter sidebar ─────────────────────────────────────────── */
.filter-panel {
  background: #1e293b;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}
.filter-heading {
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}
.filter-group-label {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 10px 0 4px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 0;
}
.filter-check input { accent-color: #f59e0b; }
.filter-check:hover { color: #e2e8f0; }

.digest-signup { border: 1px solid #f59e0b22; }

/* ── View toggle ────────────────────────────────────────────── */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.view-btn {
  background: #1e293b;
  color: #94a3b8;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.view-btn.active, .view-btn:hover {
  background: #f59e0b;
  color: #0f0f1a;
  font-weight: 700;
}
.results-count {
  margin-left: auto;
  font-size: 0.82rem;
  color: #64748b;
}

/* ── Event Cards Grid ───────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.event-card {
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.event-card.featured {
  border: 1px solid #f59e0b;
}
.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f59e0b;
  color: #0f0f1a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  z-index: 2;
}
.event-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #0f0f1a;
}
.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.event-card:hover .event-card-img img { transform: scale(1.04); }

.event-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.event-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.event-online-badge {
  font-size: 0.72rem;
  background: #0ea5e9;
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
}
.event-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 8px;
  line-height: 1.3;
}
.event-title a { color: inherit; text-decoration: none; }
.event-title a:hover { color: #f59e0b; }

.event-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.venue-name { color: #475569; }

/* ── Culture tags ───────────────────────────────────────────── */
.culture-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.culture-tag {
  display: inline-block;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.7rem;
  padding: 2px 9px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #1e3a5f;
  transition: all 0.15s;
}
.culture-tag:hover { background: #1e3a5f; color: #e2e8f0; }

/* ── Card footer ────────────────────────────────────────────── */
.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #0f172a;
}
.btn-tickets {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-tickets:hover { background: #15803d; color: #fff; }
.btn-tickets-lg {
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 7px;
}
.ext-icon { font-size: 0.7rem; }

.event-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.save-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.save-btn:hover, .save-btn.saved { opacity: 1; }
.share-wa {
  font-size: 1.1rem;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.share-wa:hover { opacity: 1; }

/* ── No events placeholder ──────────────────────────────────── */
.no-events {
  background: #1e293b;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  color: #64748b;
}
.no-events a { color: #f59e0b; }

/* ── Event Detail page ──────────────────────────────────────── */
.back-link {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
}
.back-link:hover { color: #f59e0b; }
.event-detail-flyer img { border-radius: 10px; width: 100%; }
.featured-badge-lg {
  display: inline-block;
  background: #f59e0b;
  color: #0f0f1a;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 14px;
}
.detail-category {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1.25;
  margin: 6px 0 16px;
}
.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.detail-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #94a3b8;
}
.detail-meta-icon { font-size: 1.1rem; flex-shrink: 0; }
.detail-description {
  color: #cbd5e1;
  line-height: 1.75;
  font-size: 0.95rem;
}
.no-ticket-note {
  color: #64748b;
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
  background: #1e293b;
  border-radius: 6px;
}

/* ── Share row ──────────────────────────────────────────────── */
.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
}
.share-btn {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-weight: 600;
}
.share-wa  { background: #25d366; color: #fff; }
.share-fb  { background: #1877f2; color: #fff; }
.share-tw  { background: #000;     color: #fff; }
.share-copy{ background: #334155; color: #e2e8f0; }

.save-btn-detail {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 7px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.save-btn-detail.saved, .save-btn-detail:hover {
  background: #f59e0b;
  color: #0f0f1a;
  border-color: #f59e0b;
  font-weight: 700;
}

/* ── Preview panel ──────────────────────────────────────────── */
.preview-panel {
  border: 2px solid #f59e0b;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
.preview-banner {
  background: #f59e0b;
  color: #0f0f1a;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.preview-img-note { color: #6ee7b7; font-size: 0.82rem; }
.preview-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
}
.event-preview-img { max-height: 320px; object-fit: cover; }
.no-image-placeholder {
  width: 100%;
  height: 200px;
  background: #1e293b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 0.85rem;
}

/* ── Submit form ────────────────────────────────────────────── */
.form-label {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.tag-group-label {
  color: #f59e0b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 10px 0 4px;
}
.form-submit-row { border-top: 1px solid #1e293b; padding-top: 16px; }

/* ── Calendar ───────────────────────────────────────────────── */
#events-calendar {
  background: #1e293b;
  border-radius: 10px;
  padding: 16px;
}
.fc { color: #e2e8f0; }
.fc-toolbar-title { color: #f59e0b !important; font-size: 1.1rem !important; }
.fc-button { background: #0f172a !important; border-color: #334155 !important; color: #94a3b8 !important; }
.fc-button-active, .fc-button:hover { background: #f59e0b !important; color: #000 !important; border-color: #f59e0b !important; }
.fc-daygrid-day { background: #0f172a; }
.fc-daygrid-day:hover { background: #1e293b; }
.fc-daygrid-day-number { color: #64748b; }
.fc-event { background: #7c3aed; border: none; padding: 1px 4px; font-size: 0.75rem; cursor: pointer; }
.fc-event:hover { background: #6d28d9; }

/* ── In-feed Google Ad slot ─────────────────────────────────── */
.event-ad-slot {
  grid-column: span 2;   /* covers the width of two event cards */
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #334155;
}
.event-ad-slot ins { width: 100%; display: block; }

/* On single-column mobile, span 1 instead of 2 */
@media (max-width: 480px) {
  .event-ad-slot { grid-column: span 1; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* stay 2 columns on tablet — ad still spans both */
  .detail-title { font-size: 1.4rem; }
  .filter-panel { padding: 12px; }
}
@media (max-width: 480px) {
  .events-grid { grid-template-columns: 1fr; }
  .event-card-img { height: 200px; }
  .share-row { gap: 6px; }
  .view-toggle { flex-wrap: wrap; }
}
