/* Navigation Styles */
.custom-nav {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity 0.2s;
}

.site-logo:hover {
  opacity: 0.8;
}

.site-logo img {
  max-height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Header Styles */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.page-header.with-image {
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  color: white;
}

.page-description {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
  opacity: 0.95;
  line-height: 1.6;
  color: white;
}

/* Footer Styles */
.custom-footer {
  background: #2c3e50;
  color: #ecf0f1;
  margin-top: 4rem;
  padding: 3rem 0 1rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.footer-section h3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-section h4 {
  color: #ecf0f1;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  color: #bdc3c7;
  line-height: 1.6;
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: #95a5a6;
  margin: 0;
  font-size: 0.9rem;
}

/* Home Page Styles */
.home-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px;
  margin: 2rem 0;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: white;
  color: #667eea;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.recent-recipes, .categories-section {
  margin: 3rem 0;
}

.section-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  text-align: center;
}

/* Recipe Grid and Cards */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.recipe-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.recipe-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
}

.recipe-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.recipe-card-placeholder svg {
  color: white;
  opacity: 0.5;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.recipe-card:hover .recipe-card-image img {
  transform: scale(1.05);
}

.recipe-card-content {
  padding: 1.5rem;
}

.recipe-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.recipe-card-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s;
}

.recipe-card-title a:hover {
  color: #e67e22;
}

.recipe-card-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.meta-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #ecf0f1;
  border-radius: 12px;
  font-size: 0.875rem;
  color: #2c3e50;
}

.difficulty-easy {
  background: #2ecc71;
  color: white;
}

.difficulty-medium {
  background: #f39c12;
  color: white;
}

.difficulty-hard {
  background: #e74c3c;
  color: white;
}

.recipe-card-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #3498db;
  color: white;
  border-radius: 12px;
  font-size: 0.875rem;
}

.recipe-card-summary {
  color: #7f8c8d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Recipe List Page */
.recipes-list-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.no-recipes {
  text-align: center;
  padding: 3rem;
  color: #95a5a6;
  font-size: 1.1rem;
}

/* Recipe Single Page */
.recipe-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.recipe-header {
  margin-bottom: 2rem;
}

.recipe-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  border-bottom: 3px solid #e67e22;
  padding-bottom: 0.5rem;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item svg {
  color: #e67e22;
}

.recipe-image {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.recipe-image img {
  width: 100%;
  height: auto;
  display: block;
}

.recipe-taxonomies {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #fff;
  border-left: 4px solid #e67e22;
}

.taxonomy-group {
  margin: 0.5rem 0;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0.25rem;
  border-radius: 16px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
}

.badge-category {
  background: #3498db;
  color: white;
}

.badge-category:hover {
  background: #2980b9;
}

.badge-cuisine {
  background: #e67e22;
  color: white;
}

.badge-cuisine:hover {
  background: #d35400;
}

.badge-tag {
  background: #95a5a6;
  color: white;
}

.badge-tag:hover {
  background: #7f8c8d;
}

.recipe-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.recipe-content h2 {
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 0.5rem;
}

.recipe-content ul, .recipe-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.recipe-content li {
  margin: 0.5rem 0;
}

.recipe-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ecf0f1;
  color: #7f8c8d;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.category-card {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-card h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.category-card .count {
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* View All Button */
.view-all {
  text-align: center;
  margin-top: 2rem;
}

.view-all-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.view-all-button:hover {
  background: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .header-content {
    padding: 2rem 1rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .page-description {
    font-size: 1rem;
  }

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

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

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

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .recipe-title {
    font-size: 2rem;
  }

  .recipe-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .custom-footer {
    padding: 2rem 0 1rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-links {
    text-align: center;
  }
}
