/* Blog-specific styles — base styles loaded from datalabhell.ac.at/style.css */

/* ── HEADER ──────────────────────────────── */
/* Blog has no transparent-hero phase — header is always dark */
header {
  background: var(--dark);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-blog {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  line-height: 1;
  padding-right: 1.25rem;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: color 0.15s;
}

.nav-blog:hover {
  color: var(--white);
}

.nav-blog[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}


/* ── PAGE HERO (blog override) ───────────── */
.page-hero {
  padding: 8rem 0 4rem;
}

/* ── TAG FILTER ──────────────────────────── */
.tag-filter {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--white);
  border-bottom: 2px solid var(--light-gray);
  margin-bottom: 0;
}

.tag-filter::-webkit-scrollbar {
  display: none;
}

.tag-filter-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--mid-gray);
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.tag-filter-btn:hover {
  color: var(--dark);
}

.tag-filter-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tag-filter-count {
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.55;
  font-size: 0.9em;
}

/* ── POST LIST ───────────────────────────── */
.post-list-section {
  padding: 2rem 0 6rem;
}

.post-grid-wrap {
  margin-top: 1.5rem;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--light-gray);
  margin-top: 0;
}

.post-card {
  background: var(--white);
  padding: 0;
  text-decoration: none;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.post-card:hover {
  background: var(--off-white);
  border-left-color: var(--accent);
}

.post-card-body {
  flex: 1;
  padding: 2rem 2.5rem;
}


.post-card-image {
  display: block;
  width: 280px;
  height: 100%;
  min-height: 180px;
  flex-shrink: 0;
  align-self: stretch;
  object-fit: cover;
}

.post-card-image--brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border-left: 2px solid var(--light-gray);
  padding: 2rem 1.5rem;
  object-fit: initial;
}

.post-card-image--brand img {
  width: 80%;
  height: auto;
  opacity: 0.75;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(45, 111, 245, 0.08);
  padding: 0.25em 0.6em;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.post-tag:hover {
  background: rgba(45, 111, 245, 0.16);
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.post-date--card {
  display: block;
  margin-bottom: 1rem;
}

.post-date,
.post-author {
  font-size: 0.8rem;
  color: var(--mid-gray);
}

.post-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.post-card p {
  font-size: 0.9rem;
  color: var(--mid-gray);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}


/* ── POST HERO ───────────────────────────── */
.post-hero {
  background: var(--dark);
  color: var(--white);
  padding: 8rem 0 4rem;
}

.post-hero-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.post-hero-tags .post-tag {
  background: none;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--accent);
  cursor: default;
}

.post-hero-tags .post-tag:hover {
  background: none;
}

.post-hero-tags .post-tag + .post-tag::before {
  content: '·';
  margin-right: 0.5rem;
  color: rgba(255,255,255,0.3);
}

.post-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 780px;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.post-hero-meta .post-date,
.post-hero-meta .post-author {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ── ARTICLE ─────────────────────────────── */
.article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s;
}

.article-back:hover {
  color: var(--dark);
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.article-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin: 1.75rem 0 0.5rem;
}

.article-content p {
  font-size: 0.975rem;
  line-height: 1.85;
  color: var(--mid-gray);
  margin-bottom: 1.25rem;
}

.article-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 111, 245, 0.3);
  transition: border-color 0.15s;
}

.article-content a:hover {
  border-color: var(--accent);
}

.article-content ul,
.article-content ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

.article-content li {
  font-size: 0.975rem;
  line-height: 1.85;
  color: var(--mid-gray);
  margin-bottom: 0.3rem;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--mid-gray);
}

.article-content code {
  background: var(--off-white);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.875em;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

.article-content pre {
  background: var(--dark);
  color: var(--off-white);
  padding: 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.75rem 0;
}

.article-content pre code {
  background: none;
  padding: 0;
  font-size: 0.88rem;
  color: inherit;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--light-gray);
  margin: 2.5rem 0;
}

.post-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.post-subtitle-row p {
  margin: 0;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 1.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.pdf-link:hover {
  background: var(--off-white);
  border-color: var(--accent);
}

.pdf-link svg {
  width: 1.75rem;
  height: 2rem;
  flex-shrink: 0;
}


/* ── COOKIE BANNER ───────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--dark);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#cookie-banner.cc-hidden {
  transform: translateY(100%);
  opacity: 0;
}

.cc-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cc-text {
  flex: 1;
  min-width: 260px;
}

.cc-text strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.cc-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.cc-text a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}

.cc-actions {
  flex-shrink: 0;
}

#cc-accept {
  background: var(--white);
  color: var(--dark);
  border: none;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
  transition: background 0.15s;
}

#cc-accept:hover {
  background: var(--off-white);
}

.nav-blog-mobile {
  display: none;
}

/* ── POST FIGURES ────────────────────────── */
[data-post] figure {
  margin: 2rem 0;
}

[data-post] figure img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

[data-post] figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 700px) {
  .nav-blog {
    display: none;
  }

  .nav-blog-mobile {
    display: block;
  }

  .post-card {
    flex-direction: column-reverse;
  }

  .post-card-image,
  .post-card-image--brand {
    width: 100%;
    height: 220px;
  }

  .article-wrap {
    padding: 1.5rem 1.5rem 4rem;
  }
}
