/* HIVEDX Events Support – Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --yellow: #FFC400;
  --dark: #1A1A1A;
  --charcoal: #2D2D2D;
  --grey: #888888;
  --light-grey: #F5F5F5;
  --border: #E5E5E5;
  --white: #FFFFFF;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 10px;
}

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

html, body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--dark);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ── HEADER ─────────────────────────────── */
.site-header {
  background: var(--dark);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--yellow);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.logo-svg { height: 32px; width: auto; }
.header-logo-img { height: 36px; width: auto; display: block; }

.header-nav { display: flex; gap: 24px; align-items: center; }
.header-nav a, .header-nav button {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 0;
}
.header-nav a:hover, .header-nav button:hover { color: var(--yellow); }
.header-nav .active { color: var(--yellow); border-bottom: 2px solid var(--yellow); }
.header-nav .ext-link { border: 1px solid #444; border-radius: 6px; padding: 4px 14px; }
.header-nav .ext-link:hover { border-color: var(--yellow); color: var(--yellow); }

/* ── PAGE WRAPPER ───────────────────────── */
#app { min-height: calc(100vh - 64px); }

/* ── HOME PAGE ──────────────────────────── */
.home-hero {
  background: var(--dark);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,196,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero-logo { height: 70px; margin-bottom: 32px; }
.home-hero-logo-img { height: 80px; width: auto; display: block; margin: 0 auto 32px; }
.home-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.home-title span { color: var(--yellow); }
.home-desc {
  max-width: 560px;
  margin: 0 auto 44px;
  color: #aaa;
  font-size: 15px;
  line-height: 1.8;
}
.home-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.home-btn {
  padding: 14px 40px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home-btn-primary {
  background: var(--yellow);
  color: var(--dark);
}
.home-btn-primary:hover { background: #ffce2e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,196,0,0.35); }
.home-btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid #555;
}
.home-btn-outline:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.home-btn-ext {
  background: transparent;
  color: #aaa;
  border: 2px solid #333;
  font-size: 13px;
}
.home-btn-ext:hover { border-color: #666; color: var(--white); }

.home-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 48px 40px;
  background: var(--light-grey);
}
.stat-item { text-align: center; }
.stat-number { font-size: 32px; font-weight: 700; color: var(--dark); }
.stat-number span { color: var(--yellow); }
.stat-label { font-size: 12px; color: var(--grey); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ── LIST PAGES (Venues / Artists) ─────── */
.list-page { padding: 40px; max-width: 1400px; margin: 0 auto; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.page-title { font-size: 26px; font-weight: 700; }
.page-title span { color: var(--yellow); }

.search-bar-wrap {
  position: relative;
  width: 320px;
}
.search-bar {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}
.search-bar:focus { border-color: var(--yellow); }
.search-bar::placeholder { color: #aaa; }
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #aaa; font-size: 16px; pointer-events: none;
}

/* Genre filter tabs */
.genre-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.genre-tab {
  padding: 6px 16px;
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  font-family: 'Poppins', sans-serif;
}
.genre-tab:hover, .genre-tab.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

/* ── VENUE / ARTIST CARDS ──────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.item-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: var(--card-shadow);
}
.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-color: var(--yellow);
}
.item-card-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--light-grey);
}
.item-card-thumb.no-img {
  display: flex; align-items: center; justify-content: center;
  color: var(--grey); font-size: 40px; background: #f0f0f0;
}
.item-card-body { padding: 16px 18px; }
.item-card-venue { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.item-card-hotel { font-size: 12px; color: var(--grey); margin-bottom: 4px; }
.item-card-city {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.item-card-desc {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-card-divider {
  height: 1px; background: var(--border);
  margin: 0 18px;
}

.no-results {
  text-align: center; padding: 60px 20px; color: var(--grey); grid-column: 1/-1;
}
.no-results .icon { font-size: 48px; margin-bottom: 12px; }
.no-results p { font-size: 15px; }

/* ── DETAIL PAGE ────────────────────────── */
.detail-page { max-width: 960px; margin: 0 auto; padding: 40px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--grey);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 28px;
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--dark); }
.back-btn svg { width: 16px; height: 16px; }

/* Carousel */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  margin-bottom: 32px;
  aspect-ratio: 16/7;
}
.carousel-inner {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Artist detail carousel: show full portrait, no cropping */
.artist-carousel .carousel-slide img {
  object-fit: contain;
  background: #111;
  object-position: center top;
}
.carousel-slide .no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #1a1a1a; color: #555; font-size: 60px;
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  border: none; color: white; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
  z-index: 10;
}
.carousel-btn:hover { background: rgba(255,196,0,0.85); color: var(--dark); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: all 0.2s;
}
.carousel-dot.active { background: var(--yellow); transform: scale(1.3); }

/* Detail content */
.detail-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-city { background: var(--yellow); color: var(--dark); }
.badge-cat { background: var(--light-grey); color: var(--grey); }

.detail-title { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.detail-hotel { font-size: 16px; color: var(--grey); margin-bottom: 24px; font-weight: 400; }

.detail-section { margin-bottom: 28px; }
.detail-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--grey);
  margin-bottom: 10px; border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.detail-desc { font-size: 14px; color: #444; line-height: 1.8; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.spec-item {
  background: var(--light-grey);
  border-radius: 8px;
  padding: 14px 16px;
}
.spec-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--grey); margin-bottom: 4px; }
.spec-value { font-size: 14px; font-weight: 600; color: var(--dark); }

