/* ============================================
   CHOMP RECIPES - SHARED STYLESHEET
   Site-wide styling for multi-page layout
   ============================================ */

/* ---------------------------------------------------- */
/* === CSS VARIABLES === */
/* ---------------------------------------------------- */
:root {
  /* Light mode colors */
  --color-bg: #fdfdfd;
  --color-text: #353535;
  --color-accent: #e73b42;
  --color-accent-hover: #d12d34;
  --color-sidebar-bg: #f5f5f5;
  --color-border: #e0e0e0;
  --color-text-muted: #7d7d7d;
  --color-text-light: #9d9d9d;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-fallback: 'Source Sans 3', sans-serif;
  --line-height-base: 1.7;
  --line-height-tight: 1.3;

  /* Layout */
  --sidebar-width: 300px;
  --content-max-width: 1200px;
  --mobile-breakpoint: 768px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #231f1f;
    --color-text: #d9d4d4;
    --color-accent: #ff6b7a;
    --color-accent-hover: #ff8590;
    --color-sidebar-bg: #2b2626;
    --color-border: #3b3636;
    --color-text-muted: #b9b4b4;
    --color-text-light: #948f8f;
  }
}

/* ---------------------------------------------------- */
/* === BASE STYLES & RESET === */
/* ---------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-height-base);
  min-height: 100vh;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------- */
/* === NAVIGATION === */
/* ---------------------------------------------------- */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md) var(--spacing-xl);
}

.site-nav {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.header-banner {
  display: block;
  max-width: 600px;
  max-height: 225px;
  height: auto;
  margin: 0 auto;
}

.header-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 50px;
  height: 50px;
}

.header-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.header-icon-default {
  opacity: 1;
}

.header-icon-hover {
  opacity: 0;
}

.header-icon-link:hover .header-icon-default {
  opacity: 0;
}

.header-icon-link:hover .header-icon-hover {
  opacity: 1;
}

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

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.site-logo {
  font-size: 1.6em;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  display: inline-block;
}

.site-logo-icon {
  position: relative;
  width: 50px;
  height: 50px;
  display: inline-block;
}

.site-logo-icon img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.logo-default {
  opacity: 1;
}

.logo-hover {
  opacity: 0;
}

.site-logo:hover .logo-default {
  opacity: 0;
}

.site-logo:hover .logo-hover {
  opacity: 1;
}

/* Tools Dropdown Navigation */
.nav-tools-dropdown {
  position: relative;
}

.tools-dropdown-btn {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1em;
  font-family: var(--font-primary);
  cursor: pointer;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.tools-dropdown-btn:hover {
  background-color: var(--color-accent);
  color: white;
}

.tools-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-sidebar-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin-top: 8px;
  min-width: 200px;
  z-index: 1000;
}

.tools-dropdown-menu.active {
  display: block;
}

.tools-dropdown-menu li {
  margin: 0;
}

.tools-dropdown-menu a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.tools-dropdown-menu a:hover,
.tools-dropdown-menu a.active {
  background-color: var(--color-accent);
  color: white;
}

/* Submenu styling for nested dropdowns */
.tools-dropdown-menu li {
  position: relative;
}

.tools-dropdown-menu .menu-item-has-submenu > a::after {
  content: ' ◂';
  float: right;
  margin-left: 10px;
}

.submenu {
  display: none;
  position: absolute;
  right: 100%;
  top: 0;
  background-color: var(--color-sidebar-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  min-width: 180px;
  margin-right: 4px;
  z-index: 1001;
}

.menu-item-has-submenu:hover > .submenu {
  display: block;
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.submenu a:hover {
  background-color: var(--color-accent);
  color: white;
}

/* Mobile hamburger menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--color-text);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.menu-toggle:hover {
  opacity: 0.7;
}

/* Dark mode - red hamburger icon */
@media (prefers-color-scheme: dark) {
  .menu-toggle {
    color: var(--color-accent);
  }
}

/* ---------------------------------------------------- */
/* === LAYOUT CONTAINERS === */
/* ---------------------------------------------------- */
.page-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-xl);
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.wide-container {
  max-width: 100%;
  padding: var(--spacing-xl) var(--spacing-md);
}

/* ---------------------------------------------------- */
/* === TYPOGRAPHY === */
/* ---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 1.75em;
  color: var(--color-accent);
}

h2 {
  font-size: 1.8em;
  color: var(--color-accent);
}

h3 {
  font-size: 1.3em;
  color: var(--color-text);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-base);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
  font-size: 1em;
}

/* ---------------------------------------------------- */
/* === INDEX PAGE WITH SIDEBAR === */
/* ---------------------------------------------------- */
.index-with-sidebar {
  display: flex;
  min-height: calc(100vh - 200px);
}

.recipe-sidebar {
  width: 280px;
  background-color: var(--color-sidebar-bg);
  border-right: 1px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 100px);
  position: sticky;
  top: 20px;
}

