:root {
  --RED: linear-gradient(90deg, #ee0039, #54091b);
  --WHITE: #ffffff;
  --PINK: #ffeee5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--WHITE);
}

.header {
  width: 100%;
  background-color: var(--WHITE);
}

.navbar {
  background: var(--RED);
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 90%;
  margin: 0 auto;
  padding: 15px 20px;
  border-radius: 50px;
  margin-top: 35px;
  position: relative;
  z-index: 10;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-menu-right {
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--WHITE);
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 20px;
}

.nav-link:hover {
  background-color: var(--PINK);
  color: var(--RED);
  transform: translateY(-2px);
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--WHITE);
}

.logo-img {
  width: 98px;
  height: 98px;
  object-fit: cover;
  border-radius: 50%;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
}

.modal-login .modal-content {
  width: 500px;
  height: 80%;
}

.modal-register .modal-content {
  width: 500px;
  height: 90%;
}

#modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: 120%;
  left: 0;
  background: var(--WHITE);
  list-style: none;
  padding: 12px 0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(238, 0, 57, 0.1);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  color: #54091b;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 19px;
  padding: 10px 20px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.dropdown-link::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--RED);
  transition: all 0.3s ease;
  z-index: -1;
}

.dropdown-link:hover {
  color: var(--WHITE);
  padding-left: 25px;
  transform: translateX(0);
}

.dropdown-link:hover::before {
  left: 0;
}

.dropdown-menu li {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.nav-item:hover .dropdown-menu li {
  opacity: 1;
  transform: translateX(0);
}

.dropdown-menu li:nth-child(1) {
  transition-delay: 0.1s;
}

.dropdown-menu li:nth-child(2) {
  transition-delay: 0.15s;
}

.dropdown-menu li:nth-child(3) {
  transition-delay: 0.2s;
}

.banner-container {
  position: relative;
  width: 95%;
  max-width: 90%;
  margin: 60px auto;
  height: 500px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--WHITE);
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.banner-slide.active .banner-content {
  transform: translateY(0);
}

.banner-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--PINK);
}

.banner-content p {
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 600px;
}

.banner-btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--RED);
  color: var(--WHITE);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.banner-btn:hover {
  background: var(--PINK);
  color: var(--RED);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.banner-control {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: var(--RED);
  color: var(--PINK);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.banner-control:hover {
  transform: translateY(-50%) scale(1.1);
}

.banner-control.prev {
  left: 20px;
}

.banner-control.next {
  right: 20px;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: var(--PINK);
  transform: scale(1.2);
}

.footer {
  background: var(--RED);
  color: var(--WHITE);
  padding: 60px 0 30px;
  margin-top: 80px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background-size: cover;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

.footer-section {
  padding: 0 15px;
}

.footer-section h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--PINK);
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--PINK);
  border-radius: 2px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.footer-section ul li::before {
  content: "➤";
  color: var(--PINK);
  margin-right: 10px;
  font-size: 12px;
}

.footer-section ul li a {
  color: var(--WHITE);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: var(--PINK);
  transform: translateX(5px);
}

.footer-section p {
  font-size: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-section p::before {
  content: "📍";
  margin-right: 10px;
  color: var(--PINK);
}

.newsletter-form {
  position: relative;
  margin-top: 20px;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--PINK);
  border-radius: 30px;
  background: transparent;
  color: var(--WHITE);
  font-family: Arial, sans-serif;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 7px 15px;
  background: var(--RED);
  color: var(--RED);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 238, 229, 0.2);
  font-size: 14px;
  color: var(--RED);
}

.cooking-icon {
  display: inline-block;
  margin: 0 5px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Phần Thân Trang */

.main-content {
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-title {
  text-align: center;
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 60px;
  background: var(--RED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.weekly-menu {
  margin-bottom: 80px;
  position: relative;
}

.section-title {
  font-size: 28px;
  margin-bottom: 40px;
  color: #54091b;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--RED);
  border-radius: 2px;
}

.menu-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.menu-days {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
  padding: 20px;
}

.day-card {
  flex: 0 0 calc(16.666% - 17px);
  background: var(--WHITE);
  border-radius: 20px;
  padding: 25px 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.day-card:nth-child(even) {
  background: var(--PINK);
}

.day-card:hover {
  transform: translateY(-10px);
  border-color: #ee0039;
  box-shadow: 0 15px 40px rgba(238, 0, 57, 0.2);
}

.day-number {
  font-size: 32px;
  font-weight: bold;
  color: #ee0039;
  margin-bottom: 15px;
}

.day-label {
  font-size: 16px;
  color: #54091b;
  margin-bottom: 20px;
  font-weight: bold;
}

.meal-category {
  margin-bottom: 20px;
}

.meal-item {
  margin-bottom: 15px;
}

.meal-image {
  width: 80px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.meal-name {
  font-size: 13px;
  font-weight: bold;
  color: #54091b;
  margin-bottom: 10px;
}

.detail-btn {
  background: transparent;
  border: 2px solid #ee0039;
  color: #ee0039;
  padding: 8px 16px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.detail-btn:hover {
  background: var(--RED);
  color: var(--WHITE);
  transform: scale(1.05);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--RED);
  color: var(--WHITE);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meal-planning {
  margin-bottom: 80px;
}

.planning-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.planning-card {
  background: var(--WHITE);
  padding: 40px 30px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.planning-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--RED);
  transition: all 0.4s ease;
  z-index: -1;
}

.planning-card:hover {
  border-color: #ee0039;
  transform: translateY(-10px);
  color: var(--WHITE);
}

.planning-card:hover::before {
  left: 0;
}

.planning-icon {
  font-size: 50px;
  margin-bottom: 20px;
  display: block;
}

.planning-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #54091b;
  transition: color 0.3s ease;
}

.planning-card:hover h3 {
  color: var(--WHITE);
}

.planning-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  transition: color 0.3s ease;
}

.planning-card:hover p {
  color: var(--PINK);
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(238, 0, 57, 0.3);
}

.featured-recipes {
  margin-bottom: 80px;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.recipe-card {
  background: var(--WHITE);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(238, 0, 57, 0.2);
}

.recipe-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-card:hover .recipe-image {
  transform: scale(1.1);
}

.recipe-info {
  padding: 25px;
}

.recipe-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #54091b;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.recipe-title {
  font-size: 20px;
  font-weight: bold;
  color: #54091b;
  margin-bottom: 15px;
}

.recipe-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ee0039;
  font-weight: bold;
  margin-bottom: 20px;
}

.view-recipe-btn {
  background: var(--RED);
  color: var(--WHITE);
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 14px;
}

.view-recipe-btn:hover {
  background: var(--PINK);
  color: #54091b;
  transform: translateY(-2px);
}

.like-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.like-btn:hover {
  background: var(--PINK);
  transform: scale(1.1);
}

.like-count {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(238, 0, 57, 0.9);
  color: var(--WHITE);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

