/* Daily Tiffin & Co. - Main Stylesheet */

/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

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

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  flex-wrap: nowrap;
  overflow: visible;
}

.logo {
  height: 100px;
}

.tagline {
  font-family: 'Pacifico', cursive, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #FF9A76;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
  margin: 0 20px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-align: center;
}

/* Navigation */
nav {
  flex: 1;
}

nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #e76f24;
}
 .mobile-menu-btn {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            background-color: #333;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 24px;
            cursor: pointer;
            z-index: 1000;
            display: none; /* Hidden by default */
        }

        /* Show only when screen is 768px or smaller */
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }
        }


@media (max-width: 768px) {
    nav ul {
        display: none; /* Hide the menu by default */
        flex-direction: right; /* Stack the menu items vertically */
        position: absolute; /* Position it absolutely */
        background-color: white; /* Background color for the dropdown */
        width: 50%; /* Full width */
        z-index: 1000; /* Ensure it appears above other content */
    }
    nav ul.active {
        display: flex; /* Show the menu when active */
    }
    .mobile-menu-btn {
    align: right
        display:block; /* Show the mobile menu button */
    }
}
nav ul li {
    list-style: none; /* Remove bullet points */
}
.auth-links {
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.auth-btn {
  display: inline-block;
  padding: 5px 10px;
  margin-left: 10px;
  background-color: #f37527;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.auth-btn:hover {
  background-color: #f37527;
}

.hidden {
  display: none !important;
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #f37527;
  color: #333;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 800;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

/* Smaller button specifically for meal cards */
.meal-content .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 800;
}

.btn:hover {
  background-color: #f37527;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: #ff9a76;
}

.btn-secondary:hover {
  background-color: #ff8a5c;
}

/* Meal Cards Styles */
.meal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  clear: both;
}

.meal-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.meal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.meal-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.meal-content {
  padding: 10px;
}

.meal-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.meal-description {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.meal-price {
  font-weight: bold;
  font-size: 1.3rem;
  color: #f37527;
  margin-bottom: 10px;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
}

.section-title p {
  color: #777;
  max-width: 700px;
  margin: 0 auto;
}

/* Target Groups Section */
.target-groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 -15px;
}

.target-group-card {
  flex: 1 1 300px;
  margin: 15px;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.target-group-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.target-group-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.target-group-card p {
  color: #666;
  margin-bottom: 20px;
}

/* Subscription Options */
.subscription-options {
  background-color: #f0fff0;
  text-align: center;
}

.options-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.option-card {
  flex: 1 1 300px;
  max-width: 350px;
  padding: 40px 30px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.option-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.option-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
}

.option-card p {
  color: #666;
  margin-bottom: 25px;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f37527;
  margin-bottom: 25px;
}

.subscription-price {
  font-size: 0.9rem;
  color: #f37527;
  margin-bottom: 12px;
  padding: 8px;
  background-color: #f0fff0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.subscription-price .price-option {
  display: block;
  font-weight: 500;
}

.subscription-price .weekly {
  color: #ff7e00;
}

.subscription-price .monthly {
  color: #d15600;
}

/* Meal Navigation */
.meal-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 50px 0;
}

.meal-nav-btn {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 800;
}

/* Toggle Layout for Meal Pages */
.toggle-container {
  max-width: 400px;
  margin: 30px 0;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 10px;
  flex: 0 0 auto;
}

.toggle-section {
  margin-bottom: 20px;
}

.toggle-section h3 {
  margin-bottom: 15px;
  color: #333;
}

.toggle-options {
  display: flex;
  background-color: #e0e0e0;
  border-radius: 50px;
  padding: 3px;
  max-width: 100%;
  overflow-x: auto;
}

.toggle-option {
  flex: 0 1 auto;
  padding: 8px 15px;
  text-align: center;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  min-width: 80px;
}

.toggle-option.active {
  background-color: #f37527;
  color: #333;
  font-weight: 600;
}

/* Meal Section Layout */
#meal-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}

/* Meal Cards Grid */
.meal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 0;
  flex: 1;
}

.meal-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 100%;
}

.meal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.meal-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.meal-content {
  padding: 10px;
}

.meal-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #333;
}

.meal-description {
  color: #666;
  margin-bottom: 6px;
  font-size: 0.8rem;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meal-price {
  font-weight: 700;
  color: #f37527;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 20px 0 15px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 250px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-column h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #f37527;
}

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

.footer-column ul li {
  margin-bottom: 5px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: #f37527;
}

.copyright {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #555;
  margin-top: 15px;
  color: #aaa;
  font-size: 0.9rem;
}

/* Notification Messages */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out forwards, fadeOut 0.5s ease-out 1.5s forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 300px;
}

.notification.success {
    background-color: #e7ffe7;
    color: #008000;
    border-left: 4px solid #f37527;
}

.notification.error {
    background-color: #fff2f2;
    color: #d32f2f;
    border-left: 4px solid #f44336;
}

.notification i {
    margin-right: 8px;
    font-size: 16px;
}

@keyframes slideIn {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 10px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #333;
}

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

.form-group button.btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #f37527;
  color: #333;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}

.form-group button.btn:hover {
  background-color: #f37527;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }
  
  nav {
    margin-top: 15px;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 10px 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .toggle-options {
    flex-direction: column;
    background-color: transparent;
    padding: 0;
  }
  
  .toggle-option {
    margin-bottom: 10px;
    background-color: #e0e0e0;
  }
  
  .mobile-menu-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-weight: 800;
  }
  
  nav ul {
    display: none;
  }
  
  nav ul.show {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 800;
  }
}