.sidebar-header {
  padding: 25px 15px 15px 15px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.sidebar-header:hover {
  opacity: 0.7;
}

.sidebar-title {
  font-size: 1.4em;
  font-weight: 500;
  color: var(--color-accent);
}

.sidebar-search-box {
  width: calc(100% - 30px);
  margin: 0 15px 15px 15px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background-color: #ffffff;
  color: #7d7d7d;
  flex-shrink: 0;
}

.sidebar-search-box:focus {
  outline: none;
  border-color: var(--color-accent);
}

.recipe-list-container {
  position: relative;
  overflow-y: auto;
  flex-grow: 1;
  mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
}

.recipe-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recipe-list li {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s;
  color: #7d7d7d;
  font-size: 0.88em;
}

.recipe-list li:last-child {
  border-bottom: none;
}

.recipe-list li:hover {
  background-color: #f0f0f0;
}

.recipe-name {
  font-weight: 400;
}

.recipe-time {
  font-size: 0.85em;
  color: #9d9d9d;
  margin-top: 4px;
}

/* ---------------------------------------------------- */
/* === INDEX TWO-COLUMN LAYOUT === */
/* ---------------------------------------------------- */
.index-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.index-left-column {
  display: flex;
  flex-direction: column;
}

.index-right-column {
  display: flex;
  flex-direction: column;
}

.featured-post-card {
  background-color: var(--color-sidebar-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.featured-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-post-card a {
  text-decoration: none;
  display: block;
  height: 100%;
  color: inherit;
}

.featured-post-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.featured-post-card-content {
  padding: var(--spacing-md);
}

.featured-post-tag {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.featured-post-card h3 {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.featured-post-card p {
  font-size: 0.95em;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.featured-post-meta {
  font-size: 0.8em;
  color: var(--color-text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------------------------------------------------- */
/* === LANDING PAGE STYLES === */
/* ---------------------------------------------------- */
.landing-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: var(--spacing-xxl) 0;
}

.landing-column {
  display: flex;
  flex-direction: column;
}

.intro-section {
  /* Desktop: reduce top padding */
  padding-top: 15px !important;
}

.landing-section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.landing-section-header h1 {
  font-size: 1.75em;
  font-weight: 600;
  color: #e73b42;
  margin-bottom: var(--spacing-md);
}

.landing-section-header p {
  font-size: 1em;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

.featured-card {
  background-color: var(--color-sidebar-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: var(--spacing-md);
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.featured-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.featured-card-content {
  padding: var(--spacing-lg);
}

.featured-card-tag {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.featured-card h3 {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.featured-card p {
  font-size: 0.95em;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.featured-card-meta {
  font-size: 0.85em;
  color: var(--color-text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
}

/* ---------------------------------------------------- */
/* === BLOG/POST STYLES === */
/* ---------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.post-tile {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-tile-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.post-tile-placeholder {
  width: 100%;
  height: 220px;
  background-color: var(--color-sidebar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-weight: 300;
  border-bottom: 1px solid var(--color-border);
}

.post-tile-content {
  padding: var(--spacing-md);
}

.post-tile-category {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.post-tile-title {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.post-tile-excerpt {
  font-size: 0.9em;
  color: var(--color-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-tile-date {
  font-size: 0.8em;
  color: var(--color-text-light);
  margin-top: var(--spacing-sm);
}

/* Full post view */
.post-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.post-meta {
  color: var(--color-text-muted);
  font-size: 0.9em;
  margin-bottom: var(--spacing-md);
}

.post-featured-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: var(--spacing-xl) auto;
  display: block;
}

.post-content {
  font-size: 1.05em;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: var(--spacing-lg) 0;
  display: block;
}

/* ---------------------------------------------------- */
/* === BUTTONS === */
/* ---------------------------------------------------- */
.btn {
  font-family: var(--font-primary);
  font-size: 0.95em;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: white;
}

/* ---------------------------------------------------- */
/* === FORMS === */
/* ---------------------------------------------------- */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 15px;
  font-family: var(--font-primary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: white;
  color: var(--color-text);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 14px;
}

/* ---------------------------------------------------- */
/* === RECIPE SPECIFIC STYLES === */
/* ---------------------------------------------------- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.recipe-card {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recipe-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.recipe-card-content {
  padding: 15px;
}

.recipe-card-title {
  font-size: 1.15em;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 5px;
}

.card-description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.recipe-card-time {
  font-size: 0.8em;
  color: var(--color-accent);
  font-weight: 600;
}

/* Recipe detail sections */
.ingredients-list {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.ingredient-item {
  padding: 6px 0 6px 16px;
  border-left: 3px solid var(--color-accent);
  margin-bottom: 8px;
  font-weight: 300;
}

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

.instruction-item {
  counter-increment: step-counter;
  margin-bottom: var(--spacing-md);
  padding-left: 40px;
  position: relative;
  font-weight: 300;
  line-height: 1.8;
}

.instruction-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background-color: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 0.9em;
}

.notes-section {
  background-color: var(--color-sidebar-bg);
  padding: var(--spacing-md);
  border-radius: 8px;
  margin-top: var(--spacing-md);
  font-weight: 300;
}

/* ---------------------------------------------------- */
/* === FOOTER === */
/* ---------------------------------------------------- */
.site-footer {
  background-color: var(--color-sidebar-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-xl) var(--spacing-md);
  margin-top: var(--spacing-xl);
  text-align: center;
}

.footer-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 0.9em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

/* ---------------------------------------------------- */
/* === UTILITIES === */
/* ---------------------------------------------------- */
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ---------------------------------------------------- */
/* === DARK MODE OVERRIDES === */
/* ---------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  .post-tile,
  .recipe-card {
    background-color: var(--color-sidebar-bg);
    border-color: var(--color-border);
  }

  .post-tile:hover,
  .recipe-card:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 122, 0.2);
  }

  .post-tile-placeholder,
  .recipe-card-image-placeholder {
    background-color: #362f2f;
    color: var(--color-text-light);
  }

  .form-input,
  .form-textarea,
  .form-select,
  .recipe-search-box,
  .filter-controls select,
  .filter-controls input {
    background-color: #362f2f;
    border-color: #463f3f;
    color: #b9b4b4;
  }

  .form-input:focus,
  .form-textarea:focus,
  .form-select:focus,
  .recipe-search-box:focus,
  .filter-controls select:focus,
  .filter-controls input:focus {
    border-color: var(--color-accent);
  }

  /* Light background for recipes page search/filters in dark mode */
  .recipe-search-box,
  .filter-controls select {
    background-color: #f5f5f5 !important;
    color: #353535 !important;
    border-color: #e0e0e0 !important;
  }

  .recipe-search-box::placeholder {
    color: #7d7d7d;
  }

  /* Featured post card in dark mode */
  .featured-post-card {
    background-color: var(--color-sidebar-bg);
    border-color: var(--color-border);
  }

  .featured-post-card:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 122, 0.2);
  }

  /* Keep header white in dark mode */
  .site-header {
    background-color: #ffffff;
  }

  .site-nav,
  .header-left,
  .header-center,
  .header-right {
    color: #353535;
  }

  .tools-dropdown-btn {
    color: #353535;
  }

  /* Gray banner in dark mode */
  .header-banner {
    filter: grayscale(0.5);
    opacity: 0.85;
  }

  /* Intro section dark mode colors */
  .intro-section h2 {
    color: var(--color-accent) !important;
  }

  .intro-section p {
    color: var(--color-text) !important;
  }
}

/* Mobile divider - hidden by default, shown on mobile */
.mobile-divider {
  display: none;
}

/* ---------------------------------------------------- */
/* === MOBILE RESPONSIVE === */
/* ---------------------------------------------------- */
@media (max-width: 768px) {
  .mobile-divider {
    display: block;
    margin: 50px 0;
    border: none;
    border-top: 1px solid var(--color-border);
  }
  .site-header {
    padding: var(--spacing-md);
  }

  .header-banner {
    max-height: 135px;
  }

  .header-icon-link {
    width: 35px;
    height: 35px;
  }

  .header-icon {
    width: 35px;
    height: 35px;
  }

  .menu-toggle {
    display: block;
  }

  .tools-dropdown-btn {
    display: none;
  }

  /* Hide recipe sidebar on mobile */
  .recipe-sidebar {
    display: none;
  }

  .index-with-sidebar {
    display: block;
  }

  .page-container {
    padding: var(--spacing-md);
  }

  .post-grid,
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  /* Stack two-column layout on mobile */
  .index-two-column {
    grid-template-columns: 1fr;
  }

  /* Stack landing page on mobile */
  .landing-page-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .landing-section-header h1 {
    font-size: 1.75em;
  }

  /* Fix search and filter heights on mobile */
  .filter-controls input,
  .filter-controls select,
  .recipe-search-box {
    height: 44px !important;
    padding: 10px 12px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
  }

  h1 {
    font-size: 1.75em;
  }

  h2 {
    font-size: 1.4em;
  }
}

/* Mobile landscape mode - reduce text sizes */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-title {
    font-size: 1.6em !important;
  }

  .hero-subtitle,
  .text-muted {
    font-size: 0.9em !important;
  }

  .content-wrapper p,
  .manifesto-text,
  .post-content,
  .post-content p,
  .recipe-section p,
  .ingredient-item,
  .instruction-item {
    font-size: 0.9em !important;
    line-height: 1.5 !important;
  }

  h1 {
    font-size: 1.5em !important;
  }

  h2 {
    font-size: 1.3em !important;
  }

  h3 {
    font-size: 1.1em !important;
  }
}

/* ---------------------------------------------------- */
/* === PRINT STYLES === */
/* ---------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .btn {
    display: none !important;
  }

  body {
    color: #000;
  }

  .page-container {
    max-width: 100%;
    padding: 0;
  }
}
