/* ============================================
   BudgetRecipeDB.com - Shared Stylesheet
   Theme: gradient-bold | Font: Inter | Dark only
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
button { cursor: pointer; }

/* --- CSS Variables --- */
:root {
  --gradient-primary: linear-gradient(135deg, #FF6B35, #D62828);
  --gradient-hero: linear-gradient(135deg, #FF6B35 0%, #D62828 50%, #1B1B2F 100%);
  --bg-primary: #0F0F1A;
  --bg-secondary: #1A1A2E;
  --bg-card: #16213E;
  --bg-card-hover: #1C2A4A;
  --text-primary: #F5F5F5;
  --text-secondary: #B0B0C8;
  --text-muted: #6C6C8A;
  --accent-savings: #2ECC71;
  --accent-savings-glow: rgba(46, 204, 113, 0.15);
  --cost-cheap: #2ECC71;
  --cost-budget: #F39C12;
  --cost-moderate: #E74C3C;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 107, 53, 0.3);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.15);
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* --- Base Typography --- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }
p { color: var(--text-secondary); margin-bottom: var(--space-md); }
a:hover { color: #FF6B35; }
strong { font-weight: 600; }

/* --- Layout --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--space-xl); }
}
.section { padding: var(--space-3xl) 0; }
.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-xl);
  text-align: center;
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-sm) 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-mobile.active { display: flex; }
.nav-mobile a {
  font-size: var(--text-base);
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
}

/* --- Hero --- */
.hero {
  background: var(--gradient-hero);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}
.hero p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero { padding: 5rem 0; }
  .hero h1 { font-size: var(--text-5xl); }
}

/* --- Search Bar --- */
.search-bar {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.search-bar input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
}
.search-bar input::placeholder { color: rgba(255, 255, 255, 0.5); }
.search-bar button {
  padding: var(--space-md) var(--space-xl);
  background: var(--gradient-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: white;
  font-weight: 600;
  font-size: var(--text-base);
  transition: opacity 0.2s;
}
.search-bar button:hover { opacity: 0.9; }

/* --- Cost Badge --- */
.cost-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 700;
  line-height: 1.1;
  transition: box-shadow 0.3s;
}
.cost-badge .amount { font-size: 48px; }
.cost-badge .label {
  font-size: var(--text-xs);
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cost-badge--cheap {
  background: rgba(46, 204, 113, 0.15);
  color: var(--cost-cheap);
  border: 1px solid rgba(46, 204, 113, 0.3);
}
.cost-badge--budget {
  background: rgba(243, 156, 18, 0.15);
  color: var(--cost-budget);
  border: 1px solid rgba(243, 156, 18, 0.3);
}
.cost-badge--moderate {
  background: rgba(231, 76, 60, 0.15);
  color: var(--cost-moderate);
  border: 1px solid rgba(231, 76, 60, 0.3);
}
.cost-badge:hover {
  box-shadow: 0 0 24px currentColor;
}
/* Small variant for cards */
.cost-badge--sm {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}
.cost-badge--sm .amount { font-size: 24px; }

/* --- Recipe Card --- */
.recipe-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}
.recipe-card a { display: flex; flex-direction: column; height: 100%; }
.recipe-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}
.recipe-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-card-img .cost-badge {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
}
.recipe-card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.recipe-card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}
.recipe-card-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: auto;
  padding-top: var(--space-sm);
}
.recipe-card-meta span { display: flex; align-items: center; gap: var(--space-xs); }

/* --- Nutrition Bar --- */
.nutrition-bar {
  display: flex;
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-secondary);
}
.nutrition-bar .protein { background: #3498DB; }
.nutrition-bar .carbs { background: #F39C12; }
.nutrition-bar .fat { background: #E74C3C; }
.nutrition-legend {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}
.nutrition-legend span::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: var(--space-xs);
  vertical-align: middle;
}
.nutrition-legend .protein::before { background: #3498DB; }
.nutrition-legend .carbs::before { background: #F39C12; }
.nutrition-legend .fat::before { background: #E74C3C; }

/* --- Nutrition Panel --- */
.nutrition-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.nutrition-panel h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .nutrition-grid { grid-template-columns: repeat(5, 1fr); }
}
.nutrition-item {
  text-align: center;
}
.nutrition-item .value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
}
.nutrition-item .unit {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- Ingredient List --- */
.ingredient-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.ingredient-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-base);
}
.ingredient-row:last-child { border-bottom: none; }
.ingredient-name { color: var(--text-primary); }
.ingredient-qty { color: var(--text-secondary); margin-left: var(--space-sm); }
.ingredient-price {
  font-weight: 600;
  color: var(--accent-savings);
  white-space: nowrap;
}

/* --- Instructions --- */
.instructions { counter-reset: step; }
.instructions .step {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.instructions .step:last-child { border-bottom: none; }
.instructions .step-number {
  counter-increment: step;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
}
.instructions .step-text {
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: var(--space-xs);
}

/* --- Lead Magnet CTA --- */
.cta-magnet {
  background: var(--surface-glass);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-magnet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(214, 40, 40, 0.05));
  pointer-events: none;
}
.cta-magnet h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
  position: relative;
}
.cta-magnet p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  position: relative;
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
@media (min-width: 640px) {
  .cta-form { flex-direction: row; }
}
.cta-form input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}
.cta-form input::placeholder { color: var(--text-muted); }
.cta-form button {
  padding: var(--space-md) var(--space-xl);
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.cta-form button:hover { opacity: 0.9; }
.cta-success {
  display: none;
  color: var(--accent-savings);
  font-weight: 600;
  padding: var(--space-md);
}

/* --- State Comparison --- */
.state-prices {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.state-prices-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  width: 100%;
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--text-base);
  transition: background 0.2s;
}
.state-prices-toggle:hover { background: var(--surface-glass); }
.state-prices-toggle .arrow {
  transition: transform 0.3s;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.state-prices-toggle.active .arrow { transform: rotate(180deg); }
.state-prices-body {
  display: none;
  padding: 0 var(--space-lg) var(--space-lg);
}
.state-prices-body.active { display: block; }
.state-prices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}
@media (min-width: 768px) {
  .state-prices-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .state-prices-grid { grid-template-columns: repeat(4, 1fr); }
}
.state-price-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.state-price-item:hover { background: var(--surface-glass); }
.state-price-item .price { font-weight: 600; color: var(--text-primary); }

