/* =============================================
   HOME PAGE STYLES — home.css
   ============================================= */

/* Reset the global `main` styles from style.css
   that were built for the 2-column recipe page */
main.home-main {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 64px 0 !important;
  display: block !important;
  grid-template-columns: unset !important;
  gap: 0 !important;
}

.home-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── HERO ─────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  padding: 64px 0;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.home-hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.home-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.home-hero-img-wrap:hover .home-hero-img {
  transform: scale(1.04);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-top-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.home-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.home-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 18px;
}

.home-hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

.home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-meta-pill {
  background: white;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.home-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── CATEGORY STRIP ───────────────────────── */
.categories-section {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  position: sticky;
  top: 62px;
  z-index: 80;
}

.cat-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-chip {
  flex-shrink: 0;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cat-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.cat-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ── STATS BAR ────────────────────────────── */
.stats-bar {
  background: var(--text-main);
  padding: 14px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.stat-item {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.stat-item strong {
  color: white;
}
.stat-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ── MAIN CONTENT ─────────────────────────── */
.home-main {
  padding: 64px 0 20px;
}

.home-section {
  margin-bottom: 72px;
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
}

.home-section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.home-section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.see-all-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.see-all-link:hover { opacity: 0.7; }

/* ── RECIPE CARD GRID ─────────────────────── */
.home-recipe-grid {
  display: grid;
  gap: 22px;
  width: 100%;
}
.home-recipe-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.home-recipe-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.home-recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.hrc-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--border-color);
  flex-shrink: 0;
}
.hrc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.home-recipe-card:hover .hrc-img { transform: scale(1.06); }

.hrc-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
}
.hrc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  z-index: 2;
}

.hrc-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.hrc-title {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.3;
  color: var(--text-main);
  transition: color 0.2s;
}
.home-recipe-card:hover .hrc-title { color: var(--primary); }

.hrc-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hrc-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.hrc-stars { color: #F4A261; margin-left: auto; }

/* ── PLACEHOLDER CARD ─────────────────────── */
.placeholder-card {
  border: 2px dashed var(--border-color);
  background: var(--bg-color);
  cursor: default;
}
.placeholder-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-color);
}
.placeholder-inner {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.ph-icon { font-size: 36px; opacity: 0.35; }
.ph-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}
.ph-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 12px;
}

/* ── NEWSLETTER ───────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--text-main) 0%, #3d5a66 100%);
  padding: 72px 0;
}
.newsletter-inner {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.newsletter-title {
  font-family: var(--font-heading);
  font-size: 34px;
  color: white;
  line-height: 1.2;
}
.newsletter-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}
.newsletter-input {
  flex-grow: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-main);
  background: white;
}
.newsletter-input:focus { outline: 3px solid var(--primary); }

/* ── FOOTER ───────────────────────────────── */
.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 52px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 8px 0 18px;
}
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-main);
  margin-bottom: 16px;
}
.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── ROUNDUP TEASER CARD (the "20 More →" card in recipe grids) ── */
.roundup-teaser-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}
.roundup-teaser-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(224,122,95,0.35);
  border-color: var(--primary);
}
.roundup-teaser-inner {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.rt-number {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.rt-label {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}
.rt-cta {
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  margin-top: 4px;
}

/* ── ROUNDUP PROMO GRID (the big cards linking to list posts) ── */
.roundup-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.roundup-promo-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.roundup-promo-card:not(.placeholder-roundup):hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.placeholder-roundup { cursor: default; }

.rpc-num-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.rpc-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border-color);
}
.rpc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.roundup-promo-card:hover .rpc-img { transform: scale(1.05); }
.rpc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 60%);
}

.rpc-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.rpc-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
}
.rpc-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
  transition: color 0.2s;
}
.roundup-promo-card:hover .rpc-title { color: var(--primary); }
.rpc-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.rpc-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.rpc-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  padding-top: 4px;
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .home-recipe-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .home-hero { padding: 40px 0; }

  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-hero-title { font-size: 28px; }

  .home-hero-actions { flex-direction: column; }

  .home-recipe-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }

  .home-section-header { flex-direction: column; align-items: flex-start; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .newsletter-form { flex-direction: column; }

  .stats-inner { gap: 14px; }
  .stat-divider { display: none; }

  .roundup-promo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .home-recipe-grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .home-main { padding: 40px 0; }
  .home-section { margin-bottom: 48px; }
}

