/* AamoraAI Blog - editorial nutrition journal styling
   Uses tokens from main.css; all colors HSL. */

.blog-main { padding-bottom: 4rem; }

/* ===== Hero ===== */
.blog-hero {
  background: var(--gradient-warm);
  padding: 4.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--divider-gold);
}
.blog-hero-inner { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.blog-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: hsl(var(--gold) / 0.95); font-weight: 600;
}
.blog-hero .eyebrow::before {
  content: ""; width: 22px; height: 1px; background: hsl(var(--gold) / 0.7);
}
.blog-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1; letter-spacing: -0.02em;
  margin: 1rem 0 1rem; color: hsl(var(--foreground));
}
.blog-hero h1 em {
  font-style: italic; color: hsl(153 22% 32%);
}
.blog-hero-lead {
  max-width: 620px; margin: 0 auto 2rem;
  color: hsl(var(--foreground) / 0.7); font-size: 1.02rem; line-height: 1.65;
}

/* search */
.blog-search {
  max-width: 620px; margin: 0 auto;
  display: flex; align-items: center; gap: 0.5rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 999px; padding: 0.45rem 0.55rem 0.45rem 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-search:focus-within {
  border-color: hsl(var(--gold) / 0.6);
  box-shadow: 0 0 0 4px hsl(var(--gold) / 0.12), var(--shadow-soft);
}
.blog-search svg { flex: 0 0 auto; color: hsl(var(--foreground) / 0.5); }
.blog-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 0.95rem; color: hsl(var(--foreground));
  padding: 0.55rem 0.25rem; min-width: 0;
}
.blog-search input::placeholder { color: hsl(var(--foreground) / 0.4); }
.blog-search button {
  border: none; cursor: pointer; font: inherit;
  background: hsl(var(--foreground)); color: hsl(var(--background));
  border-radius: 999px; padding: 0.55rem 1.1rem; font-size: 0.88rem; font-weight: 500;
  transition: background 0.2s;
}
.blog-search button:hover { background: hsl(var(--foreground) / 0.85); }

.blog-search-suggest {
  margin: 1.25rem auto 0; max-width: 620px;
  display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center;
  font-size: 0.78rem; color: hsl(var(--foreground) / 0.5);
}
.blog-search-suggest span { padding-top: 0.25rem; }
.blog-search-suggest button {
  background: hsl(var(--background) / 0.6); border: 1px solid hsl(var(--border-soft));
  color: hsl(var(--foreground) / 0.75); padding: 0.25rem 0.7rem;
  border-radius: 999px; font-size: 0.78rem; cursor: pointer;
  transition: all 0.18s ease;
}
.blog-search-suggest button:hover {
  border-color: hsl(var(--gold) / 0.55);
  color: hsl(var(--foreground));
  background: hsl(var(--background));
}

/* ===== Category chips ===== */
.blog-categories {
  border-bottom: 1px solid hsl(var(--border-soft));
  background: hsl(var(--background));
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
  background: hsl(var(--background) / 0.92);
}
.blog-cat-inner {
  max-width: 1180px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; gap: 0.5rem; overflow-x: auto;
  scrollbar-width: none;
}
.blog-cat-inner::-webkit-scrollbar { display: none; }
.blog-chip {
  flex: 0 0 auto;
  background: transparent; border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground) / 0.75);
  padding: 0.5rem 1rem; border-radius: 999px;
  font: inherit; font-size: 0.85rem; cursor: pointer;
  transition: all 0.18s ease;
}
.blog-chip:hover {
  border-color: hsl(153 22% 38%); color: hsl(var(--foreground));
  background: hsl(33 30% 95%);
}
.blog-chip.is-active {
  background: hsl(153 22% 28%); color: hsl(var(--background));
  border-color: hsl(153 22% 28%);
}

/* ===== Container ===== */
.blog-wrap { max-width: 1180px; margin: 0 auto; padding: 3rem 1.5rem 0; }

/* ===== Featured article ===== */
.blog-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem;
}
.blog-section-head h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.7rem; letter-spacing: -0.01em; margin: 0;
  color: hsl(var(--foreground));
}
.blog-section-head .eyebrow-plain {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: hsl(var(--gold) / 0.95); font-weight: 600;
}
.blog-section-sub { color: hsl(var(--foreground) / 0.55); font-size: 0.9rem; margin: 0; }

