/*
Theme Name: Mars Recipes
Theme URI: https://www.staging.marsrecipes.com
Author: Mars
Author URI: https://www.staging.marsrecipes.com/about
Description: A custom WordPress theme for Mars Recipes – easy weeknight dinner recipes in 30 minutes or less.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marsrecipes
Tags: food, recipes, blog, custom, one-column, two-columns
*/

/* This file intentionally left minimal — all styles are loaded via functions.php from assets/css/style.min.css */


/* ============================================================
   SOCIAL ICONS - Header & Footer Brand Colors
   ============================================================ */

/* Footer social icons - brand colors */
.social-link[aria-label="Pinterest"] {
  background-color: #E60023 !important;
  color: #ffffff !important;
}

.social-link[aria-label="Facebook"] {
  background-color: #1877F2 !important;
  color: #ffffff !important;
}

/* Header social icons */
.header-social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px;
}

.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  font-family: serif;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.header-social-link:hover {
  opacity: 0.85;
  transform: scale(1.08);
  color: #ffffff;
  text-decoration: none;
}

.header-social-pinterest {
  background-color: #E60023;
}

.header-social-facebook {
  background-color: #1877F2;
}

/* Hide header social icons on very small screens */
@media (max-width: 480px) {
  .header-social-icons {
    display: none;
  }
}


/* ============================================================
   RECIPE FILTER PILLS — Premium Redesign
   ============================================================ */

/* Wrapper */
.recipe-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 32px;
  margin: 0 auto;
}

/* Base pill */
.filter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  background: #ffffff !important;
  color: #5c3d2e !important;
  border: 1.5px solid #e4c9b0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9) !important;
  white-space: nowrap;
  overflow: hidden;
}

/* Shimmer effect on hover */
.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, transparent 50%);
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Count badge inside pill */
.filter-btn .filter-count,
.filter-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: rgba(92, 61, 46, 0.1);
  color: #5c3d2e;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  transition: all 0.28s ease;
}

/* Hover state */
.filter-btn:hover {
  transform: translateY(-2px) scale(1.04) !important;
  background: #fdf6f0 !important;
  border-color: #c0522b !important;
  color: #c0522b !important;
  box-shadow: 0 6px 20px rgba(192, 82, 43, 0.18), 0 2px 8px rgba(0,0,0,0.08) !important;
}

.filter-btn:hover::before {
  opacity: 1;
}

.filter-btn:hover span {
  background: rgba(192, 82, 43, 0.12);
  color: #c0522b;
}

/* Active / selected state */
.filter-btn.active,
.filter-btn.is-active {
  background: linear-gradient(135deg, #c0522b 0%, #a03e20 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(192, 82, 43, 0.45), 0 1px 4px rgba(0,0,0,0.15) !important;
  transform: translateY(-1px) !important;
}

.filter-btn.active::before,
.filter-btn.is-active::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 1;
}

.filter-btn.active span,
.filter-btn.is-active span {
  background: rgba(255,255,255,0.25) !important;
  color: #ffffff !important;
}

/* ALL button special style */
.filter-btn:first-child {
  padding: 10px 24px !important;
  letter-spacing: 1.5px !important;
}

