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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

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

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #667eea;
  text-decoration: none;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #667eea;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
  color: white;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: #ff6b6b;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

/* Trending Stats Section */
.trending-stats {
  background: white;
  padding: 4rem 0;
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card.trending {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.stat-card.trending::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 2s infinite;
}

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

.stat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.stat-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Price Range Stats */
.price-range-stats {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
}

.price-range-stats h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
  font-size: 1.5rem;
}

.price-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.price-label {
  min-width: 80px;
  font-weight: bold;
  color: #333;
}

.price-bar-fill {
  flex: 1;
  height: 20px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.price-count {
  min-width: 50px;
  text-align: right;
  font-weight: bold;
  color: #667eea;
}

/* Content Sections */
.section {
  background: white;
  margin: 2rem 0;
  padding: 3rem 0;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Trending Items Grid */
.trending-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.trending-item-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.trending-item-card:hover {
  transform: translateY(-5px);
}

.trending-rank {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff6b6b;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.trending-item-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.trending-item-ai-summary {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  display: inline-block;
}

.trending-item-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.trending-stat {
  font-size: 0.9rem;
  opacity: 0.9;
}

.trending-stat i {
  margin-right: 0.3rem;
}

/* Trending Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card.trending {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.category-card.trending:hover {
  transform: translateY(-3px);
}

.category-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.category-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-stat {
  font-size: 0.9rem;
  color: #666;
  padding: 0.3rem 0.8rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-stat.recent {
  background: #ff6b6b;
  color: white;
}

/* Expensive Item Highlight */
.expensive-highlight {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.expensive-item-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
}

.expensive-item-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.expensive-item-price {
  font-size: 3rem;
  font-weight: bold;
  color: #ff6b6b;
  margin-bottom: 1rem;
}

.expensive-item-details {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.expensive-restaurant,
.expensive-category {
  font-size: 0.9rem;
  color: #666;
}

/* Recent Items Grid */
.recent-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.recent-item-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.recent-item-card:hover {
  transform: translateY(-3px);
}

.recent-item-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.recent-item-restaurant {
  color: #667eea;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.recent-item-price {
  font-weight: bold;
  color: #28a745;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.recent-item-date {
  color: #666;
  font-size: 0.8rem;
}

/* Restaurant Cards */
.restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.restaurant-card.trending {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.restaurant-card.trending:hover {
  transform: translateY(-5px);
}

.restaurant-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.restaurant-trending-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trending-stat {
  color: #666;
  font-size: 0.9rem;
}

.trending-stat i {
  margin-right: 0.5rem;
  color: #667eea;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer p {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

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

  .trending-items-grid {
    grid-template-columns: 1fr;
  }

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

  .recent-items-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
  }

  .price-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .price-label {
    min-width: auto;
  }

  .price-count {
    min-width: auto;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .trending-item-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .category-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .expensive-item-details {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Cajun Pasta Theory */
.cajun-pasta-headline {
  text-align: center;
  margin-bottom: 3rem;
}

.cajun-pasta-percent {
  font-size: 5rem;
  font-weight: bold;
  line-height: 1;
  background: linear-gradient(135deg, #ff6b6b 0%, #d84315 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cajun-pasta-caption {
  color: #666;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.cajun-pasta h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.cajun-pasta-variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.cajun-pasta-variant {
  background: linear-gradient(135deg, #ff6b6b 0%, #d84315 100%);
  color: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cajun-pasta-variant:hover {
  transform: translateY(-5px);
}

.cajun-pasta-variant-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.cajun-pasta-variant-stats {
  opacity: 0.9;
  font-size: 0.95rem;
}

.cajun-pasta-empty {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding: 2rem 0;
}

.cajun-pasta-near-misses {
  display: grid;
  gap: 0.5rem;
}

.cajun-pasta-near-miss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background: #f7f7f9;
  border-left: 4px solid #ffa726;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.cajun-pasta-near-miss-name {
  font-weight: 600;
}

.cajun-pasta-near-miss-restaurant {
  color: #666;
  font-size: 0.9rem;
}

.cajun-pasta-near-miss-kind {
  margin-left: auto;
  background: #ffa726;
  color: white;
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .cajun-pasta-percent {
    font-size: 3.5rem;
  }

  .cajun-pasta-near-miss-kind {
    margin-left: 0;
  }
}
