/* Localized SSR shell (non-BG routes). Hides the BG SPA mount when present. */
body:has(.i18n-page) #root { display: none !important; }

.i18n-page {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #2a1e1a;
  background: #fdf7f1;
  min-height: 100vh;
  line-height: 1.55;
}
.i18n-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.i18n-header {
  background: rgba(253, 247, 241, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid #ecd8c5;
  position: sticky; top: 0; z-index: 30;
}
.i18n-header .i18n-container {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.i18n-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.i18n-brand-mark { font-size: 28px; }
.i18n-brand b { font-family: "Fraunces", "Playfair Display", serif; font-size: 20px; display: block; }
.i18n-brand em { font-style: normal; font-size: 12px; color: #a05a3b; }
.i18n-nav { display: flex; gap: 18px; margin-left: 20px; }
.i18n-nav a { color: #6b3f2e; text-decoration: none; font-weight: 500; }
.i18n-nav a:hover { color: #c04b3d; }
.i18n-lang { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.i18n-lang a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 999px; text-decoration: none;
  font-size: 12px; color: #6b3f2e; background: transparent; border: 1px solid transparent;
}
.i18n-lang a.active, .i18n-lang a:hover { background: #fff; border-color: #ecd8c5; color: #c04b3d; }
.i18n-lang .flag { font-size: 15px; }

/* Crumbs */
.i18n-crumbs { background: #fbf1e6; border-bottom: 1px solid #f0dcc8; font-size: 13px; padding: 10px 0; color: #7a5842; }
.i18n-crumbs a { color: #a05a3b; text-decoration: none; }
.i18n-crumbs .sep { margin: 0 8px; opacity: .5; }

/* Main */
.i18n-main { padding: 40px 0 80px; }
.i18n-main h1 { font-family: "Fraunces", "Playfair Display", serif; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 16px; color: #4a2418; }
.i18n-main h2 { font-family: "Fraunces", serif; font-size: 26px; margin: 40px 0 20px; color: #6b3f2e; }
.i18n-main .lead { font-size: 18px; color: #5c4032; margin: 0 0 24px; max-width: 720px; }
.i18n-main .muted { color: #8a6a55; font-size: 14px; }
.i18n-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 40px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease; }
.btn.primary { background: linear-gradient(135deg, #d85c48, #b23a2a); color: #fff; box-shadow: 0 6px 16px rgba(178,58,42,.28); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(178,58,42,.36); }
.btn.ghost { background: #fff; color: #6b3f2e; border: 1px solid #ecd8c5; }
.btn.ghost:hover { background: #fbf1e6; }

/* Hero */
.i18n-hero { padding: 20px 0 30px; }

/* Category grid */
.i18n-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.i18n-cat-card {
  display: flex; flex-direction: column; background: #fff;
  border: 2px solid #f0dcc8; border-radius: 18px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.i18n-cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.i18n-cat-card img { width: 100%; height: 160px; object-fit: cover; }
.i18n-cat-body { padding: 16px 18px; }
.i18n-cat-body .emoji { font-size: 22px; }
.i18n-cat-body h3 { margin: 4px 0 6px; font-family: "Fraunces", serif; font-size: 20px; color: #4a2418; }
.i18n-cat-body p { margin: 0 0 10px; font-size: 14px; color: #6b5045; }
.i18n-cat-body .count { font-size: 12px; color: #a05a3b; font-weight: 600; }

/* Card grid */
.i18n-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.i18n-card {
  display: flex; flex-direction: column; background: #fff;
  border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid #f0dcc8; transition: transform .2s ease, box-shadow .2s ease;
}
.i18n-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.08); }
.i18n-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.i18n-card-body { padding: 12px 14px; }
.i18n-card-body h3 { margin: 0 0 4px; font-size: 15px; color: #4a2418; font-weight: 600; }
.i18n-cta-sm { font-size: 13px; color: #c04b3d; font-weight: 500; }

/* Single card page */
.i18n-card-page { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr); gap: 40px; align-items: start; }
.i18n-card-hero img { width: 100%; border-radius: 18px; box-shadow: 0 18px 38px rgba(0,0,0,.15); }
.i18n-card-info { padding-top: 10px; }
@media (max-width: 780px) { .i18n-card-page { grid-template-columns: 1fr; } }

.i18n-related { margin-top: 60px; }

/* Footer */
.i18n-footer { background: #4a2418; color: #f4e4d4; padding: 50px 0 30px; margin-top: 60px; }
.i18n-footer h4 { font-family: "Fraunces", serif; margin: 0 0 12px; color: #fff; }
.i18n-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; margin-bottom: 30px; }
.i18n-footer ul { list-style: none; padding: 0; margin: 0; }
.i18n-footer li { margin: 6px 0; }
.i18n-footer a { color: #f4e4d4; text-decoration: none; font-size: 14px; }
.i18n-footer a:hover { color: #ffb99a; }
.i18n-copy { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; font-size: 13px; color: #d4b8a0; margin: 0; }

/* AdSense ad slot placeholders (activate when publisher ID is set) */
.ad-slot { display: block; margin: 30px auto; min-height: 90px; background: #fbf1e6; border: 1px dashed #e8ccb0; border-radius: 8px; text-align: center; color: #b89474; font-size: 12px; line-height: 90px; }
