﻿/* ============================================================
   CHEFAIRFRYER.NET - CSS DESIGN SYSTEM
   Cloned from recettes.com design tokens
   ============================================================ */

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

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors - Primary */
  --color-primary: #ff6652;
  --color-primary-dark: #ef5a47;
  --color-danger: #e23d39;
  --color-accent: #3cc7ba;
  
  /* Colors - Teal Palette */
  --color-teal: #004345;
  --color-teal-darker: #003033;
  --color-teal-medium: #1f5c5c;
  --color-teal-500: #004344;
  --color-teal-600: #003e40;
  --color-ink-muted: #496b6e;
  
  /* Colors - Neutrals */
  --color-white: #fcfcfc;
  --color-black: #000000;
  --color-gray-light: #f2f6f7;
  --color-gray-input: #f4f4f4;
  --color-divider: #dae2e3;
  --color-cream: #f6f1ea;
  
  /* Colors - Gray Scale */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5dc;
  --color-gray-400: #99a1af;
  --color-gray-600: #4a5565;
  --color-gray-700: #364153;
  --color-gray-900: #101828;
  
  /* Fonts */
  --font-heading: 'Rethink Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: 'Caveat', cursive;
  
  /* Spacing */
  --spacing: 0.25rem;
  --max-width-page: 1360px;
  
  /* Shadows */
  --shadow-card: 0 18px 40px -16px rgba(0,48,51,0.22);
  --shadow-card-featured: 0 30px 60px -24px rgba(0,48,51,0.45), 0 8px 20px -12px rgba(0,48,51,0.25);
  --shadow-card-hover: 0 14px 30px -16px rgba(0,48,51,0.25);
  --shadow-header: 0 4px 12px -2px rgba(0,48,51,0.18);
  --shadow-badge: 0 2px 8px rgba(0,48,51,0.18);
  --shadow-search: 0 18px 40px -22px rgba(0,0,0,0.5);
  --shadow-newsletter: 0 18px 40px -20px rgba(0,48,51,0.4);
}

/* --- Global Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-teal-darker);
  background-color: var(--color-white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--color-teal-darker);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-teal-medium);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2.5rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  height: 52px;
  padding: 0 1.75rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

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

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

.btn-secondary {
  background-color: white;
  color: var(--color-teal-darker);
}

.btn-secondary:hover {
  background-color: var(--color-gray-light);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
}

.btn-outline:hover {
  border-color: white;
  background-color: rgba(255,255,255,0.1);
}

.btn-dark {
  background-color: var(--color-teal-darker);
  color: white;
}

.btn-dark:hover {
  background-color: var(--color-teal-500);
}

.btn-sm {
  height: 36px;
  padding: 0 1rem;
  font-size: 13px;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: white;
  border-bottom: 1px solid var(--color-divider);
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 84px;
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .header-inner { padding: 0 2.5rem; }
}

.site-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Navigation Pills */
.nav-pills {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid var(--color-divider);
  background-color: var(--color-gray-light);
}

.nav-pills a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 1rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-teal);
  transition: all 0.2s ease;
}

.nav-pills a:hover {
  background-color: rgba(0,48,51,0.06);
  color: var(--color-teal-darker);
}

.nav-pills a.active {
  background-color: var(--color-teal-darker);
  color: white;
}

/* Search Bar in Header */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 248px;
  height: 44px;
  padding: 0 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0,48,51,0.12);
  background-color: var(--color-gray-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-bar:hover {
  border-color: var(--color-teal-medium);
}

.search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--color-ink-muted);
}

.search-bar span {
  font-size: 14px;
  color: var(--color-gray-400);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(0,48,51,0.15);
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-btn:hover {
  background-color: var(--color-gray-light);
}

.header-btn svg {
  width: 20px;
  height: 20px;
  color: var(--color-teal-darker);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(0,48,51,0.1);
  background-color: white;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
}

@media (min-width: 768px) {
  .nav-pills { display: flex; }
  .search-bar { display: flex; }
}

@media (max-width: 767px) {
  .nav-pills { display: none; }
  .search-bar { display: none; }
  .header-inner { justify-content: space-between; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-teal);
  color: white;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1360px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    padding: 5rem 2.5rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 55px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: white;
  text-wrap: pretty;
}

.hero-title em {
  font-style: normal;
  color: var(--color-primary);
}

.hero-subtitle {
  margin-top: 1.5rem;
  max-width: 460px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
}

@media (min-width: 640px) {
  .hero-subtitle { font-size: 1.125rem; }
}

/* Hero Search */
.hero-search {
  position: relative;
  margin-top: 1.75rem;
  max-width: 480px;
}

.hero-search-form {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 7px;
  padding-left: 1.25rem;
  border-radius: 9999px;
  background-color: white;
  box-shadow: var(--shadow-search);
}

.hero-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--color-teal-darker);
  outline: none;
}

