/*
Theme Name: Convotra Recipe Theme
Author: Convotra AI
Version: 1.0
Description: Modern, premium, responsive recipe website with warm food-inspired colors and elegant typography.
*/

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff8f0;
  color: #4b3b2b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #d35400;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover, a:focus {
  color: #e67e22;
  outline: none;
}

/* Scroll smooth */
html {
  scroll-behavior: smooth;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75em 1.75em;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
  user-select: none;
  text-align: center;
}
.btn-primary {
  background: #d35400;
  color: #fff;
  box-shadow: 0 6px 12px rgba(211, 84, 0, 0.4);
}
.btn-primary:hover, .btn-primary:focus {
  background: #e67e22;
  box-shadow: 0 8px 16px rgba(230, 126, 34, 0.5);
  outline: none;
}
.btn-secondary {
  background: #f7e7d3;
  color: #d35400;
  box-shadow: 0 6px 12px rgba(215, 180, 140, 0.4);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #f9f1e7;
  box-shadow: 0 8px 16px rgba(215, 180, 140, 0.6);
  outline: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1470&q=80') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  color: #fff;
  backdrop-filter: brightness(0.7);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(211, 84, 0, 0.5);
  mix-blend-mode: multiply;
  border-radius: 0 0 40px 40px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 700px;
  z-index: 1;
  backdrop-filter: blur(6px);
  background: rgba(255 255 255 / 0.15);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 8px 32px rgba(211, 84, 0, 0.4);
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  font-family: 'Georgia', serif;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.search-form {
  display: flex;
  max-width: 100%;
  margin: 0 auto 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(211, 84, 0, 0.3);
  background: rgba(255 255 255 / 0.85);
}
.search-form input[type="search"] {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  outline: none;
  color: #4b3b2b;
  font-weight: 600;
}
.search-form input[type="search"]::placeholder {
  color: #b07a3a;
  font-weight: 400;
}
.search-form button {
  background: #d35400;
  border: none;
  color: white;
  padding: 0 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.search-form button:hover, .search-form button:focus {
  background: #e67e22;
  outline: none;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section base */
.section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1rem;
}
.section h2 {
  font-family: 'Georgia', serif;
  font-weight: 900;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #d35400;
  text-align: center;
}

/* Featured Recipes Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.recipe-card {
  background: rgba(255 255 255 / 0.6);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(211, 84, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.recipe-card:focus, .recipe-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(211, 84, 0, 0.3);
  outline: none;
}
.recipe-image-link {
  display: block;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}
.recipe-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 24px 24px 0 0;
}
.recipe-card:hover .recipe-image, .recipe-card:focus .recipe-image {
  transform: scale(1.05);
}
.recipe-info {
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.recipe-title {
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: #b34700;
}
.recipe-title a {
  color: inherit;
}
.recipe-meta {
  font-size: 0.875rem;
  color: #7a5a2a;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.recipe-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}
.recipe-description {
  font-size: 0.95rem;
  color: #5a4630;
  flex-grow: 1;
}

/* Categories Section */
.category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  padding: 0;
  list-style: none;
}
.category-link {
  background: #f7e7d3;
  color: #d35400;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 24px;
  box-shadow: 0 6px 16px rgba(211, 84, 0, 0.25);
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}
.category-link:hover, .category-link:focus {
  background: #e67e22;
  color: #fff;
  outline: none;
}

/* Trending Recipes Carousel */
.trending-recipes {
  position: relative;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.trending-slider {
  display: flex;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.trending-card {
  flex: 0 0 auto;
  width: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(211, 84, 0, 0.15);
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trending-card:focus, .trending-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(211, 84, 0, 0.3);
  outline: none;
}
.trending-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.trending-card:hover .trending-image, .trending-card:focus .trending-image {
  transform: scale(1.05);
}
.trending-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(211, 84, 0, 0.8));
  color: white;
  padding: 1rem;
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Chef Recommendation Section */
.chef-recommendation-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(211, 84, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chef-recommendation-card:focus, .chef-recommendation-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(211, 84, 0, 0.5);
  outline: none;
}
.chef-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.3s ease;
}
.chef-recommendation-card:hover .chef-image, .chef-recommendation-card:focus .chef-image {
  filter: brightness(1);
}
.overlay-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: #fff;
  max-width: 60%;
  font-family: 'Georgia', serif;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.overlay-text h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.overlay-text p {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Video Recipes Section */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.video-card {
  background: rgba(255 255 255 / 0.6);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(211, 84, 0, 0.15);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:focus, .video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(211, 84, 0, 0.3);
  outline: none;
}
.video-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.video-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}
.video-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.video-card:hover .video-image, .video-card:focus .video-image {
  transform: scale(1.05);
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(211, 84, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}
.play-button span {
  display: block;
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}
.video-card:hover .play-button, .video-card:focus .play-button {
  background: #e67e22;
}
.video-title {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #b34700;
}

/* Newsletter Section */
.newsletter {
  background: linear-gradient(135deg, #f9f1e7, #f7e7d3);
  padding: 3rem 1rem;
  border-radius: 32px;
  max-width: 600px;
  margin: 4rem auto;
  box-shadow: 0 12px 40px rgba(211, 84, 0, 0.2);
  text-align: center;
}
.newsletter h2 {
  margin-bottom: 1.5rem;
  color: #d35400;
}
.newsletter-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex-grow: 1;
  min-width: 220px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 2px solid #d35400;
  font-size: 1rem;
  font-weight: 600;
  outline-offset: 2px;
  transition: border-color 0.3s ease;
}
.newsletter-form input[type="email"]:focus {
  border-color: #e67e22;
}
.newsletter-form button {
  padding: 0.75rem 2rem;
  border-radius: 12px;
  border: none;
  background: #d35400;
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(211, 84, 0, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.newsletter-form button:hover, .newsletter-form button:focus {
  background: #e67e22;
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.6);
  outline: none;
}

/* Footer */
.site-footer {
  background: #4b3b2b;
  color: #f7e7d3;
  padding: 3rem 1rem 2rem 1rem;
  font-size: 0.9rem;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}
.footer-content {
  max-width: 1100px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-social {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.social-link {
  color: #f7e7d3;
  font-weight: 600;
  transition: color 0.3s ease;
  user-select: none;
}
.social-link:hover, .social-link:focus {
  color: #e67e22;
  outline: none;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}
.footer-nav a {
  color: #f7e7d3;
  font-weight: 600;
  transition: color 0.3s ease;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #e67e22;
  outline: none;
}
.footer-contact p {
  margin: 0.25rem 0;
}
.footer-contact a {
  color: #f7e7d3;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #e67e22;
  outline: none;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(247, 231, 211, 0.3);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #d7b77f;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .recipe-image {
    height: 140px;
  }
  .trending-card, .video-card {
    width: 220px;
  }
  .chef-image {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .recipe-meta {
    font-size: 0.8rem;
  }
  .recipe-description {
    font-size: 0.85rem;
  }
  .category-list {
    gap: 1rem 1rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}
