/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    background: #f8f8f8;
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
    gap: 2rem;
}

.logo img {
    height: 110px;
    width: 110px;
    mix-blend-mode: multiply;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: color 0.3s ease;
}


.nav-links a:hover {
    color: #E6184F;
}

/* Search Bar */
.search-container {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    width: 250px;
    font-size: 0.9rem;
}

.search-btn {
    padding: 0.5rem 1.5rem;
    background: #E6184F;
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}
/* Filters Section */
.filters {
    width: 100%;
    background: #f8f8f8;
    padding: 1.5rem 5%;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: #E6184F;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.filters button:hover {
    background:#d31648;
    transform: translateY(-2px);
}
.search-btn:hover {
    background: #E6184F;
}

/* Image Slider */
.slider-container {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    padding: 10px 0; /* Add vertical padding */
}

.slider-wrapper {
    width: 200%;
    display: flex;
}

.slider {
    display: flex;
    width: 100%;
    animation: slide 20s linear infinite;
    gap: 15px; /* Add gap between images */
    padding: 0 15px; /* Add horizontal padding */
}

.slider img {
    width: calc(20% - 7.5px); /* Account for gap */
    height: 400px;
    object-fit: cover;
    filter: grayscale(30%);
    transition: all 0.3s ease;
    border-radius: 8px; /* Optional rounded corners */
}

.slider img:hover {
    filter: grayscale(0);
    transform: scale(1.02); /* Add hover effect */
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Main Content */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5%;
    flex: 1;
}

h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

/* Recipe Grid - Flip Card Version */
.container {
    max-width: none;
    padding: 0 2%;
    width: 100%;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 96%;
    margin: 0 auto 4rem;
    perspective: 1000px;
}

.recipe-card {
    width: 100%;
    height: 400px; /* Fixed height for consistent flipping */
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    cursor: pointer;
}

.recipe-card:hover {
    transform: none;
}
.recipe-card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.card-back {
    transform: rotateY(180deg);
    background: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recipe-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
}

.recipe-name {
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    background: white;
}

.recipe-details {
    height: calc(100% - 100px);
    padding: 1rem;
    overflow-y: auto;
}

.see-more-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    background: #E6184F;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease;
}
/* Add to styles.css */
/* Blog Section Enhancements */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}
.recipe-meta {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
}

.serving-calculator {
    margin: 15px 0;
}

.serving-calculator input {
    width: 60px;
    padding: 5px;
    margin-left: 10px;
}

.nutrition-facts ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0;
}
.blog-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
    position: relative;
}

.blog-post:hover {
    transform: translateY(-7px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.post-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background:#E6184F;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-content {
    padding: 1.8rem;
}

.post-content h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-meta i {
    font-size: 0.9em;
    color: #E6184F;
}

.post-content p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    font-size: 1rem;
}

.read-more {
    color: #E6184F;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #d31648;
;
    text-decoration: underline;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Blog Post Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .post-image {
        height: 200px;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-content h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .post-meta {
        flex-direction: column;
        align-items: start;
        gap: 0.5rem;
    }
    
    .post-category {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }
}
.see-more-btn:hover {
    background: #d31648;
;
}

@media (max-width: 1200px) {
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    width: 100%;
    padding: 0 5%;
    margin: 0 auto 2rem;
    height: auto;
    min-height: 300px;
    }
    
    .recipe-card {
        height: 350px;
    }
}
/* Fact Section */
.fact-section {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.fact-section blockquote {
    font-style: italic;
    color: #666;
    border-left: 4px solid #E6184F;
    padding-left: 1.5rem;
    margin: 1rem 0;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 5%;
    text-align: center;
    margin-top: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color:#E6184F;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .search-container {
        width: 100%;
        margin-left: 0;
    }

    .search-input {
        width: 100%;
    }

    .slider img {
        height: 250px;
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .slider img {
        height: 200px;
    }
}
/* Login Page Styles */
.login-container {
    display: flex;
    min-height: calc(100vh - 200px);
    align-items: center;
    justify-content: space-around;
    padding: 2rem 5%;
    background: #f9f9f9;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.login-card h2 {
    color:#E6184F;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #444;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 10px;
    color: #888;
}

.input-with-icon input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #888;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.forgot-password {
    color: #E6184F;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-btn {
    background: #E6184F;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #d31648;
;
}

.social-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-login p {
    color: #666;
    position: relative;
    width: 100%;
    text-align: center;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 30%;
    background: #ddd;
    top: 50%;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #666;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #E6184F;
    color: white;
}

.signup-link {
    text-align: center;
    color: #666;
}

.signup-link a {
    color: #E6184F;
    text-decoration: none;
    font-weight: 500;
}

.login-image {
    display: none;
}

