/**
 * ChicagoComedy.net Styles
 * Extracted from legacy index.html
 */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.6s ease;
}

#logo {
  margin-bottom: 10px;
}

#logo img {
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

#tagline {
  color: white;
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 20px;
  opacity: 0.9;
}

nav {
  background: rgba(255,255,255,0.95);
  padding: 15px 30px;
  border-radius: 50px;
  display: inline-flex;
  gap: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

nav a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  cursor: pointer;
}

nav a:hover {
  color: #764ba2;
}

nav a.active {
  color: #764ba2;
}

.page-title {
  background: white;
  padding: 20px 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease 0.1s backwards;
}

.page-title h1 {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.page-title p {
  color: #666;
  font-size: 15px;
}

.controls {
  background: white;
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease 0.2s backwards;
}

.search-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-bar input {
  flex: 1;
  min-width: 250px;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.search-bar input:focus {
  outline: none;
  border-color: #667eea;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.filter-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.headDate {
  background: white;
  padding: 15px 25px;
  border-radius: 15px;
  margin: 30px 0 20px 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  animation: fadeIn 0.4s ease;
}

.events-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.eventcard {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
  animation: slideUp 0.5s ease backwards;
  display: grid;
  grid-template-columns: 100px auto 90px;
  gap: 20px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.eventcard::before {
  content: '🎤';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 80px;
  opacity: 0.05;
}

.eventcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  cursor: pointer;
}

.box1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-right: 20px;
  border-right: 3px solid #f0f0f0;
}

.time {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  line-height: 1.2;
}

.time-period {
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flierbox {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.flier {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.flierbox:hover .flier {
  transform: scale(1.1);
}

.box2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.event_showname {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-cancelled {
  background: #ffebee;
  color: #c62828;
}

.status-postponed {
  background: #fff3e0;
  color: #e65100;
}

.status-rescheduled {
  background: #e3f2fd;
  color: #1565c0;
}

.status-tentative {
  background: #f3e5f5;
  color: #6a1b9a;
}

.event_showvenue {
  color: #667eea;
  font-weight: 600;
  font-size: 14px;
}

.event_showvenue a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s;
}

.event_showvenue a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.map-icon {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
}

.event_showdetails {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.neighborhood-tag {
  display: inline-block;
  background: #f0f0f0;
  color: #667eea;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.price-tag {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  margin-left: 6px;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.loading img {
  max-width: 200px;
  margin-bottom: 20px;
}

.loading-text {
  color: #667eea;
  font-weight: 600;
  font-size: 18px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 20px;
  color: #666;
  font-size: 16px;
}

.info-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease;
}

.info-content h2 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 24px;
}

.info-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
}

.info-content a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.info-content a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Event Detail Page Specific */
.event-detail {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease;
}

.event-detail .back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.event-detail .back-link:hover {
  color: #764ba2;
}

.event-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.event-header h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #666;
  font-size: 15px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.event-description {
  color: #666;
  line-height: 1.8;
  font-size: 16px;
}

.event-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.event-image img {
  width: 100%;
  height: auto;
}

.event-venue-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
}

.event-venue-box h3 {
  color: #667eea;
  margin-bottom: 10px;
}

.event-venue-box p {
  color: #666;
  margin-bottom: 8px;
  font-size: 14px;
}

.mbt-link {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.mbt-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar input {
    min-width: 100%;
  }

  .page-title h1 {
    font-size: 24px;
  }

  .eventcard {
    grid-template-columns: 80px auto;
    gap: 15px;
  }

  .box1 {
    border-right: 2px solid #f0f0f0;
    padding-right: 15px;
  }

  .time {
    font-size: 20px;
  }

  .flierbox {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-top: 10px;
  }

  .event-body {
    grid-template-columns: 1fr;
  }

  .info-content {
    padding: 25px;
  }

  .event-detail {
    padding: 25px;
  }
}
