/* Modern, responsive styles for Quick Recipes */
:root {
    --primary: #92c76c;
    --secondary: #6a8f4e;
    --accent: #ff914d;
    --light: #e2ebe4;
    --dark: #212529;
    --text: #333333;
    --text-light: #6c757d;
  }
  
  /* Reset and base styles */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
  }
  
  /* Typography */
  h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: var(--dark);
  }
  
  h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  a:hover {
    color: var(--accent);
  }
  
  /* Layout */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Header */
  header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .logo img {
    height: 85px;
  }
  
  .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
  }
  
  /* Navigation */
  nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
  }
  
  nav a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
  }
  
  nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
  }
  
  nav a:hover:after {
    width: 100%;
  }
  
  /* Hero Section */
  .hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://plus.unsplash.com/premium_photo-1663088985731-164aaf815976?q=80&w=3132&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    border: none;
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  
  .btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
  }
  
  .btn:hover {
    background-color: #e07e3d;
    transform: translateY(-2px);
    color: white;
  }
  
  /* Cards */
  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
  }
  
  .card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
  
  .card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    margin-bottom: 15px;
  }
  
  /* Recipe Pages */
  .recipe-header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .recipe-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
  }
  
  .ingredients, .instructions {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  }
  
  .ingredients ul, .instructions ol {
    padding-left: 20px;
  }
  
  .ingredients li, .instructions li {
    margin-bottom: 8px;
  }
  
  .back-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
  }
  
  /* Health Tips */
  .health-tips {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://healthcare.utah.edu/sites/g/files/zrelqx136/files/styles/wide_tablet/public/media/images/2024/GettyImages-1457889029-healthy%20food.jpg?itok=8-5FL73X') center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    border-radius: 10px;
  }
  
  .health-tips h2 {
    color: white;
    border: none;
  }
  
  /* Contact Form */
  .contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
  }
  
  .contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  }
  
  .contact-info ul {
    list-style: none;
  }
  
  .contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
  }
  
  .form-group textarea {
    min-height: 120px;
  }
  
  .submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
  }
  
  .submit-btn:hover {
    background-color: var(--secondary);
  }
  
  /* Nutrition Table */
  .nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
  }
  
  .nutrition-table th, 
  .nutrition-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  
  .nutrition-table th {
    background-color: var(--primary);
    color: white;
  }
  
  .nutrition-table tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  /* Footer */
  footer {
    background-color: var(--dark);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .footer-logo img {
    height: 30px;
  }
  
  .footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
  }
  
  .footer-links h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
  }
  
  .footer-links ul {
    list-style: none;
  }
  
  .footer-links li {
    margin-bottom: 10px;
  }
  
  .footer-links a {
    color: #adb5bd;
    transition: color 0.3s;
  }
  
  .footer-links a:hover {
    color: white;
  }
  
  .social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
  }
  
  .social-links a {
    color: white;
    font-size: 1.2rem;
  }
  
  .copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #adb5bd;
    font-size: 0.9rem;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .header-container {
      flex-direction: column;
      gap: 15px;
    }
    
    nav ul {
      gap: 15px;
    }
    
    .hero h1 {
      font-size: 2.2rem;
    }
    
    .contact-container {
      grid-template-columns: 1fr;
    }
    
    .footer-container {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  }
  
  /* Animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .animate {
    animation: fadeIn 0.6s ease-out forwards;
  }
  
  .delay-1 { animation-delay: 0.2s; }
  .delay-2 { animation-delay: 0.4s; }
  .delay-3 { animation-delay: 0.6s; }


  /* Success Message Styles */
#success-message {
  display: none;
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  border: 1px solid #c3e6cb;
  animation: fadeIn 1s ease-out;
}

#success-message p {
  margin: 0;
  font-weight: 500;
}