.featured-card {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 0; background: hsl(var(--background));
  border: 1px solid hsl(var(--border-soft));
  border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-organic), box-shadow 0.25s;
}
.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}
.featured-media {
  position: relative;
  min-height: 360px;
  aspect-ratio: 16 / 10;
  background: hsl(var(--muted));
  overflow: hidden;
}
.featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-organic);
}
.featured-card:hover .featured-media img { transform: scale(1.03); }
.featured-body {
  padding: 2.25rem 2.25rem 2rem;
  display: flex; flex-direction: column; justify-content: center;
}
.cat-label {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: hsl(var(--gold) / 1); font-weight: 600;
  border-bottom: 1px solid hsl(var(--gold) / 0.4);
  padding-bottom: 0.25rem; align-self: flex-start;
}
.featured-body h3 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem); line-height: 1.2;
  letter-spacing: -0.015em; margin: 1rem 0 0.75rem;
  color: hsl(var(--foreground));
}
.featured-body p {
  color: hsl(var(--foreground) / 0.7); font-size: 0.98rem;
  line-height: 1.65; margin: 0 0 1.5rem;
}
.article-meta {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; color: hsl(var(--foreground) / 0.55);
  margin-bottom: 1.5rem;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: hsl(var(--foreground) / 0.25); }
.read-cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  align-self: flex-start;
  background: hsl(153 22% 28%); color: hsl(var(--background));
  padding: 0.75rem 1.4rem; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s; border: none;
}
.read-cta:hover {
  background: hsl(153 22% 22%);
  gap: 0.75rem;
}
.read-cta .arrow { transition: transform 0.2s; }
.read-cta:hover .arrow { transform: translateX(2px); }

/* ===== Article grid ===== */
.blog-section { margin-top: 4rem; }
.article-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.article-card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border-soft));
  border-radius: 0.9rem; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease-organic), box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: hsl(var(--gold) / 0.35);
}
.article-media {
  aspect-ratio: 16/10; background: hsl(var(--muted)); overflow: hidden;
}
.article-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-organic);
}
.article-card:hover .article-media img { transform: scale(1.04); }
.article-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-body .cat-label { font-size: 0.68rem; }
.article-body h3 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em;
  margin: 0.85rem 0 0.55rem; color: hsl(var(--foreground));
}
.article-excerpt {
  color: hsl(var(--foreground) / 0.65); font-size: 0.88rem; line-height: 1.6;
  margin: 0 0 1.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border-soft));
}
.article-foot .article-meta { margin: 0; font-size: 0.76rem; }
.article-arrow {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: hsl(33 30% 94%);
  color: hsl(var(--foreground) / 0.75);
  transition: all 0.2s;
}
.article-card:hover .article-arrow {
  background: hsl(var(--gold) / 0.18);
  color: hsl(var(--foreground));
  transform: translateX(2px);
}

/* ===== Two-column: editor + pro block ===== */
.blog-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.editor-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.editor-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 1.1rem;
  padding: 1.1rem 0; border-bottom: 1px solid hsl(var(--border-soft));
  cursor: pointer; transition: opacity 0.2s;
}
.editor-item:hover { opacity: 0.85; }
.editor-item:last-child { border-bottom: none; }
.editor-thumb {
  width: 110px; height: 80px; border-radius: 0.55rem; overflow: hidden;
  background: hsl(var(--muted));
}
.editor-thumb img { width: 100%; height: 100%; object-fit: cover; }
.editor-body .cat-label { font-size: 0.66rem; padding-bottom: 0.15rem; }
.editor-body h4 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.05rem; line-height: 1.35; margin: 0.4rem 0 0.4rem;
  color: hsl(var(--foreground));
}
.editor-body .article-meta { font-size: 0.74rem; margin: 0; }

/* Pro panel */
.pro-panel {
  background: linear-gradient(155deg, hsl(153 22% 22%) 0%, hsl(153 18% 16%) 100%);
  color: hsl(var(--background));
  border-radius: 1rem; padding: 2.25rem 2rem;
  position: relative; overflow: hidden;
}
.pro-panel::after {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--gold) / 0.22), transparent 70%);
}
.pro-panel .eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: hsl(var(--gold)); font-weight: 600;
}
.pro-panel h3 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.55rem; line-height: 1.25; margin: 0.9rem 0 0.75rem;
}
.pro-panel p {
  color: hsl(var(--background) / 0.78); font-size: 0.92rem;
  line-height: 1.65; margin: 0 0 1.5rem;
}
.pro-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-direction: column; gap: 0.7rem; }
.pro-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.88rem; color: hsl(var(--background) / 0.9);
}
.pro-list li::before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%;
  background: hsl(var(--gold)); margin-top: 0.55rem;
}
.pro-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: hsl(var(--gold)); color: hsl(153 22% 18%);
  padding: 0.7rem 1.3rem; border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer; border: none;
  transition: transform 0.2s, background 0.2s;
  position: relative; z-index: 1;
}
.pro-cta:hover { background: hsl(46 70% 58%); transform: translateY(-1px); }

