/* =============================================================================
   BLOG component — default theme
   Generated by Fehmi Demiralp
   ============================================================================= */

.page-blog {
  min-height: 60vh;
}

/* ── Component-specific overrides ────────────────────────────────────────── */
.blog-wrap {
  padding-top: 32px;
}
.blog-heading {
  margin-bottom: 8px;
}
.blog-layout {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  align-items: flex-start;
}
@media (max-width: 640px) {
  .blog-layout { flex-direction: column; }
  .blog-sidebar {
    flex: none; position: static; max-height: none;
    flex-direction: row; flex-wrap: wrap; overflow: visible;
  }
  .blog-sidebar-title { width: 100%; }
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.blog-sidebar {
  flex: 0 0 180px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 8px;
}
.blog-sidebar::-webkit-scrollbar { width: 4px; }
.blog-sidebar::-webkit-scrollbar-track { background: transparent; }
.blog-sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.blog-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  padding: 4px 6px 2px;
}
.blog-sidebar-spacer {
  height: 10px;
}
.blog-main {
  flex: 1 1 0;
  min-width: 0;
}

/* ── Card list ────────────────────────────────────────────────────────────── */
.blog-list { display: flex; flex-direction: column; gap: 20px; }

.blog-card {
  padding: 24px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  cursor: default;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  border-color: #555;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.blog-date {
  display: inline-block;
  font-size: 0.78rem;
  font-family: monospace;
  color: #888;
  background: #f0f0f0;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 4px 0 10px;
  cursor: pointer;
  color: #111;
}
.blog-card-title h2 { font-size: 1.2rem; margin-bottom: 8px; color: #111; }
.blog-card-title:hover { text-decoration: underline; }

.blog-card-tags { margin-bottom: 10px; }

.blog-card-excerpt {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ── Read more — link variant (blog-read-btn) ─────────────────────────────── */
/* Used when blog-read-btn--button modifier is NOT set                        */
.blog-read-more-wrap {
  margin-top: 8px;
}
.blog-read-more-wrap--newline {
  margin-top: 12px;
  display: block;         /* excerpt altında ayrı satır */
}
.blog-read-more-wrap--continue {
  display: inline;        /* excerpt ile aynı satırda devam */
  margin-left: 6px;
}

.blog-read-btn {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #111;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1.5px solid #ddd;
  border-radius: 0;
  padding: 0 0 1px 0;
  margin-top: 0;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.blog-read-btn:hover {
  color: #333;
  border-color: #333;
  background: transparent;
}

/* ── Read more — button variant (.blog-read-btn--button modifier) ─────────── */
/* WText gets both classes: "blog-read-btn blog-read-btn--button"             */
.blog-read-btn--button {
  display: inline-block;
  margin-top: 4px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.blog-read-btn--button:hover {
  background: #0f3460;
  color: #fff;
  border-color: transparent;
}

/* ── Group header (TagGroup sort mode) ───────────────────────────────────── */
.blog-group-header {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  padding: 16px 0 8px;
  border-bottom: 1.5px solid #e0e0e0;
  margin-bottom: 4px;
}
.blog-group-header:first-child { padding-top: 0; }

/* ── Back button (post view) ──────────────────────────────────────────────── */
.blog-back-btn {
  margin-bottom: 28px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  color: #555;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.blog-back-btn:hover {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

/* ── Back sticky button (floating) ───────────────────────────────────────── */
.blog-back-sticky {
  position: fixed !important;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  background: #ffffff !important;
  color: #111 !important;
  border: 1.5px solid #111 !important;
  border-radius: 24px !important;
  padding: 10px 22px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.blog-back-sticky:hover {
  background: #1a1a2e !important;
  color: #fff !important;
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .blog-back-sticky { bottom: 16px; right: 16px; }
}

/* ── Post view ────────────────────────────────────────────────────────────── */
.blog-post .post-header {
  margin-bottom: 24px;
}
.post-header {
  margin-bottom: 32px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}
.post-header h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 10px; }
.blog-post .post-header h1 { margin-bottom: 8px; }
.blog-post .post-tags { margin-top: 8px; }

/* ── Post body extras ─────────────────────────────────────────────────────── */
.blog-hr { border: none; border-top: 1px solid #e0e0e0; margin: 32px 0; }

.blog-figure {
  margin: 28px 0;
  text-align: center;
}
.blog-img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.blog-figure figcaption {
  font-size: 0.82rem;
  color: #888;
  margin-top: 8px;
  font-style: italic;
}

/* ── Video embed ──────────────────────────────────────────────────────────── */
.blog-video .video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.blog-video .video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Table ───────────────────────────────────────────────────────────────── */
.post-body .md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.88rem;
}
.post-body .md-table th,
.post-body .md-table td {
  padding: 8px 14px;
  border: 1px solid #e0e0e0;
  text-align: left;
  color: #333;
}
.post-body .md-table th {
  background: #f4f4f4;
  color: #111;
  font-weight: 700;
}
.post-body .md-table tr:nth-child(even) td {
  background: #fafafa;
}

/* ── Blockquote ──────────────────────────────────────────────────────────── */
.post-body .md-blockquote {
  margin: 12px 0;
  padding: 4px 0 4px 16px;
}
.post-body .md-blockquote p {
  margin: 0;
  color: #444;
  font-style: normal;
}
