/*
 * PeppaSoup — The Modern Hearth Design System (2026)
 * Design tokens from Google Stitch / "The Modern Hearth" brief
 * Fonts: Newsreader (display serif) + Manrope (body sans)
 * Color palette: warm earth tones, burnt orange, cream
 */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Manrope:wght@200..800&display=swap');

/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  --h-surface:           #fff8f5;
  --h-surface-low:       #fcf2eb;
  --h-surface-container: #f6ece5;
  --h-surface-high:      #f1e6e0;
  --h-surface-highest:   #ebe1da;
  --h-primary:           #803d0a;
  --h-primary-container: #9e5421;
  --h-on-surface:        #1f1b17;
  --h-on-surface-var:    #54433c;
  --h-outline-variant:   #dac1b8;
  --h-ff-display:        'Newsreader', Georgia, serif;
  --h-ff-body:           'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --h-shadow-editorial:  0 30px 60px -12px rgba(31, 27, 23, 0.06);
  --h-shadow-card:       0 8px 32px rgba(31, 27, 23, 0.07);
}

/* ═══════════════════════════════════════════
   GLOBAL FONT UPGRADE
   ═══════════════════════════════════════════ */
body {
  font-family: var(--h-ff-body) !important;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   HEADER — Editorial / sticky
   ═══════════════════════════════════════════ */
#header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: #ffffff !important;
  border-bottom: none !important;
  box-shadow: 0 1px 0 rgba(218, 193, 184, 0.5) !important;
  transition: box-shadow 0.3s ease;
}

#header .container {
  display: flex;
  align-items: center;
}

#header .row {
  display: flex;
  align-items: center;
  width: 100%;
}

#logo {
  display: flex !important;
  align-items: center !important;
  height: 72px !important;
  padding: 0 !important;
}

#logo a {
  display: flex;
  align-items: center;
}

#logo img {
  max-height: 54px !important;
  width: auto !important;
}

/* Nav links — Newsreader serif */
#navigation.menu ul > li > a {
  font-family: var(--h-ff-display) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--h-on-surface-var) !important;
  letter-spacing: 0 !important;
  transition: color 0.2s ease, background 0.2s ease !important;
  border-radius: 0 !important;
}

#navigation.menu ul > li > a:hover,
#navigation.menu ul > li.active > a {
  color: var(--h-primary) !important;
  background: transparent !important;
}

/* Login / Register link — pill button */
#navigation.menu ul > li > a.login {
  background: linear-gradient(135deg, var(--h-primary) 0%, var(--h-primary-container) 100%) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 9999px !important;
  font-family: var(--h-ff-body) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 4px 14px rgba(128, 61, 10, 0.2);
  transition: opacity 0.2s ease, transform 0.15s ease !important;
}

#navigation.menu ul > li > a.login:hover {
  opacity: 0.88 !important;
  transform: scale(1.02) !important;
  color: #fff !important;
}

/* Dropdown override */
#navigation.menu ul li ul.menu-categories {
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 48px rgba(31, 27, 23, 0.1) !important;
  background: #fff !important;
  padding: 10px 0 !important;
}

#navigation.menu ul li ul.menu-categories li a {
  font-family: var(--h-ff-body) !important;
  font-size: 14px !important;
  color: var(--h-on-surface-var) !important;
  padding: 8px 18px !important;
}

#navigation.menu ul li ul.menu-categories li a:hover {
  color: var(--h-primary) !important;
  background: var(--h-surface-low) !important;
}

/* ═══════════════════════════════════════════
   HOME PAGE — HERO VIDEO
   ═══════════════════════════════════════════ */
.hearth-hero-wrap {
  position: relative;
  width: 100%;
  background: #000;
}

.hearth-hero-iframe {
  width: 100%;
  height: calc(100vh - 72px);
  min-height: 520px;
  max-height: 920px;
  display: block;
  border: 0;
}

.hearth-hero-overlay {
  position: absolute;
  inset: 0;
  padding: 80px 56px 64px;
  /* Two-layer gradient: strong bottom-up scrim + left-side vignette
     so text is always readable regardless of video content */
  background:
    linear-gradient(
      to top,
      rgba(8, 6, 4, 0.92) 0%,
      rgba(8, 6, 4, 0.72) 25%,
      rgba(8, 6, 4, 0.35) 50%,
      rgba(8, 6, 4, 0.08) 72%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      rgba(8, 6, 4, 0.55) 0%,
      rgba(8, 6, 4, 0.25) 40%,
      transparent 65%
    );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  z-index: 2;
  pointer-events: none;
}

