/* Base Styles */
:root {
  --primary-color: #e74c3c;
  --secondary-color: #3498db;
  --accent-color: #f1c40f;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --text-color: #333333;
  --footer-color: #34495e;
  --success-color: #27ae60;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

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

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

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.section-title span {
  color: var(--primary-color);
}

/* Header & Navigation */
.header {
  background-color: white;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--dark-color);
  font-weight: 600;
}

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

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), #777;
  color: white;
  padding: 150px 0 100px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  background-color: #ddd;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

/* Features Section */
.features {
  background-color: var(--light-color);
}

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

.feature-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* Popular Recipes Section */
.recipes {
  background-color: white;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.recipe-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.recipe-card:hover {
  transform: translateY(-10px);
}

.recipe-image {
  height: 200px;
  background-color: #ddd;
}

.recipe-content {
  padding: 20px;
}

.recipe-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.recipe-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-color);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  margin: 20px;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 700;
}

/* Newsletter Section */
.newsletter {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.newsletter-title {
  color: white;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 15px;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

/* Blog Section */
.blog-preview {
  background-color: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-image {
  height: 200px;
  background-color: #ddd;
}

.blog-content {
  padding: 20px;
}

.blog-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blog-excerpt {
  margin-bottom: 15px;
}

/* Blog Page */
.blog-header {
  background-color: var(--dark-color);
  color: white;
  padding: 150px 0 50px;
  text-align: center;
}

.blog-header h1 {
  color: white;
}

.blog-list {
  padding: 80px 0;
}

.blog-post {
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.blog-post-header {
  margin-bottom: 30px;
}

.blog-post-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.blog-post-meta {
  color: #666;
  margin-bottom: 20px;
}

.blog-post-image {
  height: 400px;
  background-color: #ddd;
  margin-bottom: 30px;
  border-radius: 10px;
}

.blog-post-content {
  line-height: 1.8;
}

.blog-post-content p,
.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 20px;
}

.blog-post-content h2,
.blog-post-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Footer */
.footer {
  background-color: var(--footer-color);
  color: white;
  padding: 60px 0 20px;
}

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

.footer-logo {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: white;
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-links h3,
.footer-social h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
}

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

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  font-size: 1.5rem;
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Policy */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

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

.cookie-settings {
  background-color: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.cookie-settings:hover {
  background-color: var(--light-color);
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  display: none;
}

.modal-content {
  background-color: white;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

.cookie-option {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.cookie-option:last-child {
  border-bottom: none;
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--success-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 150px 0 80px;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--success-color);
  margin-bottom: 30px;
}

/* Legal Pages */
.legal-page {
  padding: 150px 0 80px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  margin-bottom: 20px;
}

.legal-section p, 
.legal-section ul {
  margin-bottom: 15px;
}

.legal-section ul {
  padding-left: 20px;
}

/* Media Queries */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .about-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-image {
    width: 100%;
    height: 300px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 15px 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .feature-card,
  .recipe-card,
  .blog-card {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .blog-post-title {
    font-size: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}
