/* assets/style.css — icco.in modern UI */

/* Self-hosted Manrope font (no CDN dependency) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-800-normal.woff2') format('woff2');
}

:root {
  --bg:        #FBF9F4;
  --bg-card:   #FFFFFF;
  --ink:       #1A1A17;
  --ink-soft:  #4A4A45;
  --ink-mute:  #8A8A82;
  --line:      #E8E5DD;
  --line-soft: #F0EDE5;
  --accent:    #F59E0B;
  --accent-d:  #D97706;
  --warm:      #FEF3E2;
  --rose:      #E76E50;
  --teal:      #0F766E;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-d); }

/* ---------- Navbar override ---------- */
.navbar.bg-dark {
  background: var(--bg-card) !important;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.navbar-brand { font-weight: 800 !important; letter-spacing: -0.03em; color: var(--ink) !important; }
.navbar-brand .text-warning { color: var(--accent) !important; }
.navbar .nav-link { color: var(--ink-soft) !important; font-weight: 500; font-size: 14px; }
.navbar .nav-link:hover { color: var(--ink) !important; }
.navbar .btn-warning {
  background: var(--ink); border-color: var(--ink); color: #fff !important;
  font-weight: 600; padding: 6px 14px; border-radius: 999px;
}
.navbar .btn-warning:hover { background: var(--accent-d); border-color: var(--accent-d); }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%231a1a17' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.hero-modern {
  padding: 64px 0 32px;
  background:
    radial-gradient(ellipse 800px 400px at 80% 20%, rgba(245,158,11,0.15), transparent),
    radial-gradient(ellipse 600px 300px at 10% 80%, rgba(231,110,80,0.08), transparent),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 760px; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600; margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.035em; margin-bottom: 18px;
}
.hero-city {
  background: linear-gradient(120deg, var(--accent) 0%, var(--rose) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.hero-sub {
  font-size: 18px; color: var(--ink-soft); max-width: 540px; margin-bottom: 32px;
}

/* Hero search */
.hero-search {
  display: flex; gap: 8px; background: var(--bg-card);
  padding: 8px; border-radius: 999px; border: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  max-width: 640px; flex-wrap: wrap;
}
.hero-search-input {
  flex: 1 1 240px; display: flex; align-items: center; gap: 10px;
  padding: 0 18px; min-height: 48px; color: var(--ink-mute);
}
.hero-search-input input {
  border: 0; outline: 0; background: transparent;
  font-size: 15px; width: 100%; color: var(--ink);
  font-family: inherit;
}
.hero-search-select {
  border: 0; background: var(--line-soft); border-radius: 999px;
  padding: 0 16px; min-width: 130px; font-size: 14px; font-weight: 600;
  color: var(--ink); font-family: inherit; cursor: pointer;
}
.hero-search-btn {
  border: 0; background: var(--ink); color: #fff; font-weight: 600;
  padding: 0 24px; border-radius: 999px; min-height: 48px;
  font-size: 14px; cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.hero-search-btn:hover { background: var(--accent-d); transform: translateY(-1px); }

/* ---------- Category strip ---------- */
.cat-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 24px 0 8px;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap; transition: all 0.12s ease;
}
.cat-chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.cat-chip.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.cat-icon { font-size: 14px; }

/* ---------- Sections ---------- */
.evt-section { padding: 32px 0 16px; }
.evt-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px;
}
.evt-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700;
  letter-spacing: -0.025em; margin: 0;
}
.evt-section-count {
  font-size: 13px; color: var(--ink-mute); font-weight: 500;
}

/* ---------- Event grid ---------- */
.evt-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ---------- Event card ---------- */
.evt-card {
  display: block; background: var(--bg-card); border-radius: var(--r-md);
  overflow: hidden; border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: var(--ink);
}
.evt-card:hover {
  transform: translateY(-4px); border-color: var(--ink-soft);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  color: var(--ink);
}