.hearth-hero-kicker {
  display: block;
  font-family: var(--h-ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffb68c;
  margin-bottom: 12px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.hearth-hero-h1 {
  font-family: var(--h-ff-display) !important;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff !important;
  margin: 0 0 16px;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.8),
    0 1px 4px  rgba(0, 0, 0, 0.9);
}

.hearth-hero-sub {
  font-family: var(--h-ff-body);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.90);
  margin: 0 0 30px;
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
  max-width: 520px;
}

.hearth-hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--h-primary) 0%, var(--h-primary-container) 100%);
  color: #fff !important;
  padding: 14px 38px;
  border-radius: 9999px;
  font-family: var(--h-ff-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: auto;
  box-shadow: 0 6px 20px rgba(128, 61, 10, 0.3);
}

.hearth-hero-cta:hover {
  opacity: 0.88;
  transform: scale(1.02);
  color: #fff !important;
}

@media (max-width: 768px) {
  .hearth-hero-iframe  { height: 56vh; min-height: 360px; }
  .hearth-hero-overlay { padding: 44px 24px 38px; }
  .hearth-hero-h1      { font-size: 34px; }
}
@media (max-width: 480px) {
  .hearth-hero-iframe  { height: 46vh; min-height: 280px; }
}

/* ═══════════════════════════════════════════
   HOME PAGE — FEATURED RECIPE (Recipe of the Day)
   ═══════════════════════════════════════════ */
.hearth-featured-section {
  padding: 72px 0 56px;
  background: var(--h-surface);
}

.hearth-kicker {
  display: inline-block;
  font-family: var(--h-ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--h-primary);
  margin-bottom: 14px;
}

.hearth-featured-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 52px;
  align-items: center;
}

.hearth-featured-media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--h-shadow-editorial);
  aspect-ratio: 16 / 10;
  background: var(--h-surface-high);
}

.hearth-featured-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.hearth-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.hearth-featured-media:hover img {
  transform: scale(1.04);
}

.hearth-featured-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hearth-display-title {
  font-family: var(--h-ff-display) !important;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--h-on-surface);
  margin: 0;
}

.hearth-display-title a {
  color: var(--h-on-surface);
  text-decoration: none;
  transition: color 0.2s;
}

.hearth-display-title a:hover {
  color: var(--h-primary);
}

.hearth-byline {
  font-family: var(--h-ff-body);
  font-size: 14px;
  color: var(--h-on-surface-var);
  margin: 0;
}

.hearth-byline a {
  color: var(--h-primary);
  text-decoration: none;
}

.hearth-byline a:hover {
  text-decoration: underline;
}

.hearth-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--h-ff-body);
  font-size: 13px;
  color: var(--h-on-surface-var);
}

.hearth-meta-list i {
  color: var(--h-primary);
  margin-right: 5px;
}

.hearth-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--h-primary) 0%, var(--h-primary-container) 100%);
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 9999px;
  font-family: var(--h-ff-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 6px 20px rgba(128, 61, 10, 0.25);
  align-self: flex-start;
}

.hearth-btn-primary:hover {
  opacity: 0.88;
  transform: scale(1.02);
  color: #fff !important;
}

@media (max-width: 991px) {
  .hearth-featured-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ═══════════════════════════════════════════
   HOME PAGE — POPULAR THIS WEEK (slider_rest)
   ═══════════════════════════════════════════ */
.hearth-popular-section {
  padding: 64px 0;
  background: var(--h-surface-low);
}

.hearth-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 16px;
}

.hearth-section-title {
  font-family: var(--h-ff-display) !important;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  color: var(--h-on-surface);
  margin: 0 0 4px;
}

.hearth-section-sub {
  font-family: var(--h-ff-body);
  font-size: 14px;
  color: var(--h-on-surface-var);
  margin: 0;
}

.hearth-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--h-primary) !important;
  padding: 11px 26px;
  border-radius: 9999px;
  border: 1.5px solid var(--h-primary);
  font-family: var(--h-ff-body);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.hearth-btn-outline:hover {
  background: var(--h-primary);
  color: #fff !important;
}

.hearth-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hearth-card {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.hearth-card-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 14px;
  position: relative;
  background: var(--h-surface-container);
}

.hearth-card-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.hearth-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.hearth-card:hover .hearth-card-img img {
  transform: scale(1.06);
}

.hearth-card-fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.72);
  opacity: 0;
  transition: opacity 0.2s ease;
  color: var(--h-primary);
  font-size: 14px;
}

