/* Spice Is Life - Classical French Cooking Blog */
/* Color Palette: Warm golds, deep burgundy, cream */

:root {
  --primary: #8B2500;       /* Deep burgundy */
  --primary-light: #A0522D; /* Sienna */
  --accent: #D4A843;        /* Warm gold */
  --accent-light: #E8C97A;  /* Light gold */
  --bg: #FFF8F0;            /* Warm cream */
  --bg-alt: #F5E6D3;        /* Light tan */
  --text: #2D1B0E;          /* Dark brown */
  --text-light: #6B4226;    /* Medium brown */
  --white: #FFFFFF;
  --shadow: rgba(45, 27, 14, 0.1);
  --radius: 12px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
}

/* Skip Link - Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  z-index: 100;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  font-size: 2rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Georgia', serif;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.main-nav a:hover, .main-nav a:focus, .main-nav a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" x="50" text-anchor="middle" font-size="80" opacity="0.05">🍳</text></svg>') repeat;
  background-size: 200px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
  text-decoration: none;
}

.hero-cta:hover, .hero-cta:focus {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-decoration: none;
  color: var(--text);
}

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Category Cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.category-card:hover, .category-card:focus {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
  text-decoration: none;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.category-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0;
}

/* Recipe Cards */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all var(--transition);
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
}

.recipe-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-alt);
}
.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-card-body {
  padding: 1.5rem;
}

.recipe-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.recipe-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.recipe-card h3 {
  margin-bottom: 0.5rem;
}

.recipe-card h3 a {
  color: var(--text);
}

.recipe-card h3 a:hover {
  color: var(--primary);
}

.recipe-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.recipe-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-alt);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all var(--transition);
}

.tag:hover {
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
}

/* Recipe Detail Page */
.recipe-hero {
  background: var(--bg-alt);
  padding: 3rem 0;
}

.recipe-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.recipe-hero-image {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.recipe-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-info {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.recipe-info-item {
  text-align: center;
}

.recipe-info-item .label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.recipe-info-item .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.recipe-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 3rem 0;
}

.recipe-sidebar {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.recipe-sidebar h3 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.ingredients-list {
  list-style: none;
}

.ingredients-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-alt);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ingredients-list li::before {
  content: '•';
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

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

.method-steps li {
  counter-increment: step;
  padding: 1.5rem 0 1.5rem 4rem;
  border-bottom: 1px solid var(--bg-alt);
  position: relative;
}

.method-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* About Page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-image {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text h2 {
  margin-top: 0;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--bg-alt);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  text-align: center;
}

.btn:hover, .btn:focus {
  background: var(--primary-light);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--text);
}

.btn-accent:hover, .btn-accent:focus {
  background: var(--accent-light);
  color: var(--text);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: var(--bg);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col p {
  color: rgba(255,248,240,0.8);
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  color: rgba(255,248,240,0.8);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,248,240,0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,248,240,0.6);
}

.footer-bottom a {
  color: var(--accent);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: var(--white);
  padding: 1.5rem;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-accept {
  background: var(--accent);
  color: var(--text);
}

.cookie-accept:hover {
  background: var(--accent-light);
}

.cookie-decline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-decline:hover {
  border-color: var(--white);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--text-light);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span {
  margin: 0 0.5rem;
}

/* Page Header */
.page-header {
  background: var(--bg-alt);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Privacy Policy */
.policy-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.policy-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

/* Newsletter */
.newsletter-section {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.newsletter-section h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.newsletter-section p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--text);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent-light);
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .recipe-hero-content {
    grid-template-columns: 1fr;
  }
  
  .recipe-content {
    grid-template-columns: 1fr;
  }
  
  .recipe-sidebar {
    position: static;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 15px var(--shadow);
    padding: 1rem;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  .main-nav li {
    border-bottom: 1px solid var(--bg-alt);
  }
  
  .main-nav a {
    display: block;
    padding: 1rem;
    border-bottom: none;
  }
  
  .recipes-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .recipe-info {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Print Styles */
@media print {
  .site-header, .site-footer, .cookie-banner, .newsletter-section {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}

/* Focus Styles - Accessibility */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Dropdown Navigation */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  color: var(--text);
  font-size: 0.8rem;
  vertical-align: middle;
  transition: color var(--transition);
}

.dropdown-toggle:hover {
  color: var(--primary);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 25px var(--shadow);
  border-radius: var(--radius);
  padding: 0.75rem 0;
  list-style: none;
  z-index: 60;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: none;
  transition: all var(--transition);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--bg-alt);
  color: var(--primary);
  text-decoration: none;
}

/* Recipe Search & Filter */
.recipe-search {
  max-width: 600px;
  margin: 0 auto 2rem;
  display: flex;
  gap: 1rem;
}

.recipe-search input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--bg-alt);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.recipe-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.category-filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--bg-alt);
  border-radius: 25px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.category-filter-btn:hover,
.category-filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.recipe-section-hidden {
  display: none;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
  font-size: 1.1rem;
  display: none;
}

@media (max-width: 768px) {
  .dropdown-toggle {
    display: none;
  }
  
  .has-dropdown .dropdown-menu {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: var(--bg);
  }
  
  .has-dropdown.open .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu a {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--bg-alt);
  }
  
  .recipe-search {
    flex-direction: column;
  }
  
  .category-filters {
    gap: 0.5rem;
  }
  
  .category-filter-btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }
}
