/* ============================================================
   STUDIENFLÜSTERER — Blog Styles
   ============================================================ */

/* ─── Blog Hero (overview page) ─────────────────────────────── */
.blog-hero {
  padding: 6rem 0 3rem;
  text-align: center;
}
.blog-hero .hero-h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeUp 0.55s both 0.1s;
}
.blog-hero .hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
  animation: fadeUp 0.55s both 0.2s;
}

/* ─── Blog Grid (overview page) ─────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(59, 130, 246, 0.4);
}

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}
.blog-card-reading::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-3);
  vertical-align: middle;
  margin-right: 0.5rem;
}

.blog-card-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.blog-card-body p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}

/* Empty state */
.blog-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-3);
}
.blog-empty i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-3);
}

/* ─── Article Page: Full-width Header ────────────────────────── */
.blog-header-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .blog-header-wrap { padding: 0 2rem; } }

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 2rem;
  margin-bottom: 2.5rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  animation: fadeUp 0.55s both 0.05s;
}
.blog-breadcrumb a {
  color: var(--text-3);
  transition: color var(--t) ease;
}
.blog-breadcrumb a:hover {
  color: var(--blue);
}
.blog-breadcrumb .bc-sep {
  font-size: 0.625rem;
  opacity: 0.5;
}
.blog-breadcrumb .bc-current {
  color: var(--text-2);
}

.blog-article-header {
  text-align: center;
  padding-bottom: 2.5rem;
  animation: fadeUp 0.55s both 0.1s;
}
.blog-article-header .sh-eyebrow {
  margin-bottom: 1.25rem;
}
.blog-article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.blog-article-header .blog-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* Author + date bar */
.blog-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-2);
}
.blog-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.blog-author-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-s);
}
.blog-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-3);
}

/* Divider between header and content */
.blog-header-divider {
  max-width: 780px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  animation: fadeUp 0.55s both 0.25s;
}
@media (min-width: 640px) { .blog-header-divider { padding: 0 2rem; } }
.blog-header-divider hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── Article Page: 2-Column Layout ──────────────────────────── */
.blog-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 640px) { .blog-layout { padding: 0 2rem; } }
@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 320px;
    gap: 3.5rem;
    padding: 0 2.5rem;
  }
}

/* Main column */
.blog-main {
  min-width: 0;
  max-width: 720px;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .blog-sidebar {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    align-self: start;
  }
  /* Hide scrollbar on sidebar */
  .blog-sidebar::-webkit-scrollbar { width: 0; }
  .blog-sidebar { scrollbar-width: none; }
}

/* Sidebar cards */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.sidebar-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-card-title i {
  font-size: 0.7rem;
}

/* Sidebar: Author mini card */
.sidebar-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.sidebar-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-s);
  flex-shrink: 0;
}
.sidebar-author-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.sidebar-author-title {
  font-size: 0.75rem;
  color: var(--text-3);
}
.sidebar-author-bio {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

/* Sidebar: Related posts */
.sidebar-post {
  display: block;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--t) ease;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { opacity: 0.8; }

.sidebar-post-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}
.sidebar-post-date {
  font-size: 0.6875rem;
  color: var(--text-3);
}

/* Sidebar: Social links */
.sidebar-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sidebar-soc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9rem;
  transition: color var(--t) ease, border-color var(--t) ease, background var(--t) ease;
}
.sidebar-soc:hover {
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.3);
  background: var(--blue-dim);
}

/* Sidebar: CTA mini */
.sidebar-cta-text {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

/* ─── Article Content (Prose) ───────────────────────────────── */
.blog-prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-2);
}

.blog-prose h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  margin: 3rem 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.blog-prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  line-height: 1.3;
}

.blog-prose p {
  margin-bottom: 1.5rem;
}

.blog-prose strong {
  color: var(--blue);
  font-weight: 600;
}

.blog-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t) ease;
}
.blog-prose a:hover {
  color: var(--blue-hover);
}

.blog-prose ul,
.blog-prose ol {
  margin: 1.25rem 0 1.5rem 1.25rem;
}
.blog-prose li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.blog-prose ul li::marker {
  color: var(--blue);
}
.blog-prose ol li::marker {
  color: var(--blue);
  font-weight: 600;
}

.blog-prose blockquote {
  border-left: 3px solid var(--blue);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  background: var(--blue-dim);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text);
}

/* Inline code */
.blog-prose code {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-xs);
  font-size: 0.9em;
}

/* Horizontal rule */
.blog-prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ─── Info Box ──────────────────────────────────────────────── */
.blog-info-box {
  background: var(--blue-dim);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}
.blog-info-box h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.blog-info-box h4 i {
  color: var(--blue);
}
.blog-info-box p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* ─── Cite Box ──────────────────────────────────────────────── */
.blog-cite-box {
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 3rem 0 0;
}
.blog-cite-box .sh-eyebrow {
  margin-bottom: 0.75rem;
}
.cite-apa {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-family: 'Georgia', 'Times New Roman', serif;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.cite-copy {
  font-size: 0.8125rem;
}
.cite-copied {
  color: var(--success) !important;
  border-color: var(--success) !important;
}

/* ─── Article Tags ──────────────────────────────────────────── */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0;
}
.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: var(--blue-dim);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

