/* VoiceNote blog — shared styles.
   Tailwind handles layout; this file adds brand pieces, article typography and states. */

:root {
  --brand: #4f8af7;
  --brand-strong: #3b6ef5;
  --purple: #8b5cf6;
  --ink: #111827;
  --muted: #6b7280;
  --line: #eef1f6;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

.gradient-text {
  background: linear-gradient(135deg, #4f8af7 0%, #8b5cf6 40%, #f09e34 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-gradient { background: linear-gradient(135deg, #4f8af7, #8b5cf6); }
.btn-gradient { background: linear-gradient(135deg, #4f8af7, #8b5cf6); }
.btn-gradient:hover { background: linear-gradient(135deg, #3b6ef5, #7c3aed); }

.blog-nav { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.blog-nav.is-scrolled { box-shadow: 0 10px 30px -18px rgba(17, 24, 39, 0.28); }

.blog-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #fef7ed 32%, #fdf2f8 58%, #f0fdf4 80%, #eff6ff 100%);
  background-size: 320% 320%;
  animation: blogShift 20s ease infinite;
}
@keyframes blogShift {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Language menu */
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px -20px rgba(17, 24, 39, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
  white-space: nowrap;
}
.lang-menu a:hover { background: #f6f8fc; color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--brand-strong); font-weight: 600; }

/* Topic chips on the index */
.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid #e6eefb;
  background: #fff;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #43526b;
}
.topic-chip .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand); }
.topic-chip:nth-child(2) .dot { background: var(--purple); }
.topic-chip:nth-child(3) .dot { background: #f09e34; }
.topic-chip:nth-child(4) .dot { background: #10b981; }

/* Post grid + cards */
.post-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: #dbe7fb;
  box-shadow: 0 24px 50px -32px rgba(37, 99, 235, 0.45);
}
.post-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}
.post-cover--1 { background: linear-gradient(135deg, #60a5fa, #8b5cf6); }
.post-cover--2 { background: linear-gradient(135deg, #f0a35e, #ec4899); }
.post-cover--3 { background: linear-gradient(135deg, #34d399, #0ea5e9); }
.post-cover--4 { background: linear-gradient(135deg, #6366f1, #0ea5e9); }
.post-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.post-topic {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.post-title { margin-top: 8px; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.post-excerpt { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.post-meta { margin-top: auto; padding-top: 18px; font-size: 12px; color: #9ca3af; }

/* Empty state */
.empty-state {
  position: relative;
  overflow: hidden;
  border: 1px dashed #cddffb;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fbff 0%, #fdf9ff 55%, #fffaf2 100%);
  padding: 56px 28px;
  text-align: center;
}
.empty-state::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
}
.empty-state::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -120px;
  bottom: -160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(79, 138, 247, 0.14), transparent 70%);
}
.empty-state > * { position: relative; z-index: 1; }
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4f8af7, #8b5cf6);
  color: #fff;
  box-shadow: 0 16px 32px -18px rgba(79, 138, 247, 0.9);
}

/* Article page */
.article-header { padding-top: 136px; }
.article-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 600;
}
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: #9ca3af; }
.article-meta a { color: inherit; text-decoration: none; }
.article-meta a:hover { color: var(--brand-strong); }

.prose-article { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.78; color: #374151; }
.prose-article > *:first-child { margin-top: 0; }
.prose-article p { margin: 0 0 1.35em; }
.prose-article h2 {
  margin: 2.6rem 0 0.9rem;
  font-size: 1.55rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.prose-article h3 { margin: 2rem 0 0.7rem; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.prose-article ul, .prose-article ol { margin: 0 0 1.4em; padding-left: 1.35em; }
.prose-article ul { list-style: disc; }
.prose-article ol { list-style: decimal; }
.prose-article li { margin: 0.45em 0; padding-left: 0.2em; }
.prose-article li::marker { color: var(--brand); }
.prose-article a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.prose-article strong { color: #1f2937; font-weight: 650; }
.prose-article blockquote {
  margin: 1.8rem 0;
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  border-radius: 0 14px 14px 0;
  background: #f7faff;
  color: #43526b;
  font-size: 16px;
}
.prose-article blockquote p:last-child { margin-bottom: 0; }
.prose-article code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f5fb;
  color: #334155;
  font-size: 0.9em;
}
.prose-article pre {
  margin: 1.6rem 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.65;
}
.prose-article pre code { background: none; color: inherit; padding: 0; }
.prose-article img { width: 100%; height: auto; margin: 1.8rem 0; border-radius: 16px; }
.article-figure { margin: 2.2rem 0; }
.prose-article .article-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f6f7fb;
  box-shadow: 0 24px 50px -34px rgba(17, 24, 39, 0.4);
}
.article-figure--phone { max-width: 310px; margin-left: auto; margin-right: auto; }
.prose-article .article-figure--phone img { border-radius: 28px; }
.article-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #8b95a7;
  text-align: center;
}
.prose-article hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
.prose-article .lead { font-size: 19px; line-height: 1.7; color: #4b5563; }

/* Key takeaways — the short answer AI engines and skimmers lift first */
.takeaways {
  margin: 0 0 2.4rem;
  padding: 22px 24px;
  border: 1px solid #dbe7fb;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
}
.prose-article .takeaways-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.takeaways ul { margin: 0; padding: 0; list-style: none; }
.takeaways li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #374151;
}
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--purple));
}

/* Reusable spoken-email article components */
.script-box {
  margin: 1.8rem 0;
  padding: 20px 22px;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  background: #f7faff;
}
.prose-article .script-box p { margin: 0; }
.script-label {
  margin-bottom: 8px !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.example {
  margin: 2rem 0 2.5rem;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfcff;
}
.prose-article .example-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b95a7;
}
.prose-article .example-label svg { width: 13px; height: 13px; }
.prose-article .example .spoken {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid #f0b45c;
  border-radius: 0 12px 12px 0;
  background: #fffbeb;
  color: #4b5563;
  font-size: 15px;
}
.prose-article .example .spoken p { margin: 0; }
.email-card {
  padding: 18px 20px;
  border: 1px solid #e5eaf3;
  border-radius: 14px;
  background: #fff;
  color: #374151;
  font-size: 15px;
  line-height: 1.65;
}
.email-card p { margin: 0 0 0.85em; }
.email-card p:last-child { margin-bottom: 0; }
.email-subject {
  margin-bottom: 14px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef1f6;
  font-weight: 650;
  color: var(--ink);
}
.email-subject span { color: #9ca3af; font-weight: 500; }
.example-note {
  margin: 14px 0 0 !important;
  font-size: 13px;
  color: #8b95a7;
}

/* Author card — a real, identifiable byline */
.author-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin: 2.6rem 0 0;
  padding: 20px 22px;
  border: 1px solid #e6eefb;
  border-radius: 18px;
  background: #fbfcff;
}
.author-avatar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.prose-article .author-card p { margin: 0; }
.prose-article .author-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.prose-article .author-role { margin-top: 1px; font-size: 12.5px; color: #8b95a7; }
.prose-article .author-bio { margin-top: 9px; font-size: 14px; line-height: 1.6; color: #4b5563; }
.prose-article .author-link {
  display: inline-block;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-strong);
  text-decoration: none;
}
.prose-article .author-link:hover { text-decoration: underline; }

/* Meeting-minutes card — the output shape, not a transcript */
.minutes-card {
  margin: 0 0 1.8rem;
  padding: 22px 24px 20px;
  border: 1px solid #e6eefb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.prose-article .minutes-title { margin: 0; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.prose-article .minutes-meta { margin: 3px 0 0; font-size: 12.5px; color: #8b95a7; }
.prose-article .minutes-label {
  margin: 18px 0 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.prose-article .minutes-card ul { margin: 0; padding: 0; list-style: none; }
.prose-article .minutes-card li {
  position: relative;
  margin: 0 0 7px;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #374151;
}
.prose-article .minutes-card li:last-child { margin-bottom: 0; }
.prose-article .minutes-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #c7d6f5;
}
.prose-article .minutes-card li.is-action::before {
  background: linear-gradient(135deg, var(--brand), var(--purple));
}
.minutes-owner { font-weight: 700; color: var(--ink); }
/* Higher specificity than `.prose-article .minutes-card li`, which sets the colour. */
.prose-article .minutes-card li .minutes-due { color: var(--muted); white-space: nowrap; }

.article-cta {
  margin: 3rem 0 0;
  padding: 26px;
  border: 1px solid #e6eefb;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7faff, #fbf8ff);
  text-align: center;
}
/* Prose link styles are more specific than Tailwind's text-white; restore the button. */
.prose-article .article-cta a {
  color: #fff;
  text-decoration: none;
}
.prose-article .article-cta a:hover { color: #fff; }

@media (max-width: 640px) {
  .article-header { padding-top: 120px; }
  .prose-article { font-size: 16px; }
  .prose-article h2 { font-size: 1.35rem; }
  .empty-state { padding: 40px 20px; }
}
