/* ===========================
   TicketScout — Main Styles
   =========================== */

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

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: #1a6fc4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===========================
   Navigation
   =========================== */

.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: #1a6fc4;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1a6fc4;
}

/* ===========================
   Hero
   =========================== */

.hero {
  background: #e8f2fc;
  padding: 60px 24px 48px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 36px;
  font-weight: 600;
  color: #0c447c;
  margin-bottom: 12px;
  line-height: 1.25;
}

.hero p {
  font-size: 17px;
  color: #185fa5;
  margin-bottom: 32px;
}

/* ===========================
   Search Bar
   =========================== */

.search-bar {
  background: #ffffff;
  border: 1px solid #c8dff5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 0 0 14px;
  gap: 10px;
  max-width: 580px;
  margin: 0 auto 20px;
  box-shadow: 0 2px 8px rgba(26,111,196,0.08);
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 14px 0;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  outline: none;
  background: transparent;
}

.search-bar input::placeholder {
  color: #aaa;
}

.search-bar button {
  background: #1a6fc4;
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0 7px 7px 0;
  transition: background 0.2s;
}

.search-bar button:hover {
  background: #155da0;
}

/* ===========================
   Category Pills
   =========================== */

.cat-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-pill {
  background: #ffffff;
  border: 1px solid #b0d0f0;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: #185fa5;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-pill:hover {
  background: #d0e8f8;
}

.cat-pill.active {
  background: #1a6fc4;
  color: #ffffff;
  border-color: #1a6fc4;
}

/* ===========================
   Trust Bar
   =========================== */

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 20px 24px;
  border-top: 1px solid #e8f2fc;
  border-bottom: 1px solid #e8f2fc;
  background: #f7fbff;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
  font-weight: 500;
}

/* ===========================
   Events Section
   =========================== */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.loading {
  color: #888;
  font-size: 15px;
  padding: 20px 0;
}

.error-msg {
  color: #c0392b;
  font-size: 15px;
  padding: 20px 0;
}

/* ===========================
   Event Cards
   =========================== */

.event-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,111,196,0.12);
  border-color: #b0d0f0;
}

.event-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #e8f2fc;
  display: block;
}

.event-img-placeholder {
  width: 100%;
  height: 140px;
  background: #e8f2fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.event-body {
  padding: 14px;
}

.event-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
  line-height: 1.5;
}

.event-price {
  font-size: 14px;
  color: #1a6fc4;
  font-weight: 600;
}

.compare-badge {
  display: inline-block;
  background: #e8f2fc;
  color: #185fa5;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
}

/* ===========================
   How It Works
   =========================== */

.how-section {
  background: #f7fbff;
  padding: 52px 24px;
  border-top: 1px solid #e0ecf8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 28px auto 0;
}

.step {
  text-align: center;
  padding: 24px 16px;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8f2fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* ===========================
   Footer
   =========================== */

.footer {
  background: #f0f4f8;
  border-top: 1px solid #e0e0e0;
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer p {
  font-size: 13px;
  color: #777;
}

.footer a {
  color: #1a6fc4;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 26px;
  }

  .nav-links {
    display: none;
  }

  .trust-bar {
    gap: 16px;
  }

  .events-grid {
    grid-template-columns: 1fr 1fr;
  }
}