/* Active ALL */
.filter-btn:first-child.active,
.filter-btn:first-child.is-active {
  background: linear-gradient(135deg, #3d2b1f 0%, #5c3d2e 100%) !important;
  box-shadow: 0 4px 16px rgba(61, 43, 31, 0.4), 0 1px 4px rgba(0,0,0,0.15) !important;
}

/* Click press effect */
.filter-btn:active {
  transform: translateY(0px) scale(0.98) !important;
}

/* Responsive */
@media (max-width: 600px) {
  .recipe-filter {
    gap: 8px;
    padding: 4px 12px 24px;
  }
  .filter-btn {
    padding: 8px 16px !important;
    font-size: 11px !important;
    letter-spacing: 0.8px !important;
  }
}


/* === Header polish: EN/ES language pills + theme toggle (2026-07-14) === */
.lang-switcher .gtranslate_wrapper{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid rgba(192,82,43,.25);border-radius:999px;background:rgba(192,82,43,.05)}
.gtranslate_wrapper a.glink{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.07em;line-height:1;text-transform:uppercase;text-decoration:none;color:#8a7a72;transition:color .2s ease,background .2s ease}
.gtranslate_wrapper a.glink:hover{color:#c0522b;background:rgba(192,82,43,.12)}
.gtranslate_wrapper a.glink.gt-current-lang{background:#c0522b;color:#fff;box-shadow:0 2px 6px rgba(192,82,43,.35)}
.theme-toggle{width:36px;height:36px;padding:0;margin-left:8px;border:1px solid rgba(192,82,43,.25);border-radius:50%;background:rgba(192,82,43,.05);transition:background .25s ease,border-color .25s ease,transform .25s ease,color .25s ease}
.theme-toggle:hover{background:rgba(192,82,43,.15);border-color:#c0522b;color:#c0522b;transform:rotate(20deg) scale(1.06)}
.theme-toggle svg{width:17px;height:17px}
[data-theme="dark"] .lang-switcher .gtranslate_wrapper{border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.06)}
[data-theme="dark"] .gtranslate_wrapper a.glink{color:#b3a69f}
[data-theme="dark"] .gtranslate_wrapper a.glink:hover{color:#e8825d;background:rgba(232,130,93,.14)}
[data-theme="dark"] .gtranslate_wrapper a.glink.gt-current-lang{background:#c0522b;color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.4)}
[data-theme="dark"] .theme-toggle{border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.06)}
[data-theme="dark"] .theme-toggle:hover{background:rgba(232,130,93,.16);border-color:#e8825d;color:#e8825d}
@media (max-width:600px){.gtranslate_wrapper a.glink{min-width:30px;padding:4px 9px;font-size:11px}.theme-toggle{width:32px;height:32px;margin-left:5px}}

/* Mobile safety for article content authored with inline grids and fixed ad sizes. */
@media (max-width: 700px) {
  .recipe-main .entry-content [style*="grid-template-columns:1fr 1fr"],
  .recipe-main .entry-content [style*="grid-template-columns: 1fr 1fr"],
  .recipe-intro-content [style*="grid-template-columns:1fr 1fr"],
  .recipe-intro-content [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .recipe-main .adsbygoogle,
  .recipe-intro-content .adsbygoogle {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Accessibility: make reading links visibly distinct and high-contrast. */
.recipe-body .entry-content a:not(.btn),
.recipe-main .entry-content a:not(.btn),
.recipe-body .recipe-card-box a:not(.btn) {
  color: #8a3219;
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.15em;
}
.recipe-body .entry-content a:not(.btn):hover,
.recipe-main .entry-content a:not(.btn):hover,
.recipe-body .recipe-card-box a:not(.btn):hover {
  color: #5f2110;
}
.recipe-body .entry-content a:not(.btn):focus-visible,
.recipe-main .entry-content a:not(.btn):focus-visible,
.recipe-body .recipe-card-box a:not(.btn):focus-visible {
  outline: 3px solid #1a73a8;
  outline-offset: 3px;
  border-radius: 2px;
}

/* WCAG AA contrast for recipe taxonomies, breadcrumbs, and author links. */
.recipe-page .recipe-hero__cats a,
.recipe-page .rank-math-breadcrumb a,
.recipe-page .mr-author-byline__text a {
  color: #8a3219;
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.15em;
}
.recipe-page .recipe-hero__cats a:hover,
.recipe-page .rank-math-breadcrumb a:hover,
.recipe-page .mr-author-byline__text a:hover {
  color: #5f2110;
}
.recipe-page .recipe-hero__cats a:focus-visible,
.recipe-page .rank-math-breadcrumb a:focus-visible,
.recipe-page .mr-author-byline__text a:focus-visible {
  outline: 3px solid #1a73a8;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Keep the Mars palette, but use its AA-safe shade for text and small controls. */
:root {
  --color-primary: #9c3f1f;
  --color-primary-dark: #6f2c16;
}
.print-recipe-btn,
.btn-servings-sq--plus,
.step-num {
  background-color: #9c3f1f !important;
}
.btn-servings-sq--minus {
  color: #9c3f1f !important;
}

/* Mobile fix: .recipe-body was zeroing the container side padding, so article text touched the screen edges on phones. Restore the standard container padding below the desktop breakpoint. */
@media (max-width: 767px) {
  .recipe-body {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
  }
}

/* Collapse unfilled AdSense slots so empty ad units leave no gap (Saad 2026-11-29) */
ins.adsbygoogle[data-ad-status="unfilled"]{display:none!important}
div:has(> ins.adsbygoogle[data-ad-status="unfilled"]){display:none!important}

@media (max-width:767px){
/* Tighten stacked hero+section spacing on mobile */
.about-hero{margin-bottom:0}
}
/* Header social icons: hide stray letter next to the icon (pre-existing glitch) */
.header-social-icons a.header-social-link.header-social-link{font-size:0!important;line-height:0!important;overflow:hidden}