/* Rates */
.rates-box {
  background: var(--light-grey);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  border-left: 4px solid var(--yellow);
}
.rates-box-title {
  font-size: 13px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.rates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rate-item .rate-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--grey); }
.rate-item .rate-value { font-size: 15px; font-weight: 700; color: var(--dark); }
.rate-date { font-size: 11px; color: var(--grey); margin-top: 12px; font-style: italic; }

.no-rates {
  color: var(--grey); font-size: 13px; font-style: italic;
}

/* Action buttons */
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.action-btn {
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  border: none;
}
.btn-download {
  background: var(--dark);
  color: var(--white);
}
.btn-download:hover { background: #333; }
.btn-rate {
  background: var(--yellow);
  color: var(--dark);
}
.btn-rate:hover { background: #ffce2e; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,196,0,0.35); }

.rate-note { font-size: 11px; color: var(--grey); margin-top: 4px; text-align: center; }

/* ── MODAL ──────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--white);
  border-radius: 14px;
  padding: 32px;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.modal-subtitle { font-size: 12px; color: var(--grey); margin-bottom: 24px; }
.modal-form-group { margin-bottom: 16px; }
.modal-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--grey); display: block; margin-bottom: 6px; }
.modal-input {
  width: 100%; padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: var(--yellow); }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-cancel {
  flex: 1; padding: 11px; background: var(--light-grey);
  border: none; border-radius: 8px; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 500;
}
.modal-cancel:hover { background: var(--border); }
.modal-submit {
  flex: 2; padding: 11px; background: var(--yellow);
  border: none; border-radius: 8px; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--dark);
  transition: background 0.2s;
}
.modal-submit:hover { background: #ffce2e; }
.modal-success { text-align: center; padding: 20px 0; }
.modal-success .icon { font-size: 48px; margin-bottom: 12px; }
.modal-success p { font-size: 14px; color: var(--grey); }

/* ── DOWNLOAD SLIDE TEMPLATE ───────────── */
#download-canvas-container {
  position: fixed;
  left: -9999px; top: -9999px;
  width: 1280px; height: 720px;
  pointer-events: none;
}
.download-slide {
  width: 1280px; height: 720px;
  background: #1A1A1A;
  font-family: 'Poppins', sans-serif;
  display: flex;
  overflow: hidden;
  position: relative;
}
.dl-photo-col {
  width: 520px; height: 720px; flex-shrink: 0; position: relative;
}
.dl-photo-col img {
  width: 100%; height: 100%; object-fit: cover;
}
.dl-photo-col .no-photo-dl {
  width: 100%; height: 100%; background: #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  color: #444; font-size: 80px;
}
.dl-content-col {
  flex: 1;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.dl-yellow-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--yellow);
}
.dl-logo-area { margin-bottom: 28px; }
.dl-logo-text { color: var(--white); font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.dl-logo-text span { color: var(--yellow); }
.dl-venue-name { font-size: 26px; font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 4px; }
.dl-hotel-name { font-size: 15px; color: #aaa; margin-bottom: 16px; }
.dl-city-badge {
  display: inline-block; background: var(--yellow); color: var(--dark);
  font-size: 11px; font-weight: 700; padding: 3px 14px; border-radius: 12px;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px;
}
.dl-desc { font-size: 12px; color: #bbb; line-height: 1.7; margin-bottom: 20px; max-height: 80px; overflow: hidden; }
.dl-specs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.dl-spec { display: flex; align-items: baseline; gap: 10px; }
.dl-spec-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); width: 130px; flex-shrink: 0; }
.dl-spec-value { font-size: 13px; color: var(--white); font-weight: 500; }
.dl-rates-section { margin-top: auto; border-top: 1px solid #333; padding-top: 14px; }
.dl-rates-title { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--yellow); margin-bottom: 10px; }
.dl-rates-grid { display: flex; gap: 24px; flex-wrap: wrap; }
.dl-rate { }
.dl-rate-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: #888; }
.dl-rate-value { font-size: 14px; font-weight: 700; color: var(--white); }
.dl-footer {
  position: absolute; bottom: 28px; right: 44px;
  font-size: 10px; color: #555; text-align: right;
}

/* ── ARTIST SLIDE SPECIFIC ──────────────── */
.dl-genre-badge {
  display: inline-block; background: #333; color: #ccc;
  font-size: 11px; font-weight: 600; padding: 3px 14px; border-radius: 12px;
  margin-right: 8px; margin-bottom: 16px;
}
.artist-card-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
  background: var(--light-grey);
}

/* ── FOOTER ─────────────────────────────── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid #333;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: #555; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: #555; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); }

/* ── LOADING STATE ──────────────────────── */
.loading {
  display: flex; align-items: center; justify-content: center;
  height: 300px; color: var(--grey);
  flex-direction: column; gap: 16px;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .header-nav { gap: 14px; }
  .list-page { padding: 24px 20px; }
  .detail-page { padding: 24px 20px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .search-bar-wrap { width: 100%; }
  .home-hero { padding: 60px 20px; }
  .home-title { font-size: 26px; }
  .home-stats { gap: 30px; padding: 32px 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .detail-actions { flex-direction: column; }
  .action-btn { justify-content: center; }
}

@media (max-width: 480px) {
  .home-buttons { flex-direction: column; }
  .home-btn { justify-content: center; }
  .header-nav .ext-link { display: none; }
}