@media (min-width: 992px) {
    .login-image {
        display: block;
        width: 45%;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .login-image img {
        width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 2rem;
    }
    
    .login-card {
        padding: 2rem;
    }

.error-message {
    color: #E6184F;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: none;
}

.input-error {
    border-color: #E6184F !important;
}

.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.fav-btn:hover {
    color: #E6184F;
    transform: scale(1.1);
}
.fav-btn i {
    font-size: 1.5rem;
    color: #E6184F;
}
.fav-btn.active i {
    color: #f39c12;
}
.fav-btn.active {
    background: rgba(243, 156, 18, 0.9);
}
.fav-btn.active:hover {
    background: rgba(243, 156, 18, 0.8);
}
.empty-state {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.empty-state a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #ff9800;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

.btn-remove {
  background: #dc3545;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-remove:hover {
  background: #bb2d3b;
}

}
/* Review Bar Styles */
.review-bar {
  display: flex;
  flex-direction: column;
  padding: 10px 15px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-radius: 0 0 10px 10px;
  margin-top: auto;
}

.review-stars {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

.review-stars i {
  color: #ffc107;
  font-size: 1.2rem;
  cursor: pointer;
  margin: 0 2px;
  transition: transform 0.2s ease;
}

.review-stars i:hover {
  transform: scale(1.2);
}

.review-count {
  font-size: 0.8rem;
  color: #6c757d;
  text-align: center;
}

.review-submit {
  background: #E6184F;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  margin-top: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.3s ease;
}

.review-submit:hover {
  background: #d31648;
;
}
/* Meal Planner Styles */
.meal-planner-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.meal-day {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.meal-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.meal-day-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.add-meal-btn {
  background: #E6184F;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meal-slot {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  position: relative;
}

.meal-slot-title {
  font-weight: 500;
  margin-bottom: 5px;
}

.meal-recipe {
  background: white;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
}

.meal-recipe img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}

.meal-recipe-info {
  flex: 1;
}

.remove-recipe {
  background: none;
  border: none;
  color: #E6184F;
  cursor: pointer;
  margin-left: 10px;
}

/* Modal Styles */
.recipe-search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.close-modal {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.modal-recipe-results {
  margin-top: 15px;
}

.modal-recipe-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.modal-recipe-item:hover {
  background: #f5f5f5;
}

.modal-recipe-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

@media (max-width: 768px) {
  .meal-planner-grid {
    grid-template-columns: 1fr;
  }
}
/* Contact Section Styles */
.contact-section {
  padding: 50px 20px;
  background-image: url('https://img.freepik.com/premium-photo/white-wooden-banner-cooking-top-view-free-space-your-text-rustic-style_187166-17842.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.contact-section h2,
.contact-container {
  position: relative;
  z-index: 2;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.phone-group .phone-input-container {
  display: flex;
  align-items: center;
}

.phone-group #phoneCode {
  background-color: #f0f0f0;
  padding: 12px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-weight: 500;
  min-width: 60px;
  text-align: center;
}

.phone-group input {
  border-radius: 0 4px 4px 0;
  flex: 1;
}

.submit-btn {
  background-color: #ff6b6b;
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #E6184F;
}

@media (max-width: 768px) {
  .contact-container {
    padding: 20px;
  }
}
/* Enhanced Favorite and Compare Button Styles */
.fav-btn, .compare-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.fav-btn {
    top: 10px;
    right: 10px;
}

.compare-btn {
    top: 10px;
    right: 60px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 8px 12px;
    background: #E6184F;
    color: white;
}

.fav-btn:hover, .compare-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.fav-btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

.compare-btn:hover {
    background: rgba(41, 128, 185, 0.95);
}

.fav-btn i {
    font-size: 1.5rem;
    color: #E6184F;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.fav-btn.active {
    background: rgba(243, 156, 18, 0.9);
}

.fav-btn.active:hover {
    background: rgba(243, 156, 18, 0.95);
}

.fav-btn.active i {
    color: white;
}
/* Enhanced Favorite and Compare Button Styles */
.fav-btn, .compare-btn {
    position: static;
    display: inline-block;
    margin-top: 10px;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.recipe-name {
    padding: 1rem 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recipe-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.fav-btn {
    background: #f4f1f1;
    color: white;
}

.compare-btn {
    background: #E6184F;
    color: white;
}

.fav-btn:hover, .compare-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.fav-btn:hover {
    background: #ebd8d5;
}

.compare-btn:hover {
    background: #e6184fc6;
}

.fav-btn i {
    margin-right: 5px;
}
/*The text "Yummy" is in a bold red color. A close hex approximation is around #E6184F.
The orange-yellow outline around the text is approximately #F9A825.
The blue accent lines are approximately #3AD4E8.