/**
 * Webrazzi-inspired blog home + article
 * Light gray canvas, yellow CTAs, clean lists
 */

:root {
  --wz-bg: #f3f4f6;
  --wz-white: #ffffff;
  --wz-ink: #111827;
  --wz-muted: #6b7280;
  --wz-line: #e5e7eb;
  --wz-yellow: #f5c518;
  --wz-yellow-hover: #e0b000;
  --wz-blue: #2563eb;
  --wz-dark: #0f1115;
  --wz-radius: 12px;
  --wz-max: 1120px;
}

.wz-home,
.wz-article {
  background: var(--wz-bg);
  padding: 0 0 0;
  min-height: 50vh;
}

.ens-main--blog-home {
  padding: 0;
  background: var(--wz-bg);
}

/* Containers reuse ens-container; tighten max */
.wz-home .ens-container,
.wz-article .ens-container {
  max-width: var(--wz-max);
}

/* Top bar */
.wz-topbar {
  background: #fff;
  border-bottom: 1px solid var(--wz-line);
  font-size: 12px;
  color: var(--wz-muted);
}

.wz-topbar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.wz-topbar__tag {
  font-weight: 700;
  color: var(--wz-ink);
}

.wz-topbar__sep {
  opacity: 0.4;
}

/* Topic chips under header */
.wz-nav-topics {
  background: #fff;
  border-bottom: 1px solid var(--wz-line);
  position: sticky;
  top: var(--ens-header, 72px);
  z-index: 50;
}

.wz-nav-topics__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}

.wz-nav-topics__row a {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}

.wz-nav-topics__row a:hover {
  background: #f3f4f6;
  color: var(--wz-ink);
}

/* Section heads */
.wz-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--wz-ink);
}

.wz-section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wz-ink);
}

.wz-section-head--sm {
  border-bottom-width: 1px;
  border-color: var(--wz-line);
}

.wz-section-head--sm h2 {
  font-size: 15px;
}

.wz-section-head--light {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.wz-section-head--light h2 {
  color: #fff;
}

/* Kicker */
.wz-kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wz-blue);
  text-decoration: none;
}

.wz-kicker:hover {
  text-decoration: underline;
}

.wz-kicker--on-dark {
  color: #93c5fd;
}

/* Meta */
.wz-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--wz-muted);
}

.wz-meta--light {
  color: rgba(255, 255, 255, 0.55);
}

.wz-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d1d5db;
}

/* Featured block */
.wz-featured-block {
  padding: 28px 20px 8px;
}

.wz-featured-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 960px) {
  .wz-featured-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
    align-items: stretch;
  }
}

.wz-featured-main {
  background: var(--wz-white);
  border-radius: var(--wz-radius);
  overflow: hidden;
  border: 1px solid var(--wz-line);
  display: flex;
  flex-direction: column;
}

.wz-featured-main__img {
  display: block;
  aspect-ratio: 16 / 10;
  background: #e5e7eb;
  overflow: hidden;
}

.wz-featured-main__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wz-featured-main__body {
  padding: 16px 18px 18px;
}

.wz-featured-main__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.wz-featured-main__title a {
  color: var(--wz-ink);
  text-decoration: none;
}

.wz-featured-main__title a:hover {
  color: var(--wz-blue);
}

.wz-featured-main__excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--wz-muted);
}

.wz-featured-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wz-feat-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  background: var(--wz-white);
  border: 1px solid var(--wz-line);
  border-radius: var(--wz-radius);
  overflow: hidden;
  min-height: 88px;
}

.wz-feat-card__img {
  display: block;
  background: #e5e7eb;
  min-height: 88px;
}

.wz-feat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wz-feat-card__body {
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wz-feat-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.wz-feat-card__title a {
  color: var(--wz-ink);
  text-decoration: none;
}

.wz-feat-card__title a:hover {
  color: var(--wz-blue);
}

/* Main 2-col */
.wz-main-layout {
  display: grid;
  gap: 28px;
  padding: 28px 20px 40px;
}

@media (min-width: 960px) {
  .wz-main-layout {
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
  }
}

/* List items — Son eklenenler */
.wz-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--wz-white);
  border: 1px solid var(--wz-line);
  border-radius: var(--wz-radius);
  overflow: hidden;
}

.wz-list-item {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  padding: 16px 16px;
  border-bottom: 1px solid var(--wz-line);
  margin: 0;
}

.wz-list-item:last-child {
  border-bottom: none;
}

@media (min-width: 640px) {
  .wz-list-item {
    grid-template-columns: 1fr 160px;
    padding: 18px 20px;
  }
}

.wz-list-item__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.wz-list-item__title a {
  color: var(--wz-ink);
  text-decoration: none;
}

.wz-list-item__title a:hover {
  color: var(--wz-blue);
}