/* --- Filter Sidebar --- */
.filter-sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.filter-group { margin-bottom: var(--space-lg); }
.filter-group:last-child { margin-bottom: 0; }
.filter-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.filter-group select,
.filter-group input[type="range"] {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}
.filter-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.filter-tag {
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tag:hover,
.filter-tag.active {
  background: rgba(255, 107, 53, 0.15);
  border-color: var(--border-accent);
  color: #FF6B35;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-md) 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: #FF6B35; }
.breadcrumb .separator { color: var(--text-muted); }

/* --- Cost Tier Cards --- */
.tier-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .tier-cards { grid-template-columns: repeat(3, 1fr); }
}
.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.tier-card .tier-price {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.tier-card .tier-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}
.tier-card .tier-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.tier-card--cheap .tier-price { color: var(--cost-cheap); }
.tier-card--budget .tier-price { color: var(--cost-budget); }
.tier-card--moderate .tier-price { color: var(--cost-moderate); }

/* --- Category Grid --- */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.category-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.category-card p { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 0; }

/* --- Blog Card --- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.blog-card-body { padding: var(--space-lg); }
.blog-card-title { font-size: var(--text-lg); margin-bottom: var(--space-sm); }
.blog-card-meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.blog-card-excerpt { font-size: var(--text-sm); color: var(--text-secondary); }

/* --- Blog Article --- */
.article-header {
  padding: var(--space-2xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-xl);
}
.article-header h1 { font-size: var(--text-4xl); margin-bottom: var(--space-sm); }
.article-meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  gap: var(--space-lg);
}
.article-body h2 {
  font-size: var(--text-3xl);
  margin: var(--space-2xl) 0 var(--space-md);
}
.article-body h3 {
  font-size: var(--text-2xl);
  margin: var(--space-xl) 0 var(--space-md);
}
.article-body p { margin-bottom: var(--space-md); }
.article-body ul, .article-body ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}
.article-body li {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  list-style: disc;
}
.article-body ol li { list-style: decimal; }
.article-body a { color: #FF6B35; text-decoration: underline; }

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-col h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.footer-col p { font-size: var(--text-sm); color: var(--text-muted); }
.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
}
.footer-col a:hover { color: #FF6B35; }
.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- State Selector (Home) --- */
.state-selector {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
}
.state-selector h2 { margin-bottom: var(--space-md); }
.state-selector select {
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  min-width: 240px;
}

/* --- Recipe Page Layout --- */
.recipe-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}
@media (min-width: 768px) {
  .recipe-header { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.recipe-header-info h1 { font-size: var(--text-4xl); margin-bottom: var(--space-sm); }
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.recipe-meta span { display: flex; align-items: center; gap: var(--space-xs); }
.recipe-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
@media (min-width: 1024px) {
  .recipe-layout { grid-template-columns: 2fr 1fr; }
}
.recipe-sidebar { display: flex; flex-direction: column; gap: var(--space-lg); }

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}
.pagination a:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.pagination .active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

/* --- Browse Layout --- */
.browse-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
@media (min-width: 1024px) {
  .browse-layout { grid-template-columns: 260px 1fr; }
}

/* --- Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border: 4px solid transparent;
  border-radius: var(--radius-full);
  background-clip: padding-box;
  min-height: 48px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); background-clip: padding-box; }

/* --- Tags --- */
.tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* --- Nearby States --- */
.nearby-states {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.nearby-states a {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.nearby-states a:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: #FF6B35;
}

/* --- Sort Bar --- */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-lg);
}
.sort-bar .count { font-size: var(--text-sm); color: var(--text-muted); }
.sort-bar select {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

/* --- Loading Spinner --- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-subtle);
  border-top-color: #FF6B35;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