.hearth-card:hover .hearth-card-fav {
  opacity: 1;
}

.hearth-card-cuisine {
  display: block;
  font-family: var(--h-ff-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--h-primary);
  margin-bottom: 5px;
}

.hearth-card-title {
  display: block;
  font-family: var(--h-ff-display) !important;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--h-on-surface);
  margin: 0 0 6px;
  text-decoration: none !important;
  transition: color 0.2s;
}

.hearth-card-title:hover {
  color: var(--h-primary);
}

.hearth-card-meta {
  font-family: var(--h-ff-body);
  font-size: 12px;
  color: var(--h-on-surface-var);
}

.hearth-card-meta a {
  color: var(--h-on-surface-var);
  text-decoration: none;
}

.hearth-card-meta a:hover {
  color: var(--h-primary);
}

/* Staggered row for editorial feel */
.hearth-card-grid > .hearth-card:nth-child(even) {
  margin-top: 44px;
}

@media (max-width: 991px) {
  .hearth-card-grid { grid-template-columns: repeat(2, 1fr); }
  .hearth-card-grid > .hearth-card:nth-child(even) { margin-top: 0; }
}
@media (max-width: 575px) {
  .hearth-card-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   SEARCH SECTION — Modern Hearth styled
   ═══════════════════════════════════════════ */
.search-container.search-home {
  background: var(--h-surface-container) !important;
  padding: 52px 0 !important;
  border: none !important;
}

.search-container.search-home #advanced-search h2 {
  font-family: var(--h-ff-display) !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  color: var(--h-on-surface) !important;
  margin-bottom: 28px !important;
}

/* ═══════════════════════════════════════════
   SHORTS SECTION — Modern Hearth header
   ═══════════════════════════════════════════ */
.shorts-section {
  background: var(--h-surface);
  padding: 52px 0 36px !important;
}

.shorts-section h2 {
  font-family: var(--h-ff-display) !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  color: var(--h-on-surface) !important;
}

/* ═══════════════════════════════════════════
   BLOG SECTION — Newsreader headings
   ═══════════════════════════════════════════ */
.home-blog {
  background: var(--h-surface);
}

.home-blog-hero h3,
.home-blog-side-item h4,
.home-blog-trend-card h5,
.home-blog-trending h3 {
  font-family: var(--h-ff-display) !important;
}

.home-blog-header h2 {
  font-family: var(--h-ff-body) !important;
}

/* ═══════════════════════════════════════════
   CHEF SECTION — Dark dramatic section
   ═══════════════════════════════════════════ */
.chef-section {
  /* Keep existing dark styling, just ensure font consistency */
}

.chef-name {
  font-family: var(--h-ff-display) !important;
}

/* ═══════════════════════════════════════════
   LATEST RECIPES GRID — Light upgrade
   ═══════════════════════════════════════════ */
.recipe-block h3 a {
  font-family: var(--h-ff-display) !important;
}

.titleWithline {
  font-family: var(--h-ff-display) !important;
  font-weight: 400 !important;
}

/* ═══════════════════════════════════════════
   SUBSCRIBE SECTION
   ═══════════════════════════════════════════ */
.subscribe-section {
  background: linear-gradient(135deg, var(--h-primary) 0%, var(--h-primary-container) 100%) !important;
}

.subscribe-section h2 {
  font-family: var(--h-ff-display) !important;
  font-weight: 400 !important;
}

.subscribe-section .newsletter-btn {
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}

.subscribe-section .newsletter-btn:hover {
  background: rgba(255,255,255,0.28) !important;
}

/* ═══════════════════════════════════════════
   FOOTER — Warm earth tone upgrades
   ═══════════════════════════════════════════ */
#footer {
  background: var(--h-surface-high) !important;
}

#footer .titleWithline.footer {
  font-family: var(--h-ff-display) !important;
  font-weight: 400 !important;
  color: var(--h-primary) !important;
}

#footer .footer-links li a {
  font-family: var(--h-ff-body) !important;
  color: var(--h-on-surface-var) !important;
  font-size: 13px !important;
}

#footer .footer-links li a:hover {
  color: var(--h-primary) !important;
}

#footer .footer-about p {
  font-family: var(--h-ff-body) !important;
  color: var(--h-on-surface-var) !important;
}

#footer-bottom {
  background: var(--h-surface-highest) !important;
}

#footer-bottom p {
  font-family: var(--h-ff-body) !important;
  font-size: 12px !important;
  color: var(--h-on-surface-var) !important;
}