.hero-search-input::placeholder {
  color: var(--color-gray-400);
}

.hero-search-btn {
  flex-shrink: 0;
  padding: 0.75rem 1.375rem;
  border-radius: 9999px;
  background-color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hero-search-btn:hover {
  background-color: var(--color-primary-dark);
}

/* Hero CTA */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* Hero Image */
.hero-image {
  position: relative;
  min-height: 320px;
}

@media (min-width: 640px) {
  .hero-image { min-height: 400px; }
}

@media (min-width: 1024px) {
  .hero-image { min-height: 560px; }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --- Section Titles --- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-teal-darker);
}

.section-subtitle {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--color-ink-muted);
}

/* --- Recipe Cards --- */
.recipe-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .recipe-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Vertical Recipe Card */
.recipe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--color-divider);
  background-color: white;
  transition: all 0.2s ease;
}

.recipe-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: var(--shadow-card);
}

/* Card Image */
.recipe-card-image {
  position: relative;
  aspect-ratio: 16/10;
  width: 100%;
  overflow: hidden;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.recipe-card:hover .recipe-card-image img {
  opacity: 0.95;
}

/* Card Badge */
.recipe-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.625rem;
  border-radius: 9999px;
  background-color: rgba(0,48,51,0.85);
  backdrop-filter: blur(8px);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  box-shadow: var(--shadow-badge);
}

/* Favorite Button */
.recipe-favorite {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background-color: rgba(255,255,255,0.95);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.recipe-favorite:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.recipe-favorite svg {
  width: 20px;
  height: 20px;
  color: var(--color-teal-medium);
}

/* Card Content */
.recipe-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.625rem;
  padding: 1.125rem 1.375rem 1.375rem;
}

.recipe-author {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-teal-medium);
}

.recipe-author strong {
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--color-teal-darker);
}

.recipe-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--color-teal-darker);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card:hover .recipe-title {
  text-decoration: underline;
}

.recipe-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-divider);
  margin: 0.125rem 0;
}

/* Card Meta */
.recipe-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-ink-muted);
}

.recipe-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.recipe-meta-item svg {
  width: 16px;
  height: 16px;
}

/* --- Horizontal Recipe Card --- */
.recipe-card-horizontal {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 200px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--color-divider);
  background-color: var(--color-gray-light);
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .recipe-card-horizontal {
    grid-template-columns: 180px 1fr;
  }
}

.recipe-card-horizontal:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
}

.recipe-card-horizontal .recipe-card-image {
  aspect-ratio: auto;
  min-height: 100%;
}

.recipe-card-horizontal .recipe-card-image img {
  transition: transform 0.3s ease;
}

.recipe-card-horizontal:hover .recipe-card-image img {
  transform: scale(1.03);
}

/* --- Category Cards --- */
.category-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 188px;
  overflow: hidden;
  border-radius: 18px;
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.category-card:hover .category-card-bg {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,48,51,0.9), rgba(0,48,51,0.3), transparent);
}

.category-card-content {
  position: relative;
  padding: 1.25rem;
}

.category-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: white;
}

.category-card-desc {
  margin-top: 0.375rem;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

/* --- Footer --- */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--color-teal-600);
  background-image: url('/assets/images/footer-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.footer-inner {
  position: relative;
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
}

@media (min-width: 640px) {
  .footer-inner { padding: 3.5rem 1.5rem 3rem; }
}

@media (min-width: 1024px) {
  .footer-inner { padding: 5rem 2.5rem 3rem; }
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid { gap: 2.5rem; }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.18fr 0.92fr 1fr;
    gap: 3rem;
  }
}

