@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Professional palette - Pickle green accent */
  --bg-main: #ffffff;
  --bg-subtle: #f7f8fa;
  --bg-card: #ffffff;
  --primary: #00b359;
  --primary-hover: #00994d;
  --text-main: #1a1a1a;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-max: 1200px;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-main);
  font-weight: 600;
  line-height: 1.25;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.logo-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.anchor-offset {
  display: block;
  position: relative;
  top: -80px;
  height: 0;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(0, 179, 89, 0.08);
}

/* Header - overlays hero when at top */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
  padding: 16px 0;
  transition: background 0.3s ease;
}

.header.scrolled {
  position: fixed;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.header.scrolled .nav-links a,
.header.scrolled .logo-text,
.header.scrolled .search-bar input {
  color: var(--text-main);
}

.header.scrolled .nav-links a:hover {
  color: var(--primary);
}

.header:not(.scrolled) .nav-links a,
.header:not(.scrolled) .logo-text {
  color: rgba(255,255,255,0.95);
}

.header:not(.scrolled) .nav-links a:hover {
  color: #fff;
}

.header:not(.scrolled) .search-bar {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

.header:not(.scrolled) .search-bar input {
  color: #fff;
}

.header:not(.scrolled) .search-bar input::placeholder {
  color: rgba(255,255,255,0.7);
}

.header:not(.scrolled) .search-icon {
  color: rgba(255,255,255,0.8);
}

.header:not(.scrolled) .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}

.header:not(.scrolled) .btn-outline:hover {
  background: rgba(255,255,255,0.2);
}

.header:not(.scrolled) .btn-primary {
  background: var(--primary);
  color: #fff;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
}

.logo-text {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.search-bar {
  flex: 1;
  max-width: 360px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 6px;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  background: none;
  border: none;
  color: var(--text-main);
  outline: none;
  width: 100%;
  font-size: 0.95rem;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

/* Hero - with background image */
.hero-section {
  position: relative;
  padding: 100px 0 100px;
  background: linear-gradient(135deg, #0a2e1a 0%, #0d3d24 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  max-width: 640px;
  margin-bottom: 14px;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-section > .container > p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 500px;
  margin-bottom: 28px;
}

.hero-section .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}

.hero-section .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
}

/* Category filter - text pills only */
.category-filter {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.filter-header {
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card {
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.category-card:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-card.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.category-card .icon {
  display: none;
}

/* Event cards - professional */
.events-gallery {
  padding: 48px 0 80px;
  min-height: 400px;
  scroll-margin-top: 80px;
}

.section-header {
  margin-bottom: 28px;
}

.section-header .section-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  min-height: 300px;
}

.event-card {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.event-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #d1d5db;
}

.event-image {
  height: 180px;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.event-image .event-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
  letter-spacing: 0.5px;
  background: rgba(0,0,0,0.6);
  color: #fff;
}

.event-placeholder {
  display: none;
}

.event-content {
  padding: 20px;
}

.event-date {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-main);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.event-info svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-price {
  display: flex;
  flex-direction: column;
}

.event-price .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-price .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* No results */
.no-results {
  padding: 64px 40px;
  text-align: center;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.no-results h3 {
  font-size: 1.125rem;
  color: var(--text-main);
}

.no-results p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.no-results svg {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Info tabs */
.info-tabs {
  padding: 0 0 56px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
}

.info-tabs-banner {
  height: 200px;
  background: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1200&q=80') center/cover;
  margin: 0 -24px 40px;
  border-radius: 0 0 8px 8px;
  position: relative;
}

.info-tabs-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,179,89,0.2) 0%, rgba(0,0,0,0.4) 100%);
  border-radius: 0 0 8px 8px;
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  padding: 4px;
  background: var(--bg-main);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
}

.tab-content {
  padding: 40px;
  border-radius: 8px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
}

.content-fade {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-content .section-title {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
}

.feature-icon {
  display: none;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-card {
  padding: 28px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.pricing-card.highlight {
  border-color: var(--primary);
  background: rgba(0, 179, 89, 0.06);
}

.pricing-card h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0;
}

.pricing-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.help-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
}

.help-item:hover {
  border-color: var(--primary);
  background: rgba(0, 179, 89, 0.06);
}

.help-item svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* Footer */
.footer {
  margin-top: 0;
  padding: 48px 0 32px;
  background: var(--text-main);
  color: #9ca3af;
}

.footer .logo-text {
  color: #fff;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: inherit;
}

.footer-brand p {
  color: #9ca3af;
  max-width: 280px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  color: #9ca3af;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.link-group h4 {
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.link-group a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.link-group a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #374151;
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-main);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-header h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.modal-header .event-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.ticket-selector h3,
.quantity-selector span {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.ticket-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
}

.ticket-option.active {
  border-color: var(--primary);
  background: rgba(0, 179, 89, 0.08);
}

.ticket-info .type {
  font-weight: 600;
}

.ticket-info .desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ticket-price {
  font-weight: 700;
  color: var(--text-main);
}

.quantity-selector {
  margin: 20px 0;
}

.controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.controls button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0 8px;
}

.summary {
  margin: 20px 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--bg-subtle);
}

.summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.summary .row.total {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}

/* App wrapper */
.app-wrapper {
  background: var(--bg-main);
}

.gradient-text {
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav-links,
  .search-bar {
    display: none;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .categories-grid {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .category-card {
    flex-shrink: 0;
  }
}
