/* ═══════════════════════════════════════════════════════════
   Encare Blog — ec-blog.css
   home.php / archive.php / single.php şablonlarının stilleri
═══════════════════════════════════════════════════════════ */

/* ─── PAYLAŞIMLI ─────────────────────────────────────────── */
.ec-container {
  width: 100%;
  /* Site genelindeki bölümlerle aynı kap (1440px + aynı yan boşluk) */
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

/* ─── BLOG LİSTELEME — HERO ──────────────────────────────── */
.ec-blog-index {
  background: var(--ecw-ink-1);
  min-height: 60vh;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ecw-paper);
}

.ec-blog-index__hero {
  background: var(--ecw-ink-0);
  border-bottom: 3px solid var(--ecw-red);
  padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px);
}

.ec-blog-index__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ecw-red);
  margin: 0 0 16px;
}

.ec-blog-index__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--ecw-red);
  flex-shrink: 0;
}

.ec-blog-index__title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ecw-paper);
}

.ec-blog-index__desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ecw-mute);
  margin: 0;
  max-width: 560px;
}

/* ─── POST GRID ───────────────────────────────────────────── */
.ec-blog-index__body {
  padding-block: 64px;
}

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

@media (max-width: 900px) {
  .ec-post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .ec-post-grid { grid-template-columns: 1fr; }
}

/* ─── POST KARTI ──────────────────────────────────────────── */
.ec-post-card {
  background: var(--ecw-ink-2);
  border: 1px solid var(--ecw-steel);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

.ec-post-card:hover {
  border-color: var(--ecw-red);
  transform: translateY(-4px);
}

.ec-post-card__thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.ec-post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ec-post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ec-post-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--ecw-red);
  color: #fff;
  padding: 3px 8px;
  border-radius: 2px;
}

.ec-post-card__date {
  font-size: 12px;
  color: var(--ecw-mute);
}

.ec-post-card__title {
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
}

.ec-post-card__title a {
  color: var(--ecw-paper);
  text-decoration: none;
  transition: color .2s;
}

.ec-post-card__title a:hover {
  color: var(--ecw-red);
}

.ec-post-card__excerpt {
  font-size: 14px;
  color: var(--ecw-mute);
  line-height: 1.65;
  margin: 0 0 20px;
  flex: 1;
}

.ec-post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ecw-red);
  text-decoration: none;
  margin-top: auto;
  transition: gap .2s;
}

.ec-post-card__more:hover {
  gap: 10px;
}

/* ─── PAGİNATİON ──────────────────────────────────────────── */
.ec-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.ec-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 12px;
  border: 1px solid var(--ecw-steel);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ecw-paper);
  text-decoration: none;
  background: var(--ecw-ink-2);
  transition: border-color .2s, background .2s, color .2s;
}

.ec-pagination .page-numbers:hover,
.ec-pagination .page-numbers.current {
  background: var(--ecw-red);
  border-color: var(--ecw-red);
  color: #fff;
}

.ec-pagination .page-numbers.dots {
  border: none;
  background: none;
  color: var(--ecw-mute);
}

/* ─── SINGLE POST ─────────────────────────────────────────── */
.ec-single {
  background: var(--ecw-ink-1);
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ecw-paper);
}

.ec-single__hero {
  background: var(--ecw-ink-0);
  border-bottom: 3px solid var(--ecw-red);
  padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 60px);
}

/* Breadcrumb */
.ec-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ecw-mute);
  margin-bottom: 20px;
}

.ec-breadcrumb a {
  color: var(--ecw-mute);
  text-decoration: none;
  transition: color .2s;
}

.ec-breadcrumb a:hover {
  color: var(--ecw-red);
}

.ec-breadcrumb__sep {
  color: var(--ecw-steel-2);
}

.ec-breadcrumb__current {
  color: var(--ecw-paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Post başlık */
.ec-single__title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--ecw-paper);
}

.ec-single__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ec-single__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--ecw-red);
  color: #fff;
  padding: 4px 10px;
  border-radius: 2px;
  text-decoration: none;
}

.ec-single__date,
.ec-single__read-time {
  font-size: 13px;
  color: var(--ecw-mute);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Kapak görseli */
.ec-single__cover {
  max-width: 900px;
  margin-inline: auto;
  margin-top: -1px;
  aspect-ratio: 16/7;
  overflow: hidden;
}

.ec-single__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* İçerik + Sidebar layout */
.ec-single__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-block: 56px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

@media (max-width: 900px) {
  .ec-single__layout {
    grid-template-columns: 1fr;
  }
}

/* Makale içeriği */
.ec-single__content {
  min-width: 0;
}

.ec-single__content .ec-post-body {
  font-size: 16px;
  line-height: 1.85;
  color: #ccc;
}

.ec-post-body h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--ecw-paper);
  margin: 2em 0 .75em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ecw-steel);
}

