/* Modern blog styles (post pages + listings) for lookeen.com / lookeen.de */

.blog-post-main,
.blog-listing-main {
  background: #0d1624;
  color: #e9eef6;
  font-family: Outfit, sans-serif;
}

/* ---------- shared chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(1, 121, 255, 0.12);
  color: #4da3ff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid rgba(1, 121, 255, 0.25);
  transition: background 0.15s ease, color 0.15s ease;
}

.chip:hover {
  background: rgba(1, 121, 255, 0.24);
  color: #8fc4ff;
}

/* ---------- post page ---------- */
.blog-post-main {
  padding: 44px 24px 96px;
}

.blog-post {
  max-width: 1120px;
  margin: 0 auto;
}

.post-article {
  max-width: 780px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 36px;
}

.post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.post-article .post-title {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f5f8fc;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #aab0be;
}

.post-meta .post-author {
  color: #e9eef6;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.post-meta .post-author:hover {
  color: #4da3ff;
}

.meta-dot {
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- post body typography ---------- */
.post-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #c7d2e0;
  overflow-wrap: break-word;
}

.post-body > * + * {
  margin-top: 1.4em;
}

.post-body p {
  margin: 0;
}

.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  color: #f5f8fc;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: 2.2em;
  margin-bottom: 0;
}

.post-body h2 {
  font-size: 1.6rem;
  padding-top: 0.4em;
}

.post-body h3 {
  font-size: 1.3rem;
}

.post-body h4,
.post-body h5,
.post-body h6 {
  font-size: 1.1rem;
}

.post-body a {
  color: #4da3ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 163, 255, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.post-body a:hover {
  color: #8fc4ff;
  border-bottom-color: #8fc4ff;
}

.post-body strong {
  color: #e9eef6;
  font-weight: 700;
}

.post-body ul,
.post-body ol {
  margin: 0;
  padding-left: 1.5em;
}

.post-body li {
  margin-top: 0.5em;
}

.post-body li::marker {
  color: #4da3ff;
}

.post-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-body figure.post-figure {
  margin: 0;
}

.post-body figure.post-figure img {
  margin: 0;
}

.post-body figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #aab0be;
  text-align: center;
}

.post-body blockquote {
  margin: 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid #0179ff;
  color: #aab0be;
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #1b2b44;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 2px 7px;
  color: #e9eef6;
}

.post-body pre {
  margin: 0;
  background: #0a1220;
  border: 1px solid #283c5b;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2.5em auto;
  width: 100%;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.post-body th,
.post-body td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.post-body th {
  background: #1b2b44;
  color: #f5f8fc;
  font-weight: 600;
  white-space: nowrap;
}

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

.post-body sup {
  font-size: 0.75em;
}

/* ---------- tags footer ---------- */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-tags-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #aab0be;
  margin-right: 4px;
}

/* ---------- related posts ---------- */
.post-related {
  max-width: 1120px;
  margin: 72px auto 0;
}

.post-related .related-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f5f8fc;
  margin: 0 0 24px;
}

.related-grid,
.post-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- post cards (related + listings) ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: #1b2b44;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 121, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.post-card-img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #283c5b;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-img img {
  transform: scale(1.04);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #aab0be;
}

.post-card-cat {
  color: #aab0be;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.post-card-meta time::before {
  content: "·";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.3);
}

.post-card-title {
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.35;
  color: #f5f8fc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #aab0be;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}

/* ---------- listing pages ---------- */
.blog-listing-main {
  padding: 44px 24px 96px;
}

.blog-listing {
  max-width: 1200px;
  margin: 0 auto;
}

.listing-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.listing-header .listing-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f8fc;
}

.listing-header .listing-subtitle {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #aab0be;
}

/* ---------- pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 56px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c7d2e0;
  background: #1b2b44;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pagination a:hover {
  border-color: rgba(1, 121, 255, 0.5);
  color: #f5f8fc;
}

.pagination .current {
  background: #0179ff;
  border-color: #0179ff;
  color: #fff;
}

.pagination .gap {
  background: none;
  border: none;
  min-width: 24px;
  color: #aab0be;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .related-grid,
  .post-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-post-main,
  .blog-listing-main {
    padding: 28px 16px 64px;
  }

  .related-grid,
  .post-card-grid {
    grid-template-columns: 1fr;
  }

  .post-header {
    margin-bottom: 28px;
  }

  .post-body h2 {
    font-size: 1.4rem;
  }
}
