/* ==========================================================================
   Eventiva KE - Madfun Yellow & Black Color System
   Brand: #FFD100 (Madfun Signature Vivid Gold/Yellow)
   Ink:   #101820 (Deep Pitch Black)
   Dark Surface: #18222D / #1F2C39
   Light Body:   #F9FAFB / #FFFFFF
   ========================================================================== */

:root {
  --brand: #FFD100;
  --brand-hover: #E6BC00;
  --brand-subtle: #FFFBE6;
  --brand-border: #FFE566;
  --ink: #101820;
  --ink-light: #1E2833;
  --ink-muted: #5B6B7C;
  --bg-page: #F8F9FA;
  --bg-card: #FFFFFF;
  --border-subtle: #E5E9EE;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(16, 24, 32, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(16, 24, 32, 0.08);
  --shadow-hover: 0 16px 32px -6px rgba(16, 24, 32, 0.12);
}

body.ke-marketplace {
  background-color: var(--bg-page) !important;
  color: var(--ink) !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.ke-marketplace .ball,
body.ke-marketplace .cursor-text {
  display: none !important;
}

/* 1. Top Ticker Strip (Madfun Style Live Ticker) */
.ke-ticker-bar {
  background-color: var(--ink);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ke-ticker-tag {
  background-color: var(--brand);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

/* 2. Navbar */
.ke-navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.ke-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--ink) !important;
}

.ke-brand-badge {
  background: var(--brand);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.ke-brand-dot {
  color: var(--brand);
  font-size: 1.6rem;
  line-height: 0;
}

.ke-nav-link {
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.ke-nav-link:hover, .ke-nav-link.active {
  color: var(--ink) !important;
  background-color: var(--brand-subtle);
}

/* Action Buttons (Madfun Yellow & Black) */
.ke-btn-brand {
  background-color: var(--brand) !important;
  color: var(--ink) !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--brand) !important;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 209, 0, 0.4);
}

.ke-btn-brand:hover {
  background-color: var(--brand-hover) !important;
  color: var(--ink) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 209, 0, 0.5);
}

.ke-btn-black {
  background-color: var(--ink) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--ink) !important;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.ke-btn-black:hover {
  background-color: var(--ink-light) !important;
  color: var(--brand) !important;
  transform: translateY(-1px);
}

.ke-btn-outline-dark {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink) !important;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.ke-btn-outline-dark:hover {
  background: var(--ink) !important;
  color: #FFFFFF !important;
}

/* 3. Hero Carousel Section (High-Impact Poster Slider) */
.ke-hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--ink);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
}

.ke-hero-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.ke-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.1) 0%, rgba(16, 24, 32, 0.6) 45%, rgba(16, 24, 32, 0.96) 100%);
}

.ke-hero-content {
  position: relative;
  z-index: 2;
  padding: 36px 32px;
  width: 100%;
}

.ke-badge-live {
  background: var(--brand);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.ke-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E11D48;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.4);
}

/* 4. Search & Discovery Toolbar */
.ke-search-bar {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: 50px;
  padding: 6px 8px 6px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ke-search-bar:focus-within {
  border-color: var(--ink);
  box-shadow: 0 6px 20px rgba(16, 24, 32, 0.08);
}

.ke-search-bar input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
}

.ke-search-bar input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

/* Category Pill Shortcuts */
.ke-category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.ke-category-scroll::-webkit-scrollbar {
  display: none;
}

.ke-cat-pill {
  white-space: nowrap;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--ink);
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ke-cat-pill:hover, .ke-cat-pill.active {
  background: var(--ink);
  color: var(--brand);
  border-color: var(--ink);
}

/* 5. Madfun-Style Event Cards (Vertical Poster Cards) */
.ke-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.ke-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #CBD5E1;
  color: inherit;
}

.ke-card-poster-wrap {
  position: relative;
  width: 100%;
  padding-top: 64%;
  overflow: hidden;
  background: #E2E8F0;
}

.ke-card-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ke-card:hover .ke-card-poster {
  transform: scale(1.05);
}

.ke-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.ke-card-county {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.ke-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ke-card-date {
  color: #B45309; /* warm amber tone for date urgency */
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.ke-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ke-card-venue {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ke-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ke-card-price-label {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.ke-card-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
}

.ke-card-price span {
  font-size: 0.85rem;
  color: #94A3B8;
  font-weight: 700;
}

/* 6. Marquee / Banner Strip (Madfun "Made in Nairobi" Marquee) */
.ke-marquee-strip {
  background-color: var(--brand);
  color: var(--ink);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.88rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.ke-marquee-content {
  display: inline-flex;
  gap: 24px;
  animation: keMarquee 30s linear infinite;
}

@keyframes keMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 7. Organizer CTA Card */
.ke-organizer-box {
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.ke-organizer-box::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: var(--brand);
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}

/* 8. Ticket Tiers Widget */
.ke-tier-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.ke-tier-card:hover, .ke-tier-card.selected {
  border-color: var(--ink);
  box-shadow: 0 4px 15px rgba(16, 24, 32, 0.08);
}

.ke-qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: #F1F5F9;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ke-qty-btn:hover {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
}

.ke-qty-num {
  font-weight: 800;
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
}

/* Sticky Mobile Bottom Bar */
.ke-mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(16, 24, 32, 0.98);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--brand);
  padding: 12px 16px;
  z-index: 1030;
  color: #FFFFFF;
}

/* Footer (Pitch Black & Yellow Theme) */
.ke-footer {
  background: var(--ink);
  color: #94A3B8;
  padding: 60px 0 30px;
  margin-top: 60px;
  font-size: 0.9rem;
}

.ke-footer h6 {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.ke-footer a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}

.ke-footer a:hover {
  color: var(--brand);
}