.evt-poster {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--line-soft);
}
.evt-poster img { width: 100%; height: 100%; object-fit: cover; }
.evt-poster-fallback {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em;
}
/* Category fallback colors */
.evt-poster-cat-comedy    { background: #FFE9D6; color: #B45309; }
.evt-poster-cat-music     { background: #FCE7F3; color: #BE185D; }
.evt-poster-cat-workshop  { background: #DBEAFE; color: #1D4ED8; }
.evt-poster-cat-theatre   { background: #FCE7F3; color: #9F1239; }
.evt-poster-cat-sports    { background: #DCFCE7; color: #15803D; }
.evt-poster-cat-community { background: #E0E7FF; color: #4338CA; }
.evt-poster-cat-other     { background: var(--line-soft); color: var(--ink-soft); }

.evt-date-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--bg-card); border-radius: var(--r-sm);
  padding: 6px 10px; display: flex; flex-direction: column;
  align-items: center; line-height: 1.1; min-width: 56px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.evt-date-rel {
  font-size: 10px; font-weight: 700; color: var(--accent-d);
  letter-spacing: 0.05em;
}
.evt-date-time {
  font-size: 12px; color: var(--ink); font-weight: 600;
  margin-top: 2px;
}
.evt-low-seats {
  position: absolute; top: 12px; right: 12px;
  background: var(--rose); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.01em;
}

.evt-body { padding: 16px 18px 18px; }
.evt-cat {
  font-size: 11px; font-weight: 700; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.evt-title {
  font-size: 17px; font-weight: 700; margin: 6px 0 8px;
  line-height: 1.3; letter-spacing: -0.015em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.evt-venue {
  font-size: 13px; color: var(--ink-mute); margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.evt-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--line-soft);
}
.evt-price {
  font-size: 15px; font-weight: 700; color: var(--teal);
  letter-spacing: -0.01em;
}
.evt-by {
  font-size: 12px; color: var(--ink-mute);
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center; padding: 80px 20px; max-width: 540px; margin: 0 auto;
}
.empty-art { font-size: 56px; margin-bottom: 20px; opacity: 0.7; }
.empty-state h2 { font-size: 24px; margin-bottom: 12px; }
.empty-state p { color: var(--ink-soft); font-size: 16px; margin-bottom: 28px; }

.btn-primary-modern {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 14px 28px; border-radius: 999px; font-weight: 600;
  font-size: 15px; transition: all 0.15s;
}
.btn-primary-modern:hover {
  background: var(--accent-d); color: #fff; transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(217,119,6,0.25);
}

/* ---------- Organiser CTA ---------- */
.cta-organiser {
  margin: 64px 0 32px; padding: 48px;
  background: var(--ink); border-radius: var(--r-lg);
  position: relative; overflow: hidden;
}
.cta-organiser::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.25), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap; position: relative;
}
.cta-text { color: #fff; }
.cta-eyebrow {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.cta-organiser h2 {
  color: #fff; font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px; letter-spacing: -0.025em;
}
.cta-sub { color: rgba(255,255,255,0.7); font-size: 15px; margin: 0; }
.btn-cta {
  background: var(--accent); color: var(--ink); font-weight: 700;
  padding: 14px 28px; border-radius: 999px; font-size: 15px;
  transition: all 0.15s; white-space: nowrap;
}
.btn-cta:hover {
  background: #fff; color: var(--ink); transform: translateY(-2px);
}

/* ---------- Footer override ---------- */
footer.bg-dark {
  background: var(--bg-card) !important;
  border-top: 1px solid var(--line); color: var(--ink-soft) !important;
  margin-top: 32px !important;
}
footer.bg-dark h5, footer.bg-dark h6 { color: var(--ink); }
footer.bg-dark .text-light { color: var(--ink-soft) !important; }
footer.bg-dark .text-light:hover { color: var(--accent-d) !important; }
footer.bg-dark .text-warning { color: var(--accent) !important; }
footer .border-secondary { border-color: var(--line) !important; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .hero-modern { padding: 40px 0 24px; }
  .hero-search { border-radius: var(--r-md); padding: 12px; }
  .hero-search-input, .hero-search-select, .hero-search-btn {
    flex: 1 1 100%; border-radius: var(--r-sm); min-height: 44px;
    background: var(--line-soft);
  }
  .hero-search-input { padding: 0 12px; }
  .hero-search-btn { background: var(--ink); }
  .cta-organiser { padding: 32px 24px; }
  .evt-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
}

/* ---------- Legal pages ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 16px 0 60px; }
.legal-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; font-weight: 700;
  color: var(--ink-mute); margin-bottom: 12px;
}
.legal-page h1 {
  font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 8px;
}
.legal-updated { color: var(--ink-mute); font-size: 13px; margin-bottom: 32px; }
.legal-intro {
  font-size: 17px; color: var(--ink-soft); line-height: 1.65;
  padding: 18px 22px; background: var(--warm); border-radius: var(--r-md);
  border-left: 3px solid var(--accent);
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 22px; margin-top: 36px; margin-bottom: 12px;
  color: var(--ink); font-weight: 700; letter-spacing: -0.02em;
}
.legal-page p, .legal-page li {
  font-size: 15px; line-height: 1.7; color: var(--ink-soft);
}
.legal-page ul { padding-left: 22px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--accent-d); text-decoration: underline; }
.legal-page a:hover { color: var(--ink); }
.legal-contact-card {
  padding: 18px 22px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--r-md);
  margin: 16px 0;
}
.legal-contact-card a { text-decoration: none; }