/* ── WordPress single-post layout ── */
.single-recipe-main { padding-bottom: 40px; }
.single-content-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.single-article { line-height: 1.8; font-size: 16px; color: var(--text-main); }
.single-article h2 { font-family: var(--font-heading); font-size: 26px; margin: 28px 0 14px; }
.single-article h3 { font-family: var(--font-heading); font-size: 20px; margin: 22px 0 10px; }
.single-article p { margin-bottom: 16px; color: var(--text-muted); }
.single-article img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 16px 0; }
.dki-pagination a, .dki-pagination .current {
  display: inline-block; padding: 8px 14px; margin: 0 4px;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-main); font-weight: 600;
}
.dki-pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── WordPress Page (About / Legal) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main);
  text-align: center;
}
.page-content-wrap { max-width: 820px; margin: 0 auto 60px; padding: 0 24px; }
.page-article { line-height: 1.8; font-size: 16px; color: var(--text-muted); }
.page-article h2 { font-family: var(--font-heading); font-size: 24px; color: var(--text-main); margin: 26px 0 12px; }
.page-article h3 { font-family: var(--font-heading); font-size: 19px; color: var(--text-main); margin: 20px 0 10px; }
.page-article p { margin-bottom: 16px; }
.page-article a { color: var(--primary); }
.page-article ul, .page-article ol { margin: 0 0 16px 22px; }
.page-article li { margin-bottom: 8px; }

/* ── Single recipe layout (fixes related-section overlap) ── */
main.single-recipe {
  display: block;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}
.single-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) {
  .single-grid { grid-template-columns: 7fr 5fr; align-items: start; }
}
main.single-recipe .hero-section { margin-bottom: 32px; }
main.single-recipe .ad-slot-fw { margin-bottom: 32px; }
main.single-recipe .related-section { margin-top: 40px; }

/* ── Visitor Reviews + Star Rating ── */
.dki-review-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.dki-review { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 16px; }
.dki-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.dki-review-author { font-size: 15px; color: var(--text-main); }
.dki-review-stars { color: #F4A261; font-size: 14px; letter-spacing: 1px; }
.dki-review-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.dki-review-body { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Comment / review form */
#reviews-section .comment-form { display: flex; flex-direction: column; gap: 12px; }
#reviews-section .comment-form input[type=text],
#reviews-section .comment-form input[type=email],
#reviews-section .comment-form input[type=url],
#reviews-section .comment-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14px; background: #fff;
}
#reviews-section .comment-form label { font-size: 13px; font-weight: 600; color: var(--text-main); display: block; margin-bottom: 4px; }
#reviews-section .comment-form .form-submit { margin: 0; }
#reviews-section .comment-form .submit {
  background: var(--primary); color: #fff; border: none; padding: 12px 28px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; cursor: pointer; font-family: var(--font-body);
}
#reviews-section .comment-form .submit:hover { background: var(--primary-hover); }
#reviews-section .comment-reply-title { font-family: var(--font-heading); font-size: 20px; margin-bottom: 6px; }

/* Interactive star input (click to rate) */
.dki-rating-field { margin-bottom: 6px; }
.dki-rating-label { font-size: 13px; font-weight: 600; color: var(--text-main); display: block; margin-bottom: 6px; }
.dki-star-input { display: inline-flex; gap: 6px; }
.dki-star-input input { display: none; }
.dki-star-input label { font-size: 30px; color: var(--border-color); cursor: pointer; transition: color 0.15s; margin: 0; line-height: 1; }
.dki-star-input label.on { color: #F4A261; }

/* ── Cook Mode Voice Controls ── */
.cook-voice-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.cook-voice-toggle, .cook-voice-replay {
  background: var(--accent-light); color: var(--accent); border: 1px solid rgba(129,178,154,0.4);
  padding: 8px 16px; border-radius: 20px; font-family: var(--font-body); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
}
.cook-voice-toggle:hover, .cook-voice-replay:hover { background: var(--accent); color: #fff; }
.cook-voice-toggle.active { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(129,178,154,0.4); }

/* ── Fix WordPress nav menu (remove bullets, keep clean horizontal links) ── */
.nav-links ul { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links li { list-style: none; margin: 0; padding: 0; }
.nav-links li::before, .nav-links li::marker { content: none; }
.nav-links li a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s ease; }
.nav-links li a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .nav-links ul { flex-wrap: wrap; justify-content: center; gap: 16px; width: 100%; }
  .nav-links li a { font-size: 14px; }
}

/* ── Cook Mode: fix buttons cut off on mobile (use dynamic viewport height) ── */
.cook-mode-overlay { height: 100vh; height: 100dvh; }
.timer-overlay { height: 100vh; height: 100dvh; }
@media (max-width: 768px) {
  .cook-mode-content { padding-bottom: 90px; }   /* keep buttons above phone nav bar */
  .cook-ingr-panel { padding-bottom: 24px; }
}

/* ── Mobile Hamburger Header (compact like the demo) ── */
.nav-toggle {
  display: none; background: none; border: none; font-size: 26px;
  line-height: 1; cursor: pointer; color: var(--text-main); padding: 4px 8px;
}
@media (max-width: 768px) {
  .nav-container { flex-direction: row !important; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: left !important; }
  .nav-toggle { display: block; order: 2; }
  .nav-links { display: none !important; order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 12px; }
  .nav-links.open { display: flex !important; }
  .nav-links ul { flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
  .nav-links li { width: 100%; }
  .recipe-box-btn { width: 100%; justify-content: center; }
  .logo { font-size: 22px; }
}
