* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Newsreader', serif;
  background-color: #f9f9f9;
  color: #1a1c1c;
  line-height: 1.6;
}

body.dark-mode {
  background-color: #000000 !important;
  color: #f8fafc;
}


.top-nav {
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(249, 249, 249, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.dark-mode .top-nav {
  background-color: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1536px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #ab3500;
  letter-spacing: -0.05em;
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
  }
}


.nav-link {
  text-decoration: none;
  color: #475569;
  transition: all 0.3s ease;
}

body.dark-mode .nav-link {
  color: #cbd5e1;
}

.nav-link:hover {
  color: #ab3500;
}

body.dark-mode .nav-link:hover {
  color: #ab3500;
}

.nav-link.active {
  color: #ab3500;
  border-bottom: 2px solid #ab3500;
  padding-bottom: 0.25rem;
}

body.dark-mode .nav-link.active {
  color: #ab3500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #1a1c1c;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

body.dark-mode .theme-toggle-btn {
  background: #0a0a0a;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

body.dark-mode .theme-toggle-btn:hover {
  background: #111111;
}

.leftColumn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #000;
  margin-left: 10px;
}


.loadingScreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  gap: 20px;
}

.spinner {
  border: 4px solid #ffffff;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.container {
  max-width: 1400px;
  margin: auto;
  padding: 40px;
}


.hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}


.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.upper {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
}

body.dark-mode .upper {
  background: rgba(0, 0, 0, 0.8) !important;
}


.content {
  position: relative;
  z-index: 1;
  width: 50%;
  padding: 50px;
  color: white;
}


.choice {
  display: inline-block;
  background: orange;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 20px;
}

.content h1 {
  font-size: 60px;
  margin: 0;
  font-weight: 900;
}


.ontent p {
  font-size: 18px;
  opacity: 0.9;
  margin-top: 20px;
  max-width: 400px;
  font-style: italic;
}

.recipeButton {
  margin-top: 20px;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  background: #FF6B35;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s;
}

.recipeButton:hover {
  transform: scale(1.05);
}

.search {
  margin-top: -100px;
  padding: 40px;
  display: flex;
  justify-content: center;
}

.searchBox {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  gap: 20px;
  max-width: 800px;
  width: 100%;
}

body.dark-mode .searchBox {
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -5px rgba(255, 255, 255, 0.05);
}


.input {
  flex: 1;
}

.input input {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
}

body.dark-mode .input input {
  background-color: #000000;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.explore {
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  background: teal;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.explore:hover {
  transform: scale(1.05);
}

.recipeCard {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .recipeCard {
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-container {
  position: relative;
  height: 288px;
  /* h-72 */
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.recipe-card:hover img {
  transform: scale(1.1);
}

/* Rating Badge */
.rating {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.dark-mode .rating {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.star {
  color: orange;
  font-size: 14px;
}

.rating-text {
  font-size: 14px;
  font-weight: bold;
}

/* Content */
.card-content {
  padding: 32px;
}

/* Tag */
.tags {
  margin-bottom: 10px;
}

.tag {
  background: #e0f2f1;
  color: #00695c;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.dark-mode .tag {
  background: rgba(10, 10, 10, 0.9);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Title */
.card-content h3 {
  font-size: 24px;
  margin: 10px 0;
  font-weight: 600;
  color: #111;
}

body.dark-mode .card-content h3 {
  color: #ffffff;
}

/* Info Row */
.info {
  display: flex;
  gap: 24px;
  font-size: 12px;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.dark-mode .info {
  color: #94a3b8;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 5px;
}


.most-loved {
  background: #f5f5f5;
  padding: 96px 0;
}

body.dark-mode .most-loved {
  background: #050505;
}

.most-loved-container {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.most-loved-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
  margin: 0;
}

body.dark-mode .title {
  color: #ffffff;
}

.subtitle {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  font-style: italic;
  color: #666;
  margin-top: 8px;
}

body.dark-mode .subtitle {
  color: #94a3b8;
}

.view-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #ab3500;
  text-decoration: none;
}

.view-all:hover {
  text-decoration: underline;
}

.recipes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .recipes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.recommendation-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(26, 28, 28, 0.06);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

body.dark-mode .recommendation-card {
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.recommendation-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-img-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recommendation-card:hover .card-img-wrapper img {
  transform: scale(1.1);
}

.card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-category {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: #27657c;
}

body.dark-mode .card-category {
  color: #cbd5e1;
}

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0;
  line-height: 1.2;
}

body.dark-mode .card-title {
  color: #ffffff;
}

body.dark-mode .card-title {
  color: #ffffff;
}

.recommendation-card:hover .card-title {
  color: #ab3500;
}

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f3f3;
  display: flex;
  justify-content: space-between;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #594139;
}

body.dark-mode .card-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.crave-section {
  padding: 96px 0;
  background-color: #ffffff;
}

body.dark-mode .crave-section {
  background-color: #000000;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: -0.05em;
  margin-bottom: 3rem;
  color: #1a1c1c;
}

body.dark-mode .section-title {
  color: #ffffff;
}















.footer {
  background: #F3F3F3;
  width: 100%;
  margin-top: auto;
  padding: 48px 0;
  border-top: 1px solid #e2e8f0;
}

body.dark-mode .footer {
  background: #050505;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #AB3500;
}

.footer-links {
  display: flex;
  gap: 32px;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 18px;
  color: #64748b;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #AB3500;
}

.footer-text {
  color: #64748b;
  font-size: 14px;
  font-family: sans-serif;
}

body.dark-mode .footer-links a {
  color: #94a3b8;
}

body.dark-mode .footer-text {
  color: #94a3b8;
}