.footer-section h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.75rem;
}

.footer-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
  font-size: 1rem;
}

.footer-nav a {
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: white;
}

.footer-logo img {
  height: 48px;
  width: 150px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .footer-logo img { height: 56px; width: 175px; }
}

@media (min-width: 768px) {
  .footer-logo img { height: 64px; width: 200px; }
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Footer Bottom */
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.1);
  background-color: var(--color-teal);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.125rem;
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (min-width: 1024px) {
  .footer-bottom-inner { padding: 2rem 3rem; }
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-left: auto;
}

.footer-legal a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: white;
}

/* --- Newsletter CTA --- */
.newsletter {
  background-color: var(--color-primary);
  padding: 2.5rem 1rem;
  color: white;
}

@media (min-width: 640px) {
  .newsletter { padding: 3.5rem 1.5rem; }
}

@media (min-width: 1024px) {
  .newsletter { padding: 4rem 2.5rem; }
}

.newsletter-inner {
  display: grid;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-width-page);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .newsletter-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
  }
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: white;
  text-wrap: pretty;
}

.newsletter-desc {
  margin-top: 0.75rem;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

@media (min-width: 400px) {
  .newsletter-form {
    flex-direction: row;
    height: 64px;
    align-items: center;
    border-radius: 9999px;
    background-color: white;
    padding: 0.5rem;
    box-shadow: var(--shadow-newsletter);
  }
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 1.25rem;
  border-radius: 9999px;
  background-color: white;
  font-size: 15px;
  color: var(--color-teal-darker);
  border: none;
  outline: none;
}

@media (min-width: 400px) {
  .newsletter-input {
    height: auto;
    background: transparent;
  }
}

.newsletter-btn {
  flex-shrink: 0;
  height: 48px;
  padding: 0 1.5rem;
  border-radius: 9999px;
  background-color: var(--color-teal-darker);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-btn:hover {
  background-color: var(--color-teal-500);
}

/* --- Tags/Chips --- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 1rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background-color: var(--color-gray-light);
  color: var(--color-teal-darker);
}

.tag:hover {
  border-color: var(--color-teal-medium);
}

.tag-active {
  background-color: var(--color-teal-darker);
  color: white;
}

/* --- Dividers --- */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-divider);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-white { color: white; }
.bg-teal { background-color: var(--color-teal); }
.bg-teal-darker { background-color: var(--color-teal-darker); }
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.font-hand { font-family: var(--font-hand); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-tight { line-height: 1.3; }
.leading-relaxed { line-height: 1.75; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.max-w-page { max-width: var(--max-width-page); }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.transition { transition: all 0.2s ease; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.hover\:-translate-y-0\.5:hover { transform: translateY(-2px); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:underline:hover { text-decoration: underline; }
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* === RESPONSIVE QUERIES === */

/* ============================================================
   RESPONSIVE MEDIA QUERIES - Mobile-First Design
   Cloned from recettes.com breakpoints
   ============================================================ */

/* --- Base Mobile (0px+) --- */
@media (max-width: 639px) {
  /* Hero adjustments */
  .hero-inner {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -0.04em;
  }
  
  .hero-subtitle {
    font-size: 15px;
  }
  
  .hero-image {
    min-height: 280px;
    order: -1;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  /* Recipe grid - single column on mobile */
  .recipe-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .recipe-card-content {
    padding: 1rem 1.25rem 1.25rem;
  }
  
  .recipe-title {
    font-size: 19px;
  }
  
  .recipe-meta {
    font-size: 12px;
  }
  
  /* Category grid - 2 columns on mobile */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .category-card {
    min-height: 140px;
  }
  
  .category-card-title {
    font-size: 15px;
  }
  
  .category-card-desc {
    display: none;
  }
  
  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .footer-social {
    margin-top: 1.5rem;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    margin-left: 0;
    justify-content: center;
  }
  
  /* Newsletter */
  .newsletter-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .newsletter-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .newsletter-form {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  
  .newsletter-input {
    height: 52px;
  }
  
  /* Sections */
  .section-title {
    font-size: 24px;
  }
  
  .section-subtitle {
    font-size: 14px;
  }
  
  /* Container padding */
  .container {
    padding: 0 0.875rem;
  }
}

/* --- Small Tablets (640px+) --- */
@media (min-width: 640px) {
  /* Hero */
  .hero-inner {
    padding: 4rem 1.5rem;
  }
  
  .hero-title {
    font-size: 46px;
    line-height: 0.98;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-image {
    min-height: 400px;
  }
  
  /* Recipe grid - 2 columns */
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  /* Category grid - 3 columns */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .category-card {
    min-height: 160px;
  }
  
  .category-card-desc {
    display: block;
  }
  
  /* Footer */
  .footer-inner {
    padding: 3.5rem 1.5rem 3rem;
  }
  
  .footer-grid {
    gap: 2.5rem;
  }
  
  /* Newsletter */
  .newsletter {
    padding: 3.5rem 1.5rem;
  }
}

/* --- Tablets/Laptops (768px+) --- */
@media (min-width: 768px) {
  /* Navigation visible */
  .nav-pills {
    display: flex !important;
  }
  
  .search-bar {
    display: flex !important;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
  
  /* Newsletter form horizontal */
  .newsletter-form {
    flex-direction: row;
    height: 64px;
    border-radius: 9999px;
    background-color: white;
    padding: 0.5rem;
    box-shadow: var(--shadow-newsletter);
  }
  
  .newsletter-input {
    height: auto;
    background: transparent;
  }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  /* Hero */
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    padding: 5rem 2.5rem;
  }
  
  .hero-title {
    font-size: 55px;
  }
  
  .hero-image {
    min-height: 560px;
  }
  
  /* Recipe grid - 4 columns */
  .recipe-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  /* Category grid - 4 columns */
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .category-card {
    min-height: 188px;
  }
  
  /* Footer */
  .footer-inner {
    padding: 5rem 2.5rem 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1.18fr 0.92fr 1fr;
    gap: 3rem;
  }
  
  .footer-bottom-inner {
    padding: 2rem 3rem;
  }
  
  /* Newsletter */
  .newsletter {
    padding: 4rem 2.5rem;
  }
  
  .newsletter-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
  }
  
  .newsletter-title {
    font-size: 44px;
  }
  
  /* Container */
  .container {
    padding: 0 2.5rem;
  }
}

/* --- Large Desktop (1280px+) --- */
@media (min-width: 1280px) {
  .hero-inner {
    max-width: 1360px;
  }
  
  .recipe-grid {
    max-width: 1360px;
    margin: 0 auto;
  }
}

/* --- Mobile Navigation Overlay --- */
@media (max-width: 767px) {
  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
  }
  
  .mobile-nav.active {
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-nav-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .mobile-nav.active .mobile-nav-content {
    transform: translateY(0);
  }
  
  .mobile-nav-handle {
    width: 40px;
    height: 4px;
    background-color: var(--color-gray-300);
    border-radius: 9999px;
    margin: 0 auto 1.25rem;
  }
  
  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-teal-darker);
    transition: background-color 0.2s ease;
  }
  
  .mobile-nav-link:hover {
    background-color: var(--color-gray-light);
  }
  
  .mobile-nav-link svg {
    width: 20px;
    height: 20px;
    color: var(--color-teal-medium);
  }
}

/* --- Bottom Navigation Bar (Mobile) --- */
@media (max-width: 767px) {
  .bottom-nav {
    position: fixed;
    inset-x: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--color-divider);
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    padding: 0.375rem 0.375rem;
    padding-bottom: max(env(safe-area-inset-bottom), 0.5rem);
  }
  
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    color: var(--color-teal-medium);
    transition: all 0.2s ease;
    text-decoration: none;
  }
  
  .bottom-nav-item:hover,
  .bottom-nav-item.active {
    background-color: var(--color-gray-light);
    color: var(--color-teal-darker);
  }
  
  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
  }
  
  /* Add padding to body for bottom nav */
  body {
    padding-bottom: 80px;
  }
}

/* --- Touch Device Optimizations --- */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 48px;
  }
  
  .recipe-favorite {
    width: 44px;
    height: 44px;
  }
  
  .header-btn {
    width: 48px;
    height: 48px;
  }
  
  .tag {
    height: 40px;
    padding: 0 1.25rem;
  }
  
  /* Disable hover effects on touch */
  .recipe-card:hover {
    transform: none;
  }
  
  .recipe-card:hover .recipe-title {
    text-decoration: none;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .site-footer,
  .bottom-nav,
  .newsletter,
  .recipe-favorite,
  .hero-search {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
    background: white;
  }
  
  .recipe-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #ddd;
  }
  
  .hero {
    background: none !important;
    color: black !important;
  }
  
  .hero-title {
    color: black !important;
  }
  
  .hero-title em {
    color: #d33 !important;
  }
}

