/* ALFA CHEF — Autonomous Blog Stylesheet (P10-C)
 * Self-contained styling matching ALFA CHEF brand identity:
 * Warm cream (#FAF7F2 / #FFFDF9), espresso (#2C1A1D / #3B2328), caramel gold (#C5A059 / #8C6D32).
 * Does not modify global React SPA styles.
 */

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

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

body.blog-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #FAF7F2;
  color: #2C1A1D;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.blog-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  color: #2C1A1D;
  line-height: 1.25;
}

a {
  color: #8C6D32;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #2C1A1D;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #C5A059;
  outline-offset: 2px;
}

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

.blog-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #2C1A1D;
  color: #FAF7F2;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}

.blog-skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 0.5rem;
}

.blog-container {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.blog-article-container {
  max-width: 50rem;
}

/* Header */
.blog-header {
  background-color: #FFFDF9;
  border-bottom: 1px solid #E8DFD1;
  position: sticky;
  top: 0;
  z-index: 20;
}

.blog-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #2C1A1D;
}

.blog-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #E8DFD1;
}

.blog-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.blog-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.blog-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.15rem;
}

.blog-nav-link {
  color: #3B2328;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding-block: 0.25rem;
}

.blog-nav-link:hover {
  color: #8C6D32;
}

.blog-lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid #C5A059;
  background-color: #FAF7F2;
  color: #2C1A1D;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.blog-lang-switch:hover {
  background-color: #3B2328;
  color: #FAF7F2;
  border-color: #3B2328;
}

/* Main */
.blog-main {
  flex: 1 0 auto;
  padding-block: 2rem 4rem;
}

/* Breadcrumbs */
.blog-breadcrumbs ol {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #5C4347;
}

.blog-breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.45rem;
  color: #C5A059;
}

.blog-breadcrumbs a {
  color: #8C6D32;
  text-decoration: none;
}

.blog-breadcrumbs a:hover {
  text-decoration: underline;
}

/* Index */
.blog-index-header {
  margin-bottom: 2.25rem;
  max-width: 44rem;
}

.blog-h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 700;
}

.blog-lead {
  margin: 0;
  font-size: 1.05rem;
  color: #4A3135;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background-color: #FFFDF9;
  border: 1px solid #E8DFD1;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(44, 26, 29, 0.04);
}

.blog-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.blog-card-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8C6D32;
  margin-bottom: 0.45rem;
}

.blog-card-title {
  margin: 0 0 0.65rem;
  font-size: 1.3rem;
}

.blog-card-title a {
  color: #2C1A1D;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #8C6D32;
}

.blog-card-excerpt {
  margin: 0 0 1.25rem;
  color: #4A3135;
  font-size: 0.95rem;
  flex: 1 1 auto;
}

.blog-card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #8C6D32;
  text-decoration: none;
}

.blog-card-cta:hover {
  color: #2C1A1D;
  text-decoration: underline;
}

/* Article */
.blog-article {
  background-color: #FFFDF9;
  border: 1px solid #E8DFD1;
  border-radius: 1.25rem;
  padding: clamp(1.35rem, 3.5vw, 2.75rem);
  box-shadow: 0 4px 16px rgba(44, 26, 29, 0.04);
}

.blog-article-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #E8DFD1;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.87rem;
  color: #5C4347;
}

.blog-article-lang-link {
  font-weight: 600;
}

.blog-hero-figure,
.blog-figure {
  margin: 1.5rem 0;
}

.blog-hero-figure img,
.blog-figure img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #E8DFD1;
}

.blog-figure-caption {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: #5C4347;
  text-align: center;
}

.blog-article-content {
  font-size: 1.03rem;
  color: #2C1A1D;
}

.blog-heading-2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.55rem;
}

.blog-heading-3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.25rem;
}

.blog-paragraph {
  margin: 0 0 1.15rem;
}

.blog-list {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.blog-list li {
  margin-bottom: 0.45rem;
}

.blog-link-block {
  margin: 1.35rem 0;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  background-color: #FAF7F2;
  border: 1px solid #E8DFD1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.blog-inline-cta {
  font-weight: 600;
  color: #3B2328;
}

.blog-link-desc {
  font-size: 0.9rem;
  color: #5C4347;
}

.blog-article-footer {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #E8DFD1;
}

.blog-back-link {
  font-weight: 600;
  text-decoration: none;
}

.blog-back-link:hover {
  text-decoration: underline;
}

/* Footer */
.blog-footer {
  background-color: #2C1A1D;
  color: #FAF7F2;
  padding-block: 2.5rem 1.75rem;
  margin-top: auto;
}

.blog-footer .blog-brand-name,
.blog-footer-heading {
  color: #FAF7F2;
}

.blog-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(232, 223, 209, 0.2);
}

.blog-footer-copy {
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
  color: #D9C8B4;
}

.blog-footer-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.blog-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.blog-footer-list a {
  color: #E8DFD1;
  text-decoration: none;
}

.blog-footer-list a:hover {
  color: #C5A059;
  text-decoration: underline;
}

.blog-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1.25rem;
  font-size: 0.84rem;
}

.blog-legal-link,
.blog-cookie-pref-btn {
  color: #E8DFD1;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-legal-link:hover,
.blog-cookie-pref-btn:hover {
  color: #C5A059;
}

.blog-legal-sep {
  color: #C5A059;
}

/* Cookie Consent Banner (A2) */
.blog-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem 1rem;
  pointer-events: none;
}

.blog-consent-banner[hidden] {
  display: none;
}

.blog-consent-card {
  max-width: 56rem;
  margin-inline: auto;
  background-color: #FFFDF9;
  border: 2px solid #E8DFD1;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  color: #2C1A1D;
  box-shadow: 0 18px 40px rgba(44, 26, 29, 0.22);
  pointer-events: auto;
}

.blog-consent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.blog-consent-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.blog-consent-close-icon {
  background: none;
  border: none;
  color: #5C4347;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.blog-consent-close-icon:hover {
  background-color: #FAF7F2;
  color: #2C1A1D;
}

.blog-consent-body {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  color: #3B2328;
  line-height: 1.55;
}

.blog-consent-status {
  margin-bottom: 0.85rem;
  padding: 0.45rem 0.75rem;
  background-color: #FAF7F2;
  border: 1px solid #E8DFD1;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  color: #3B2328;
}

.blog-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.blog-consent-privacy {
  font-size: 0.82rem;
  font-weight: 600;
}

.blog-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.blog-btn-primary,
.blog-btn-secondary,
.blog-btn-ghost {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 0.7rem;
  padding: 0.55rem 1.05rem;
  cursor: pointer;
}

.blog-btn-primary {
  background-color: #3B2328;
  color: #FAF7F2;
  border: 1px solid #3B2328;
}

.blog-btn-primary:hover {
  background-color: #2C1A1D;
}

.blog-btn-secondary {
  background-color: #FAF7F2;
  color: #2C1A1D;
  border: 1px solid #E8DFD1;
}

.blog-btn-secondary:hover {
  background-color: #E8DFD1;
}

.blog-btn-ghost {
  background: transparent;
  color: #5C4347;
  border: 1px solid transparent;
}

.blog-btn-ghost:hover {
  color: #2C1A1D;
}

@media (max-width: 640px) {
  .blog-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-consent-card {
    padding: 1rem 1.1rem;
  }
}
