/* ═══════════════════════════════════════════════════════════
   CHERRY BLOG — shared styles
   Inherits design tokens from /style.css
═══════════════════════════════════════════════════════════ */

/* ── BLOG INDEX (listing page) ───────────────────────────── */
.blog-hero {
  padding-top: clamp(120px, 18vw, 180px);
  padding-bottom: clamp(40px, 6vw, 80px);
  text-align: center;
  background: var(--bg-hero);
}

.blog-hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-block;
}

.blog-hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
}

.blog-hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.blog-hero-sub {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--muted);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.5;
  font-style: italic;
}

.blog-grid-section {
  padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px);
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(24px, 3vw, 36px);
  max-width: var(--max-w);
  margin-inline: auto;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-smooth),
              box-shadow 0.45s var(--ease-smooth);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-hero);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-card-meta-tag {
  color: var(--accent);
}

.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.3s var(--ease-smooth);
}

.blog-card:hover .blog-card-title {
  color: var(--accent);
}

.blog-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
}

.blog-card-cta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card-cta::after {
  content: '→';
  transition: transform 0.3s var(--ease-smooth);
}

.blog-card:hover .blog-card-cta::after {
  transform: translateX(4px);
}

/* ── BLOG POST (article page) ────────────────────────────── */
.post-header {
  padding-top: clamp(120px, 18vw, 180px);
  padding-bottom: clamp(30px, 5vw, 50px);
  background: var(--bg-hero);
  text-align: center;
}

.post-header-inner {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--ph);
}

.post-breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 20px;
}

.post-breadcrumb a {
  color: var(--muted);
  transition: color 0.3s var(--ease-smooth);
}

.post-breadcrumb a:hover {
  color: var(--accent);
}

.post-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.post-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.post-meta-sep::before {
  content: '·';
  margin-right: 4px;
}

.post-hero-image {
  max-width: var(--max-w);
  margin: clamp(20px, 3vw, 40px) auto clamp(40px, 5vw, 60px);
  padding-inline: var(--ph);
}

.post-hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-body {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--ph);
  padding-bottom: clamp(60px, 8vw, 100px);
  font-family: 'Inter', sans-serif;
  font-size: clamp(17px, 1.4vw, 18.5px);
  line-height: 1.78;
  color: var(--text);
}

.post-body > p,
.post-body > ul,
.post-body > ol,
.post-body > blockquote,
.post-body > .post-callout,
.post-body > .post-table,
.post-body > .post-cta-box {
  margin-bottom: 1.4em;
}

.post-body > p:first-child {
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  margin-bottom: 2em;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 2.2em;
  margin-bottom: 0.7em;
}

.post-body h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.3;
  color: var(--text);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.post-body strong {
  font-weight: 700;
  color: var(--text);
}

.post-body em {
  font-style: italic;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease-smooth);
}

.post-body a:hover {
  color: var(--accent-light);
}

.post-body ul,
.post-body ol {
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 0.6em;
}

.post-body li::marker {
  color: var(--accent);
}

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 22px;
  margin-block: 1.6em;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.45;
  color: var(--text);
}

.post-body img,
.post-body figure {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-block: 2em;
}

.post-callout {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  padding: 22px 26px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.97em;
  color: var(--text);
}

.post-callout strong {
  color: var(--accent);
}

.post-table {
  overflow-x: auto;
  margin-block: 2em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.post-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.post-table th,
.post-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.post-table th {
  background: var(--surface-warm);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 13px;
  color: var(--text);
}

.post-table tr:last-child td {
  border-bottom: none;
}

.post-table tr td:first-child {
  font-weight: 600;
  color: var(--text);
}

.post-cta-box {
  background: var(--bg-hero);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  margin-block: 2.5em;
  border: 1px solid var(--border);
}

.post-cta-box-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.post-cta-box-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.post-cta-box .btn {
  margin-top: 4px;
}

/* Override .post-body a color so CTA buttons stay readable */
.post-body .post-cta-box a.btn-primary {
  color: #fff;
  text-decoration: none;
}

.post-body .post-cta-box a.btn-outline {
  color: var(--text);
  text-decoration: none;
}

.post-tldr {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 2.5em;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.post-tldr-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.post-tldr p:last-child {
  margin-bottom: 0;
}

.post-faq {
  border-top: 1px solid var(--border);
  margin-top: 3em;
  padding-top: 2.5em;
}

.post-faq h2 {
  margin-top: 0 !important;
}

.post-faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 18px;
}

.post-faq-q {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text);
  margin-bottom: 10px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.post-faq-q::-webkit-details-marker {
  display: none;
}

.post-faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.3s var(--ease-smooth);
}

.post-faq-item[open] .post-faq-q::after {
  transform: rotate(45deg);
}

.post-faq-a {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-top: 6px;
}

.post-related {
  background: var(--bg-hero);
  padding: clamp(60px, 8vw, 100px) var(--ph);
  border-top: 1px solid var(--border);
}

.post-related-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.post-related-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  text-align: center;
  margin-bottom: clamp(30px, 4vw, 50px);
  color: var(--text);
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--border);
}

.post-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.post-author-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.post-author-role {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .post-body { font-size: 17px; line-height: 1.7; }
  .post-body > p:first-child { font-size: 18px; }
}

/* ── GRADIENT CARD VISUALS (replaces portrait photos) ──────── */
.blog-card-visual {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.blog-card-visual--1 { background: linear-gradient(140deg, #c4526a 0%, #e8879d 100%); }
.blog-card-visual--2 { background: linear-gradient(140deg, #8b2252 0%, #c4526a 55%, #f0a0b4 100%); }
.blog-card-visual--3 { background: linear-gradient(140deg, #6d28d9 0%, #c4526a 100%); }

.blog-card-visual-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
  transition: transform 0.7s var(--ease-smooth);
}

.blog-card:hover .blog-card-visual-icon {
  transform: scale(1.1) rotate(3deg);
}

.blog-card-visual-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ── GRADIENT POST HERO VISUALS ─────────────────────────────── */
.post-hero-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px;
}

.post-hero-visual--1 { background: linear-gradient(140deg, #c4526a 0%, #e8879d 100%); }
.post-hero-visual--2 { background: linear-gradient(140deg, #8b2252 0%, #c4526a 55%, #f0a0b4 100%); }
.post-hero-visual--3 { background: linear-gradient(140deg, #6d28d9 0%, #c4526a 100%); }

.post-hero-visual-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}

.post-hero-visual-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

@media (max-width: 540px) {
  .post-hero-visual { flex-direction: column; gap: 16px; padding: 24px; }
  .post-hero-visual-icon { width: 56px; height: 56px; }
}