/* --- High Contrast Mode --- */
@media (prefers-contrast: high) {
  :root {
    --color-divider: #000;
    --color-gray-light: #fff;
  }
  
  .recipe-card {
    border-width: 2px;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .recipe-badge {
    background-color: var(--color-teal-darker);
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .recipe-card:hover {
    transform: none;
  }
  
  .category-card:hover .category-card-bg {
    transform: none;
  }
  
  .recipe-card-horizontal:hover .recipe-card-image img {
    transform: none;
  }
}

/* --- Dark Mode Support --- */
@media (prefers-color-scheme: dark) {
  /* Optional: Uncomment if dark mode is desired
  :root {
    --color-white: #1a1a2e;
    --color-gray-light: #16213e;
    --color-teal-darker: #e0e0e0;
    --color-teal-medium: #b0b0b0;
    --color-divider: #333;
  }
  
  .recipe-card {
    background-color: var(--color-gray-light);
  }
  
  .site-header {
    background-color: var(--color-gray-light);
  }
  */
}

/* --- Ultra-Wide Screens (1920px+) --- */
@media (min-width: 1920px) {
  .hero-inner {
    max-width: 1600px;
  }
  
  .recipe-grid {
    max-width: 1600px;
  }
  
  .footer-inner {
    max-width: 1600px;
  }
}

/* --- Small Phones (320px-374px) --- */
@media (max-width: 374px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-search-form {
    flex-direction: column;
    border-radius: 1rem;
    padding: 0.75rem;
  }
  
  .hero-search-input {
    width: 100%;
    text-align: center;
  }
  
  .hero-search-btn {
    width: 100%;
  }
  
  .recipe-card-content {
    padding: 0.875rem 1rem 1.125rem;
  }
  
  .recipe-title {
    font-size: 17px;
  }
  
  .recipe-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }
  
  .footer-nav {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    max-width: 100%;
  }
}


/* ============================================================
   HERO AIR FRYER SECTION
   ============================================================ */
.hero-airfryer {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-darker) 50%, #002a2c 100%);
    overflow: hidden;
    padding: 3rem 1rem;
}