.ec-post-body h3 {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--ecw-paper);
  margin: 1.75em 0 .6em;
}

.ec-post-body h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ecw-paper);
  margin: 1.5em 0 .5em;
}

.ec-post-body p {
  margin: 0 0 1.2em;
}

.ec-post-body a {
  color: var(--ecw-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ec-post-body ul,
.ec-post-body ol {
  padding-left: 24px;
  margin: 0 0 1.2em;
}

.ec-post-body li {
  margin-bottom: .4em;
}

.ec-post-body blockquote {
  border-left: 4px solid var(--ecw-red);
  margin: 1.5em 0;
  padding: 16px 20px;
  background: var(--ecw-ink-2);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #bbb;
}

.ec-post-body blockquote p { margin: 0; }

.ec-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin-block: 1em;
}

.ec-post-body figure { margin: 1.5em 0; }

.ec-post-body figcaption {
  font-size: 13px;
  color: var(--ecw-mute);
  text-align: center;
  margin-top: 6px;
}

.ec-post-body code {
  background: var(--ecw-ink-2);
  border: 1px solid var(--ecw-steel);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .9em;
}

.ec-post-body pre {
  background: var(--ecw-ink-2);
  border: 1px solid var(--ecw-steel);
  padding: 16px 20px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.ec-post-body pre code {
  background: none;
  border: none;
  padding: 0;
}

.ec-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}

.ec-post-body th,
.ec-post-body td {
  padding: 10px 14px;
  border: 1px solid var(--ecw-steel);
  text-align: left;
}

.ec-post-body th {
  background: var(--ecw-ink-2);
  font-weight: 700;
  color: var(--ecw-paper);
}

/* Post alt - paylaşım / etiketler */
.ec-post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ecw-steel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: gap;
  gap: 16px;
  flex-wrap: wrap;
}

.ec-post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ec-post-tags__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ecw-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ec-post-tags a {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--ecw-steel);
  border-radius: 20px;
  color: var(--ecw-mute);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.ec-post-tags a:hover {
  border-color: var(--ecw-red);
  color: var(--ecw-red);
}

.ec-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ecw-mute);
  text-decoration: none;
  transition: color .2s;
}

.ec-back-link:hover { color: var(--ecw-red); }

/* ─── SİDEBAR ─────────────────────────────────────────────── */
.ec-single__sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ec-sidebar-box {
  background: var(--ecw-ink-2);
  border: 1px solid var(--ecw-steel);
  border-radius: 4px;
  padding: 24px;
}

.ec-sidebar-box__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ecw-red);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ecw-steel);
}

.ec-recent-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ec-recent-posts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ec-recent-posts a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ecw-paper);
  text-decoration: none;
  line-height: 1.35;
  transition: color .2s;
}

.ec-recent-posts a:hover { color: var(--ecw-red); }

.ec-recent-posts time {
  font-size: 12px;
  color: var(--ecw-mute);
}

.ec-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ec-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ecw-mute);
  text-decoration: none;
  transition: color .2s;
}

.ec-cat-list a:hover { color: var(--ecw-red); }

.ec-cat-list a span {
  font-size: 12px;
  background: var(--ecw-ink-0);
  padding: 2px 7px;
  border-radius: 10px;
}

/* ─── İLGİLİ YAZILAR ─────────────────────────────────────── */
.ec-related {
  background: var(--ecw-ink-0);
  border-top: 1px solid var(--ecw-steel);
  padding-block: 56px;
  font-family: 'Manrope', system-ui, sans-serif;
}

.ec-related__head {
  margin-bottom: 32px;
}

.ec-related__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ecw-red);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ec-related__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ecw-red);
}

.ec-related__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--ecw-paper);
  margin: 0;
}

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

@media (max-width: 900px) {
  .ec-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .ec-related__grid { grid-template-columns: 1fr; }
}

/* ─── BOŞTU / ARŞİV BAŞLIĞI ──────────────────────────────── */
.ec-no-posts {
  text-align: center;
  padding: 80px 20px;
  color: var(--ecw-mute);
  font-size: 16px;
}

.ec-archive-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ecw-red);
  display: block;
  margin-bottom: 6px;
}
