/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #333;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Top Bar */
  .top-bar {
    background-color: #ff3366;
    color: white;
    padding: 10px 0;
  }
  
  .top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .social-icons a {
    margin-right: 15px;
    font-size: 18px;
    color: white;
  }
  
  .auth-links a {
    color: white;
    font-weight: 500;
  }
  
  /* Header & Navigation */
  .main-header {
    padding: 20px 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo h1 {
    font-size: 2.5rem;
    color: #444;
    font-weight: 700;
    margin-bottom: 5px;
  }
  
  .logo p {
    font-size: 0.8rem;
    color: #777;
    letter-spacing: 2px;
  }
  
  .main-nav {
    display: flex;
    align-items: center;
  }
  
  .main-nav ul {
    display: flex;
  }
  
  .main-nav li {
    margin-left: 25px;
  }
  
  .main-nav a {
    color: #444;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .main-nav a:hover {
    color: #ff3366;
  }
  
  .search-icon {
    margin-left: 25px;
    font-size: 18px;
    color: #ff3366;
    cursor: pointer;
    background-color: #f8f8f8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Hero Section */
  .hero {
    height: 500px;
    background-image: url("img/nav bac.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-content {
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
  }
  
  .hero-title {
    margin-bottom: 200px;
  }
  
  .hero-title h2 {
    display: inline-block;
    background-color: #ff3366;
    color: white;
    font-size: 3rem;
    padding: 10px 30px;
    margin-bottom: 10px;
  }
  
  .subtitle {
    display: inline-block;
    background-color: #ffcc66;
    color: white;
    font-size: 1.5rem;
    padding: 5px 20px;
    transform: translateX(50px);
    align-self: flex-end;
    margin-right: 100px;
  }
  
  @media (max-width: 768px) {
    .hero-title {
      margin-bottom: 150px;
    }
  
    .hero-title h2 {
      font-size: 2rem;
      padding: 10px 20px;
    }
  
    .subtitle {
      font-size: 1rem;
      transform: translateX(20px);
      margin-right: 50px;
    }
  }
  
  @media (max-width: 576px) {
    .hero-title {
      margin-bottom: 100px;
    }
  
    .hero-title h2 {
      font-size: 1.5rem;
    }
  
    .subtitle {
      font-size: 0.9rem;
      margin-right: 30px;
    }
  }
  
  /* Featured Recipes */
  .featured-recipes {
    padding: 50px 0;
    background-color: #f9f9f9;
  }
  
  .recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .recipe-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background-color: white;
  }
  
  .recipe-card:hover {
    transform: translateY(-10px);
  }
  
  .recipe-image {
    height: 250px;
    overflow: hidden;
  }
  
  .recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .recipe-info {
    background-color: #ff3366;
    color: white;
    padding: 15px;
  }
  
  .recipe-info h3 {
    margin-bottom: 10px;
  }
  
  .rating {
    color: #ffcc00;
  }
  
  /* Footer */
  .main-footer {
    background-image: url("img/bu.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 50px 0 20px;
    position: relative;
  }
  
  .main-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 0;
  }
  
  .main-footer .container {
    position: relative;
    z-index: 1;
  }
  
  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
  }
  
  .footer-nav ul {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
  }
  
  .footer-nav li {
    margin: 0 15px;
  }
  
  .copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
  }
  
  .copyright a {
    color: #ff3366;
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
  }
  
  .modal-content {
    background: white;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    transition: color 0.3s;
  }
  
  .close-modal:hover {
    color: #ff3366;
  }
  
  .modal-content h2 {
    margin: 0 0 20px;
    color: #ff3366;
    font-size: 28px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
  }
  
  .modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  
  .modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
  }
  
  .modal-details p {
    margin: 0;
    font-size: 16px;
  }
  
  .modal-ingredients,
  .modal-instructions {
    margin-bottom: 25px;
  }
  
  .modal-ingredients h3,
  .modal-instructions h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
  }
  
  .modal-ingredients ul,
  .modal-instructions ol {
    padding-left: 25px;
  }
  
  .modal-ingredients li,
  .modal-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
  }
  
  .close-btn {
    background-color: #ff3366;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
    display: block;
    margin: 20px auto 0;
  }
  
  .close-btn:hover {
    background-color: #e62958;
  }
  
  .view-recipe-btn {
    background-color: #ff3366;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 500;
    transition: background-color 0.3s;
    width: 100%;
  }
  
  .view-recipe-btn:hover {
    background-color: #e62958;
  }
  
.close-btn {
    background-color: #ff5252;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.close-btn:hover {
    background-color: #ff0000;
}
/* Filter Styles */
.filter-section {
  background-color: #f5f5f5;
  padding: 20px 0;
  margin-bottom: 30px;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 500;
  color: #555;
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
  min-width: 180px;
  font-size: 14px;
  cursor: pointer;
}

.reset-btn {
  background-color: #ff3366;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.reset-btn:hover {
  background-color: #e62958;
}
  /* Responsive Styles */
  @media (max-width: 992px) {
    .main-header .container {
      flex-direction: column;
      text-align: center;
    }
  
    .logo {
      margin-bottom: 20px;
    }
  
    .hero-title h2 {
      font-size: 2.5rem;
    }
  
    .hero-title .subtitle {
      font-size: 1.2rem;
    }
  }
  
  @media (max-width: 768px) {
    .top-bar .container {
      flex-direction: column;
    }
  
    .social-icons {
      margin-bottom: 10px;
    }
  
    .main-nav {
      flex-direction: column;
    }
  
    .main-nav ul {
      flex-direction: column;
      text-align: center;
      margin-bottom: 15px;
    }
  
    .main-nav li {
      margin: 10px 0;
    }
  
    .search-icon {
      margin: 0;
    }
  
    .hero-title h2 {
      font-size: 2rem;
      padding: 10px 20px;
    }
  
    .hero-title .subtitle {
      font-size: 1rem;
      transform: translateX(20px);
    }
  
    .recipe-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
  
    .footer-top {
      flex-direction: column;
    }
  
    .footer-top .logo {
      margin-bottom: 20px;
    }
  
    .footer-nav ul {
      flex-wrap: wrap;
    }
  
    .footer-nav li {
      margin: 5px 10px;
    }
    .modal-content {
      padding: 20px;
      width: 95%;
    }
  
    .modal-details {
      grid-template-columns: 1fr;
    }
  
    .modal-image {
      height: 200px;
    }
      .filter-container {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .filter-group {
      width: 100%;
  }
  
  .filter-group select {
      width: 100%;
  }
}

  
  @media (max-width: 576px) {
    .hero {
      height: 400px;
    }
  
    .hero-title h2 {
      font-size: 1.5rem;
    }
  
    .hero-title .subtitle {
      font-size: 0.9rem;
    }
  
    .recipe-grid {
      grid-template-columns: 1fr;
    }
    .modal-content {
      padding: 20px;
      width: 95%;
    }
  
    .modal-details {
      grid-template-columns: 1fr;
    }
  
    .modal-image {
      height: 200px;
    }
  }