.hero-airfryer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,102,82,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-airfryer::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60,199,186,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-airfryer .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    width: 100%;
}

.hero-airfryer h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero-airfryer h1 em {
    font-style: normal;
    color: var(--color-primary);
}

.hero-airfryer p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2rem;
}

.hero-search-box {
    display: flex;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 9999px;
    padding: 6px;
    box-shadow: 0 18px 50px -16px rgba(0,0,0,0.45);
}

.hero-search-input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 1.25rem;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-teal-darker);
    outline: none;
}

.hero-search-input::placeholder {
    color: var(--color-gray-400);
}

.hero-search-button {
    flex-shrink: 0;
    height: 52px;
    padding: 0 1.75rem;
    border: none;
    border-radius: 9999px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.hero-search-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Section below hero */
.section-recipes {
    padding: 3rem 0 1rem;
}

.section-recipes .section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 0.5rem;
}

.section-recipes .section-subtitle {
    font-size: 1rem;
    color: var(--color-ink-muted);
}

/* ============================================================
   RESPONSIVE - HERO
   ============================================================ */
@media (max-width: 639px) {
    .hero-airfryer {
        min-height: 340px;
        padding: 2.5rem 1rem;
    }

    .hero-airfryer h1 {
        font-size: 2rem;
    }

    .hero-airfryer p {
        font-size: 15px;
        margin-bottom: 1.5rem;
    }

    .hero-search-box {
        flex-direction: column;
        border-radius: 1rem;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .hero-search-input {
        width: 100%;
        height: 48px;
        text-align: center;
    }

    .hero-search-button {
        width: 100%;
        height: 48px;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .hero-airfryer {
        min-height: 380px;
    }
}
