/* ==================== WO-BL-02: FOOD & RECIPE BLOG ==================== */
/* Foodie Chronicles - Culinary Blog Template */
/* Color Palette: Deep Orange, Sage Green, Warm Brown */

:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --secondary: #16a34a;
  --accent: #f59e0b;
  --text-dark: #1c1917;
  --text-light: #78716c;
  --bg-light: #fef7ed;
  --bg-sage: #f0fdf4;
  --white: #ffffff;
}

/* Override base colors */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
}

.btn-secondary {
  border-color: var(--primary);
  color: var(--primary);
}

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

.section-badge {
  background: rgba(234, 88, 12, 0.1);
  color: var(--primary);
}

/* Typography */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
}

/* Navbar */
.navbar-brand {
  font-family: 'Merriweather', serif;
  font-size: 1.75rem;
}

.navbar-brand span {
  color: var(--primary);
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--primary);
}

.navbar-link::after {
  background: var(--primary);
}

/* Hero Food Blog */
.hero-food-blog {
  min-height: 100vh;
  background: url('https://images.pexels.com/photos/1640777/pexels-photo-1640777.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-food-blog .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.85) 0%, rgba(234, 88, 12, 0.7) 100%);
}

.hero-food-blog .container {
  position: relative;
  z-index: 1;
}

.hero-food-blog .hero-content {
  max-width: 700px;
  color: var(--white);
  text-align: center;
  margin: 0 auto;
}

.hero-food-blog .hero-badge {
  background: rgba(245, 158, 11, 0.3);
  color: var(--white);
}

.hero-food-blog .hero-title {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.hero-food-blog .hero-title span {
  color: var(--accent);
}

.hero-food-blog .hero-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.hero-food-blog .hero-buttons {
  justify-content: center;
  margin-bottom: 40px;
}

.hero-food-blog .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.hero-food-blog .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 30px;
  }

  .stat-item {
    flex: 1 1 40%;
  }
}

/* Featured Post */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.featured-image {
  position: relative;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: var(--text-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--secondary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  width: fit-content;
}

.featured-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.post-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-image {
    height: 300px;
  }
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.post-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e7e5e4;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.post-image {
  position: relative;
  height: 200px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card .post-category {
  position: absolute;
  top: 16px;
  left: 16px;
}

.post-content {
  padding: 24px;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-content .post-excerpt {
  margin-bottom: 16px;
}

.post-content .post-meta {
  margin-bottom: 16px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--primary-dark);
}

@media (max-width: 1200px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--white);
  padding: 32px 20px;
  border-radius: 16px;
  text-align: center;
  border: 2px solid #e7e5e4;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.category-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.category-card span {
  color: var(--text-light);
  font-size: 0.8125rem;
}

@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e7e5e4;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.review-image {
  height: 160px;
}

.review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-content {
  padding: 20px;
}

.review-rating {
  color: var(--accent);
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.review-content h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.review-excerpt {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.review-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Newsletter */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.newsletter-content h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 16px;
}

.newsletter-form .form-input {
  flex: 1;
  border: none;
}

.newsletter-form .btn-primary {
  background: var(--secondary);
}

.newsletter-note {
  font-size: 0.875rem;
  opacity: 0.8;
}

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* Footer */
.footer-brand {
  font-family: 'Merriweather', serif;
}

.footer-brand span {
  color: var(--primary);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-link:hover {
  color: var(--primary);
}

/* Section Alt */
.section-alt {
  background: var(--bg-sage);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}