/* ===== Newsletter ===== */
.newsletter {
  margin: 5rem auto 0; max-width: 1180px; padding: 0 1.5rem;
}
.newsletter-inner {
  background: hsl(33 35% 94%);
  border: 1px solid hsl(var(--border-soft));
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem;
  align-items: center;
  position: relative; overflow: hidden;
}
.newsletter-inner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--divider-gold);
}
.newsletter h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.85rem; line-height: 1.2; letter-spacing: -0.015em; margin: 0.5rem 0 0.75rem;
}
.newsletter p {
  color: hsl(var(--foreground) / 0.7); font-size: 0.95rem; line-height: 1.65; margin: 0;
}
.newsletter .eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: hsl(var(--gold)); font-weight: 600;
}
.newsletter-form {
  display: flex; gap: 0.5rem; align-items: stretch;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 999px; padding: 0.4rem 0.4rem 0.4rem 1.15rem;
}
.newsletter-form:focus-within {
  border-color: hsl(var(--gold) / 0.6);
  box-shadow: 0 0 0 4px hsl(var(--gold) / 0.12);
}
.newsletter-form input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 0.95rem; padding: 0.65rem 0; min-width: 0;
  color: hsl(var(--foreground));
}
.newsletter-form button {
  border: none; cursor: pointer; font: inherit;
  background: hsl(var(--foreground)); color: hsl(var(--background));
  border-radius: 999px; padding: 0.65rem 1.4rem;
  font-size: 0.88rem; font-weight: 500;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: hsl(var(--foreground) / 0.85); }
.newsletter-note { margin-top: 0.65rem; font-size: 0.76rem; color: hsl(var(--foreground) / 0.5); }
.newsletter-status { margin-top: 0.5rem; font-size: 0.82rem; color: hsl(153 22% 28%); min-height: 1.2em; }

/* ===== Empty + loading states ===== */
.blog-empty {
  text-align: center; padding: 4rem 1.5rem; color: hsl(var(--foreground) / 0.6);
  background: hsl(33 30% 95%); border: 1px dashed hsl(var(--border)); border-radius: 1rem;
}
.blog-empty h3 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.35rem; margin: 0 0 0.5rem; color: hsl(var(--foreground));
}
.blog-empty p { margin: 0 0 1.25rem; }
.blog-empty button {
  background: hsl(var(--foreground)); color: hsl(var(--background));
  border: none; padding: 0.6rem 1.2rem; border-radius: 999px;
  font: inherit; font-size: 0.85rem; cursor: pointer;
}
.skeleton-card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border-soft));
  border-radius: 0.9rem; overflow: hidden;
}
.skeleton-img { aspect-ratio: 16/10; background: linear-gradient(90deg, hsl(33 25% 92%), hsl(33 25% 95%), hsl(33 25% 92%)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-body { padding: 1.35rem; }
.skeleton-line { height: 10px; border-radius: 4px; background: linear-gradient(90deg, hsl(33 25% 92%), hsl(33 25% 95%), hsl(33 25% 92%)); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin-bottom: 0.6rem; }
.skeleton-line.short { width: 40%; }
.skeleton-line.med { width: 75%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-media { min-height: 240px; aspect-ratio: 16/10; }
  .featured-body { padding: 1.75rem 1.5rem; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-split { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter-inner { grid-template-columns: 1fr; padding: 2.25rem 1.75rem; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .blog-hero { padding: 3rem 0 2.25rem; }
  .blog-wrap { padding-top: 2.25rem; }
  .blog-cat-inner { padding: 0.75rem 1rem; gap: 0.4rem; }
  .blog-chip { font-size: 0.8rem; padding: 0.45rem 0.85rem; }
  .article-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .blog-section-head { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .blog-section-head h2 { font-size: 1.4rem; }
  .editor-item { grid-template-columns: 88px 1fr; gap: 0.85rem; }
  .editor-thumb { width: 88px; height: 64px; }
  .newsletter { margin-top: 3.5rem; }
  .newsletter-form { flex-direction: column; border-radius: 1rem; padding: 0.5rem; }
  .newsletter-form input { padding: 0.75rem 0.85rem; }
  .newsletter-form button { border-radius: 0.75rem; padding: 0.8rem 1.2rem; }
  .blog-search { padding: 0.4rem 0.4rem 0.4rem 0.9rem; }
  .blog-search button { padding: 0.55rem 0.9rem; font-size: 0.82rem; }
  .pro-panel { padding: 1.75rem 1.5rem; }
}
