:root {
  --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-primary: #0f0f23;
  --bg-card: rgba(255, 255, 255, 0.05);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0f0f23;
  color: #ffffff;
  padding: 0;
  overflow-x: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 20px;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(103, 102, 173, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(165, 13, 13, 0.3) 0%, transparent 50%);
}

/* Header */
header {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 2rem;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  color: #ffffff;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* search box */
.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-box:focus {
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
}
/* navbar */
.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transition: left 0.3s ease;
  z-index: -1;
  border-radius: 25px;
}

.nav-item:hover::before {
  left: 0;
}

.nav-item:hover {
  color: white;
  transform: translateY(-2px);
}

/* Main Layout */
.main-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  min-height: calc(100vh - 200px);
}
/* Content Area */
.content {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Meal Grid */
.meals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.meal-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.meal-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 60px rgba(10, 10, 10, 0.3);
  border-color: var(--accent);
}

.meal-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.meal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.meal-content {
  padding: 1.5rem;
}

.meal-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* List Grid for Categories/Areas/Ingredients */
.list-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  width: 80%;
  margin: 0 auto;
}

.list-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.list-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.list-item:hover::before {
  left: 0;
}

.list-item:hover {
  color: white;
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

/* Meal Details Section */
.meal-details-section {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.back-button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.back-button:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.meal-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.meal-details-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}

.meal-details-image {
  border-radius: 15px;
  overflow: hidden;
  height: 250px;
}

.meal-details-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meal-details-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.meal-details-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.meal-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.meal-category,
.meal-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

.meal-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.meal-details-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ingredients-section h3,
.instructions-section h3,
.video-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.ingredient-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ingredient-name {
  font-weight: 500;
  color: var(--text-primary);
}

.ingredient-measure {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.instructions-text {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 1rem;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.source-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Responsive for meal details */
@media (max-width: 768px) {
  .meal-details-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .meal-details-image {
    height: 200px;
    margin: 0 auto;
    max-width: 300px;
  }
  
  .meal-details-title {
    font-size: 2rem;
  }
  
  .ingredients-grid {
    grid-template-columns: 1fr;
  }
  
  .meal-details-content {
    padding: 1.5rem;
  }
}

/* Footer */
footer {
  position: static;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.footer-col h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-col p, 
.footer-col ul, 
.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  text-decoration: none;
}

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

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a:hover {
  color: var(--accent);
  transition: color 0.3s ease;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  font-size: 1.2rem;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.social-icons a:hover {
  color: white;
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .sidebar {
    position: static;
  }
  
  .meals-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .list-grid {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .main-layout {
    padding: 0 1rem;
  }
  
  .meals-grid {
    grid-template-columns: 1fr;
  }
  
  .list-grid {
    width: 100%;
  }
  
  footer {
    padding: 1rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}
.order-button {
  float: right;
  width: 120px;
  height: 50px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #764ba2, #667eea);
  color: #fff;
  font-size: 25px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.order-button:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.order-button a{
  text-decoration: none;
}
/* ///////////////////////////// */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}
