/* FoodTomato Features — theme variables, dark mode, hero, carousel, grid/list */
:root {
  --ft-accent: #D32F2F;          /* Tomato Red (default) */
  --ft-accent-dark: #B71C1C;
  --ft-green: #388E3C;
  --ft-bg: #FAFAFA;
  --ft-text: #212121;
  --ft-muted: #616161;
  --ft-card: #ffffff;
  --ft-border: #e5e0d8;
  --ft-header-bg: #D32F2F;
}
html[data-theme="dark"] {
  --ft-bg: #141210;
  --ft-text: #ECE7DF;
  --ft-muted: #A8A094;
  --ft-card: #1E1B18;
  --ft-border: #38322c;
}

/* ---------- Utility bar ---------- */
.ftf-utility-bar {
  background: var(--ft-card);
  border-bottom: 1px solid var(--ft-border);
}
.ftf-utility-inner {
  max-width: 1200px; margin: 0 auto; padding: 6px 20px;
  display: flex; align-items: center; gap: 14px; justify-content: flex-end;
}
.ftf-tbtn {
  background: transparent; border: 1px solid var(--ft-border); border-radius: 20px;
  color: var(--ft-text); cursor: pointer; font-size: 15px; line-height: 1;
  padding: 5px 10px; display: inline-flex; align-items: center; gap: 4px;
}
html[data-theme="dark"] .ftf-icon-moon { display: none; }
html:not([data-theme="dark"]) .ftf-icon-sun { display: none; }
.ftf-accents { display: inline-flex; gap: 8px; align-items: center; }
.ftf-swatch {
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
  background: var(--sw); border: 2px solid transparent; padding: 0;
}
.ftf-swatch.is-active { border-color: var(--ft-text); box-shadow: 0 0 0 2px var(--ft-card), 0 0 0 4px var(--sw); }
.ftf-view-toggle { display: inline-flex; border: 1px solid var(--ft-border); border-radius: 20px; overflow: hidden; }
.ftf-vbtn {
  background: transparent; border: 0; cursor: pointer; padding: 5px 9px;
  color: var(--ft-muted); display: inline-flex;
}
.ftf-vbtn svg { fill: currentColor; }
.ftf-vbtn.is-active { background: var(--ft-accent); color: #fff; }

/* ---------- Hero ---------- */
.ftf-hero {
  background: linear-gradient(135deg, var(--ft-header-bg) 0%, var(--ft-accent-dark) 100%);
  color: #fff; padding: 48px 0 40px;
}
.ftf-hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.ftf-hero-kicker {
  text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700;
  opacity: .85; margin: 0 0 10px;
}
.ftf-hero-title { font-size: 44px; line-height: 1.15; margin: 0 0 14px; color: #fff; }
.ftf-hero-title span { text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 6px; }
.ftf-hero-sub { font-size: 17px; opacity: .92; margin: 0 0 22px; max-width: 46ch; }
.ftf-cta {
  display: inline-block; background: #fff; color: var(--ft-accent-dark);
  font-weight: 700; font-size: 16px; padding: 13px 30px; border-radius: 30px;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.ftf-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); color: var(--ft-accent-dark); }
.ftf-trending { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ftf-trending-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.ftf-chip {
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35);
  padding: 5px 14px; border-radius: 20px; font-size: 13px; text-decoration: none;
}
.ftf-chip:hover { background: rgba(255,255,255,.3); color: #fff; }

/* Carousel */
.ftf-carousel { position: relative; }
.ftf-slides { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.3); aspect-ratio: 16/10; background: rgba(0,0,0,.2); }
.ftf-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.ftf-slide.is-active { opacity: 1; z-index: 1; }
.ftf-slide a { display: block; width: 100%; height: 100%; }
.ftf-slide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ftf-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); display: flex; flex-direction: column; gap: 6px;
}
.ftf-slide-cat {
  align-self: flex-start; background: var(--ft-accent); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 12px;
}
.ftf-slide-title { color: #fff; font-size: 19px; font-weight: 700; line-height: 1.3; }
.ftf-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.ftf-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.ftf-dot.is-active { background: #fff; transform: scale(1.25); }

/* ---------- Grid / List views (GeneratePress blog) ---------- */
.ftf-view-grid #main .site-main,
.ftf-view-grid.site-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ftf-view-grid .site-main > article.post {
  display: flex; flex-direction: column; height: 100%;
}
.ftf-view-list .site-main { display: block; }

/* ---------- Dark mode surface overrides ---------- */
html[data-theme="dark"] body { background: var(--ft-bg); color: var(--ft-text); }
html[data-theme="dark"] .separate-containers .site-main > article,
html[data-theme="dark"] .separate-containers .comments-area,
html[data-theme="dark"] .separate-containers .page-header,
html[data-theme="dark"] .widget-area .widget,
html[data-theme="dark"] .site-main .post {
  background: var(--ft-card); color: var(--ft-text);
}
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] h4, html[data-theme="dark"] .entry-title a { color: var(--ft-text); }
html[data-theme="dark"] .entry-meta, html[data-theme="dark"] .entry-meta a { color: var(--ft-muted); }
html[data-theme="dark"] a { color: #EF9A9A; }
html[data-theme="dark"] a:hover { color: #FFCDD2; }
html[data-theme="dark"] .site-footer { background: #0E0C0B; }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select {
  background: #26211d; color: var(--ft-text); border-color: var(--ft-border);
}

/* Accent hooks */
a:hover, .entry-title a:hover { color: var(--ft-accent); }
button, .button, input[type="submit"] { background: var(--ft-accent); }
button:hover, .button:hover, input[type="submit"]:hover { background: var(--ft-accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ftf-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .ftf-hero-title { font-size: 32px; }
  .ftf-hero { padding: 36px 0 30px; }
}
@media (max-width: 600px) {
  .ftf-utility-inner { justify-content: center; flex-wrap: wrap; }
}
