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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #131920;
  background: #fff;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 800;
  color: #F15025;
  letter-spacing: -1px;
}

.logo a {
  color: #F15025;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  margin: 5px 0;
}

.search-bar {
  flex: 1;
  max-width: 520px;
  margin: 0 30px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 24px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: #F15025;
}

.search-bar button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: #F15025;
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions a {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.header-actions a:hover {
  color: #F15025;
}

.btn-login {
  background: #F15025;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
}

.btn-login:hover {
  background: #d9441f;
}

/* ===== NAVIGATION ===== */
.nav-bar {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.nav-bar ul {
  display: flex;
  list-style: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 4px;
}

.nav-bar > ul > li {
  position: relative;
}

.nav-bar > ul > li > a {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  transition: color 0.2s;
}

.nav-bar > ul > li > a:hover {
  color: #F15025;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-radius: 0 0 8px 8px;
  z-index: 999;
  padding: 8px 0;
}

.nav-bar > ul > li:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: #555;
}

.dropdown li a:hover {
  background: #f5f5f5;
  color: #F15025;
}

/* ===== SNACK BAR ===== */
.snack-bar {
  background: #f8f8f8;
  text-align: center;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e5e5;
}

.snack-bar-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.snack-bar-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.snack-stat {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.snack-stat strong {
  color: #F15025;
}

/* ===== MAIN CONTENT ===== */
main {
  padding: 24px 0;
}

/* ===== HERO SECTION ===== */
.hero-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.hero-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 30px;
  color: #fff;
}

.hero-card-overlay h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.hero-card-overlay p {
  font-size: 15px;
  opacity: 0.9;
}

.latest-sidebar h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F15025;
}

.latest-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.latest-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.latest-item-content h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.latest-item-content span {
  font-size: 12px;
  color: #888;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #131920;
}

.section-title span {
  color: #F15025;
}

/* ===== RECIPE CARDS GRID ===== */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.recipe-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.recipe-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.recipe-card-body {
  padding: 16px;
}

.recipe-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.recipe-card-body h3 a:hover {
  color: #F15025;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.stars {
  color: #F7AF31;
  font-size: 14px;
}

.rating-count {
  font-size: 13px;
  color: #888;
}

.recipe-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #666;
}

.recipe-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: #F15025;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-save:hover {
  background: #d9441f;
}

/* ===== TRENDING 2x2 GRID ===== */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.trending-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.trending-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.trending-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 24px;
  color: #fff;
}

.trending-card-overlay h3 {
  font-size: 18px;
  font-weight: 700;
}

.trending-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  margin-bottom: 8px;
}

/* ===== CAROUSEL ===== */
.carousel-section {
  margin-bottom: 48px;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.carousel-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.carousel-card-body {
  padding: 14px;
}

.carousel-card-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  background: #f5f5f5;
}

.carousel-arrow.prev {
  left: -10px;
}

.carousel-arrow.next {
  right: -10px;
}

/* ===== COMMUNITY SECTION ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.community-card {
  text-align: center;
  padding: 20px;
}

.community-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
}

.community-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.community-card p {
  font-size: 13px;
  color: #888;
}

/* ===== ASYMMETRIC SECTION ===== */
.asymmetric-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.asymmetric-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.asymmetric-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.2s;
}

.asymmetric-item:hover {
  background: #f8f8f8;
}

.asymmetric-item img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.asymmetric-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.asymmetric-item h4 a:hover {
  color: #F15025;
}

.asymmetric-item span {
  font-size: 12px;
  color: #888;
}

.asymmetric-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.asymmetric-right {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.asymmetric-right-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 24px;
  color: #fff;
}

.asymmetric-right-overlay h3 {
  font-size: 22px;
  font-weight: 700;
}

/* ===== VERTICAL LIST ===== */
.vertical-list-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.vlist-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.vlist-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.vlist-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.vlist-item h4 a:hover {
  color: #F15025;
}

.vlist-item .rating {
  margin-bottom: 4px;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-bottom: 48px;
}

.newsletter-section h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter-section p {
  color: #666;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 24px;
  font-size: 15px;
  outline: none;
}

.newsletter-form button {
  padding: 12px 24px;
  background: #F15025;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
  background: #131920;
  color: #fff;
  padding: 48px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto 32px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

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

.footer-col ul li a {
  display: block;
  font-size: 13px;
  color: #aaa;
  padding: 4px 0;
}

.footer-col ul li a:hover {
  color: #F15025;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: #F15025;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: #aaa;
  font-size: 14px;
}

.footer-social a:hover {
  color: #F15025;
}

.footer-copyright {
  font-size: 12px;
  color: #777;
  text-align: center;
  margin-top: 24px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== RECIPE DETAIL PAGE ===== */
.recipe-hero {
  position: relative;
  margin-bottom: 32px;
}

.recipe-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.recipe-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 40px;
  color: #fff;
}

.recipe-hero-overlay h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.recipe-breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: #888;
}

.recipe-breadcrumbs a {
  color: #F15025;
}

.recipe-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.recipe-meta-bar {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.recipe-meta-item {
  text-align: center;
}

.recipe-meta-item .label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
}

.recipe-meta-item .value {
  font-size: 18px;
  font-weight: 700;
}

.ingredients-list {
  list-style: none;
  margin-bottom: 32px;
}

.ingredients-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.instructions-list {
  list-style: none;
  counter-reset: step;
}

.instructions-list li {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  line-height: 1.6;
  counter-increment: step;
}

.instructions-list li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #F15025;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
}

.sidebar-card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.nutrition-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

/* ===== CATEGORIES PAGE ===== */
.category-hero {
  background: #f8f8f8;
  padding: 40px 0;
  text-align: center;
  margin-bottom: 32px;
}

.category-hero h1 {
  font-size: 36px;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.category-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.category-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 16px;
  color: #fff;
}

.category-card-overlay h3 {
  font-size: 16px;
  font-weight: 700;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu-section {
  margin-bottom: 20px;
}

.mobile-menu-section h3 {
  font-size: 16px;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.mobile-menu-section ul {
  list-style: none;
  display: none;
}

.mobile-menu-section.open ul {
  display: block;
}

.mobile-menu-section ul li a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #f5f5f5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-bar > ul > li > a {
    padding: 12px 8px;
    font-size: 13px;
  }
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-bar {
    display: none;
  }
  .search-bar {
    margin: 0 12px;
  }
  .header-actions {
    gap: 12px;
  }
  .header-actions a:not(.btn-login) {
    display: none;
  }
  .hero-section {
    grid-template-columns: 1fr;
  }
  .hero-card img {
    height: 260px;
  }
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  .trending-grid {
    grid-template-columns: 1fr;
  }
  .asymmetric-section {
    grid-template-columns: 1fr;
  }
  .vertical-list-section {
    grid-template-columns: 1fr;
  }
  .recipe-content {
    grid-template-columns: 1fr;
  }
  .recipe-hero img {
    height: 280px;
  }
  .recipe-hero-overlay h1 {
    font-size: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
  .snack-bar-stats {
    flex-direction: column;
    gap: 8px;
  }
  .newsletter-form {
    flex-direction: column;
  }
}