/* ================================================================
   muhammetelma.com — Blog Sayfaları CSS
   ================================================================ */

/* ── KATEGORİ SAYFASI ─────────────────────────────────────────── */
.kat-hero { background: linear-gradient(135deg, #0d2322 0%, #0a7a74 100%); padding: 48px 24px; color: #fff; text-align: center; }
.kat-hero .breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.kat-hero .breadcrumb a { color: var(--tq-mid); text-decoration: none; }
.kat-hero h1 { font-family: var(--font-head); font-size: 2rem; font-weight: 800; }
.kat-hero p { color: rgba(255,255,255,.7); margin-top: 6px; font-size: 15px; }

.kat-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.kat-grid { display: grid; grid-template-columns: 1fr 300px; gap: 36px; }

.posts-list { display: flex; flex-direction: column; gap: 24px; }

.post-row { display: grid; grid-template-columns: 220px 1fr; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: all .2s; text-decoration: none; color: inherit; }
.post-row:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(10,122,116,.12); }
.pr-thumb { background: linear-gradient(135deg, #0d2322, #0a7a74); position: relative; overflow: hidden; min-height: 140px; }
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pr-no-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.2); font-size: 36px; }
.pr-body { padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; }
.pr-cat { font-size: 10px; font-weight: 700; color: var(--tq); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.pr-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--dark); line-height: 1.35; margin-bottom: 8px; }
.post-row:hover .pr-title { color: var(--tq); }
.pr-ozet { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-meta { display: flex; gap: 14px; font-size: 11px; color: var(--muted); }

/* ── MAKALE DETAY ─────────────────────────────────────────────── */
.article-hero { background: linear-gradient(135deg, #0d2322 0%, #0a7a74 100%); padding: 60px 24px; color: #fff; position: relative; overflow: hidden; }
.article-hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.article-hero .breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.article-hero .breadcrumb a { color: var(--tq-mid); text-decoration: none; }
.article-hero h1 { font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; }
.article-hero .meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.7); }

.article-body { max-width: 800px; margin: 0 auto; }
.article-content { font-size: 16px; line-height: 1.85; color: var(--text); }
.article-content h2, .article-content h3 { font-family: var(--font-head); color: var(--dark); margin: 28px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content img { border-radius: 10px; margin: 16px 0; }
.article-content a { color: var(--tq); text-decoration: underline; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag-pill { background: var(--tq-light); color: var(--tq-dark); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; text-decoration: none; transition: all .2s; }
.tag-pill:hover { background: var(--tq); color: #fff; }

.share-bar { display: flex; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); align-items: center; }
.share-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.share-btn { padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.share-tw { background: #1da1f2; color: #fff; }
.share-fb { background: #1877f2; color: #fff; }
.share-wa { background: #25d366; color: #fff; }

.ilgili-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.ilgili-card { background: #fff; border-radius: 10px; border: 1px solid var(--border); overflow: hidden; transition: transform .2s; text-decoration: none; color: inherit; display: block; }
.ilgili-card:hover { transform: translateY(-3px); }
.ilgili-thumb { height: 120px; background: linear-gradient(135deg, var(--dark), var(--tq)); position: relative; overflow: hidden; }
.ilgili-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ilgili-body { padding: 14px; }
.ilgili-cat { font-size: 10px; color: var(--tq); font-weight: 700; text-transform: uppercase; }
.ilgili-title { font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.35; margin-top: 4px; }

.comment-box { background: var(--bg); border-radius: 12px; padding: 28px; border: 1px solid var(--border); margin-top: 32px; }
.comment-box h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 20px; color: var(--dark); }
.comment-item { padding: 18px; background: #fff; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 14px; }
.comment-author { font-weight: 700; font-size: 14px; color: var(--dark); }
.comment-date { font-size: 12px; color: var(--muted); margin-left: 10px; }
.comment-text { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text); }
.comment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── ARAMA ────────────────────────────────────────────────────── */
.search-hero { background: linear-gradient(135deg, #0d2322, #0a7a74); padding: 40px 24px; color: #fff; text-align: center; }
.search-hero h1 { font-family: var(--font-head); font-size: 2rem; font-weight: 800; }
.search-hero p { color: rgba(255,255,255,.7); margin-top: 8px; }

/* ── SIDEBAR ──────────────────────────────────────────────────── */
.side-box { background: #fff; border-radius: 14px; border: 1px solid var(--border); padding: 22px; margin-bottom: 22px; }
.side-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--tq-light); }
.side-kat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; transition: background .12s; text-decoration: none; color: var(--text); font-size: 13px; }
.side-kat-row:hover { background: var(--tq-light); color: var(--tq-dark); }
.side-kat-row.active { background: var(--tq-light); color: var(--tq-dark); font-weight: 600; }
.side-count { font-size: 11px; color: var(--tq); font-weight: 600; background: var(--tq-light); padding: 2px 8px; border-radius: 10px; }
.side-post { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.side-post:last-child { border-bottom: none; }
.side-thumb { width: 52px; height: 52px; border-radius: 8px; background: linear-gradient(135deg, #0d2322, #0a7a74); flex-shrink: 0; overflow: hidden; position: relative; }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.side-ptitle { font-size: 12px; font-weight: 600; color: var(--dark); line-height: 1.35; margin-bottom: 3px; }
.side-post:hover .side-ptitle { color: var(--tq); }
.side-pdate { font-size: 11px; color: var(--muted); }

/* ── SAYFALAMA ────────────────────────────────────────────────── */
.pag { display: flex; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pag a, .pag span { padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--border); color: var(--text); background: #fff; transition: all .15s; display: inline-block; text-decoration: none; }
.pag a:hover { border-color: var(--tq); color: var(--tq); }
.pag a.active { background: var(--tq); color: #fff; border-color: var(--tq); }
.pag span.disabled { opacity: .4; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .kat-grid { grid-template-columns: 1fr; }
    .post-row { grid-template-columns: 1fr; }
    .pr-thumb { min-height: 160px; }
    .ilgili-grid { grid-template-columns: 1fr; }
    .comment-grid { grid-template-columns: 1fr; }
}

/* ── MAKALE DETAY CONTAINER ──────────────────────────────────── */
.article-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}
.article-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Makale başlık alanı — hero yerine basit başlık */
.article-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--tq-light);
}
.article-breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}
.article-breadcrumb a {
    color: var(--tq);
    text-decoration: none;
}
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb span { margin: 0 6px; }
.article-title {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 16px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* Cover image */
.article-cover {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 28px;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* Özet kutusu */
.article-ozet {
    background: var(--tq-light);
    border-left: 4px solid var(--tq);
    padding: 18px 22px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 28px;
    font-size: 15px;
    color: var(--tq-dark);
    font-style: italic;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .article-grid { grid-template-columns: 1fr; }
    .article-title { font-size: 1.6rem; }
    .ilgili-grid { grid-template-columns: 1fr 1fr; }
    .comment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .ilgili-grid { grid-template-columns: 1fr; }
}