.wz-list-item__excerpt {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--wz-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wz-list-item__thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
  aspect-ratio: 4 / 3;
  align-self: start;
}

.wz-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sidebar boxes */
.wz-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wz-box {
  background: var(--wz-white);
  border: 1px solid var(--wz-line);
  border-radius: var(--wz-radius);
  padding: 16px;
}

.wz-box--newsletter {
  background: #fafafa;
}

.wz-box__brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--wz-ink);
}

.wz-box__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--wz-ink);
}

.wz-box__text {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--wz-muted);
  line-height: 1.4;
}

.wz-newsletter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wz-newsletter input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.wz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.wz-btn--yellow {
  background: var(--wz-yellow);
  color: #111;
}

.wz-btn--yellow:hover {
  background: var(--wz-yellow-hover);
  color: #111;
}

.wz-popular {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pop;
}

.wz-popular li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--wz-line);
  align-items: start;
}

.wz-popular li:last-child {
  border-bottom: none;
}

.wz-popular__n {
  font-size: 18px;
  font-weight: 800;
  color: #d1d5db;
  line-height: 1.2;
}

.wz-popular a {
  font-size: 14px;
  font-weight: 600;
  color: var(--wz-ink);
  text-decoration: none;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.wz-popular a:hover {
  color: var(--wz-blue);
}

/* Dark related strip */
.wz-dark-block,
.wz-related {
  background: var(--wz-dark);
  padding: 36px 0 40px;
  margin-top: 8px;
}

.wz-dark-grid,
.wz-related__grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .wz-dark-grid,
  .wz-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wz-dark-card,
.wz-related__card {
  background: transparent;
}

.wz-dark-card__img,
.wz-related__img {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1f2937;
  margin-bottom: 10px;
}

.wz-dark-card__img img,
.wz-related__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wz-dark-card h3,
.wz-related__card h3 {
  margin: 6px 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.wz-dark-card h3 a,
.wz-related__card h3 a {
  color: #fff;
  text-decoration: none;
}

.wz-dark-card h3 a:hover,
.wz-related__card h3 a:hover {
  color: #93c5fd;
}

.wz-related__title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.wz-ph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.wz-ph--sm {
  min-height: 80px;
}

.wz-empty {
  padding: 40px 0;
  color: var(--wz-muted);
}

/* ========== ARTICLE ========== */
.wz-article {
  padding-bottom: 0;
}

.wz-article__header {
  padding: 32px 20px 20px;
  max-width: 720px;
  margin: 0 auto;
}

.wz-article__title {
  margin: 8px 0 12px;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--wz-ink);
}

.wz-article__lead {
  margin: 0 0 18px;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--wz-muted);
}

.wz-article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wz-article__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wz-article__author img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.wz-article__author strong {
  display: block;
  font-size: 14px;
  color: var(--wz-ink);
}

.wz-article__author span {
  font-size: 12px;
  color: var(--wz-muted);
}

.wz-article__actions {
  display: flex;
  gap: 6px;
}

.wz-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--wz-line);
  background: #fff;
  color: var(--wz-ink);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.wz-icon-btn:hover {
  background: #f9fafb;
}

.wz-article__hero {
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 0 20px;
}

.wz-article__hero img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.wz-article__layout {
  display: grid;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

@media (min-width: 900px) {
  .wz-article__layout {
    grid-template-columns: 48px 1fr;
    gap: 28px;
  }
}

.wz-article__share {
  display: none;
}

@media (min-width: 900px) {
  .wz-article__share {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 100px;
    align-self: start;
  }

  .wz-article__share a,
  .wz-article__share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--wz-line);
    background: #fff;
    color: var(--wz-ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
  }
}

.wz-prose {
  font-size: 17px;
  line-height: 1.75;
  color: #1f2937;
}

.wz-prose > *:first-child {
  margin-top: 0;
}

.wz-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wz-ink);
}

.wz-prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.wz-prose a {
  color: var(--wz-blue);
}

.wz-prose p {
  margin: 0 0 1.15em;
}

.wz-prose ul,
.wz-prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.25em;
}

.wz-prose img,
.wz-prose .ens-lseo-figure {
  border-radius: 10px;
  margin: 1.5rem 0;
}

.wz-prose .ens-lseo-figure {
  border: 1px solid var(--wz-line);
  overflow: hidden;
}

.wz-prose .ens-lseo-internal-links {
  margin: 2rem 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--wz-line);
  background: none;
}

.wz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.wz-tags a {
  display: inline-flex;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  border: 1px solid var(--wz-line);
  border-radius: 999px;
  text-decoration: none;
}

.wz-tags a:hover {
  border-color: #9ca3af;
}

.wz-article__nl {
  margin-top: 8px;
}

/* Hide old single chrome when wz-article used */
.wz-article .ens-sidebar,
.wz-article .ens-toc-widget {
  display: none;
}
