/* ================================================================
   muhammetelma.com — home.css  (Ana Sayfa)
   ================================================================ */

/* ── FEATURED CARD ───────────────────────────────────────────── */
.featured-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 30px rgba(10,122,116,.1); margin-bottom: 48px; text-decoration: none; color: inherit; transition: transform .2s; }
.featured-card:hover { transform: translateY(-2px); }
.feat-img { background: linear-gradient(135deg, #0d2322, #0a7a74); min-height: 340px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; }
.feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-img-inner { position: relative; z-index: 1; }
.feat-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.feat-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cat-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.feat-label { font-size: 12px; color: var(--muted); }
.feat-title { font-family: var(--font-head); font-size: 28px; font-weight: 700; line-height: 1.3; color: var(--dark); margin-bottom: 16px; }
.featured-card:hover .feat-title { color: var(--tq); }
.feat-excerpt { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feat-author { display: flex; align-items: center; gap: 12px; }
.author-av { width: 36px; height: 36px; background: var(--tq); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.author-name { font-size: 13px; font-weight: 600; color: var(--text); }
.author-date { font-size: 11px; color: var(--muted); }
.read-more { margin-left: auto; color: var(--tq); font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ── CATEGORY FILTER ─────────────────────────────────────────── */
.cat-filter { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.cat-btn { padding: 7px 16px; border-radius: 24px; border: 1.5px solid var(--border); cursor: pointer; font-size: 13px; font-family: var(--font-body); font-weight: 500; transition: all .15s; color: var(--muted); background: transparent; display: inline-block; text-decoration: none; }
.cat-btn:hover { border-color: var(--tq); color: var(--tq); }
.cat-btn.active { background: var(--tq); border-color: var(--tq); color: #fff; }

/* ── POST GRID ───────────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-content: start; }
.post-card { background: var(--card-bg); border-radius: 14px; overflow: hidden; cursor: pointer; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: all .2s; display: block; text-decoration: none; color: inherit; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(10,122,116,.15); }
.post-thumb { height: 160px; position: relative; overflow: hidden; background: linear-gradient(135deg, #0d2322, #0a7a74); }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 18px 20px 20px; }
.post-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.post-title { font-family: var(--font-head); font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--dark); margin-bottom: 8px; }
.post-card:hover .post-title { color: var(--tq); }
.post-excerpt { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.post-readtime { color: var(--tq); font-weight: 600; }

/* ── HOME LAYOUT ─────────────────────────────────────────────── */
.home-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.home-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sb-card { background: var(--card-bg); border-radius: 16px; padding: 24px; border: 1px solid var(--border); margin-bottom: 24px; }
.sb-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--tq-light); }
.profile-av { width: 80px; height: 80px; background: linear-gradient(135deg, var(--tq), var(--tq-dark)); border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.profile-av span { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 28px; }
.profile-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--dark); margin-bottom: 6px; text-align: center; }
.profile-bio { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; text-align: center; }
.profile-btn { display: block; width: 100%; background: var(--tq); color: #fff; border-radius: 24px; padding: 9px 20px; font-family: var(--font-body); font-weight: 600; font-size: 13px; text-align: center; transition: background .15s; text-decoration: none; }
.profile-btn:hover { background: var(--tq-dark); }
.sb-cat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: background .12s; color: var(--text); text-decoration: none; }
.sb-cat-row:hover { background: var(--tq-light); }
.sb-cat-name { font-size: 13px; font-weight: 500; }
.sb-cat-count { font-size: 11px; color: var(--tq); font-weight: 600; background: var(--tq-light); padding: 2px 8px; border-radius: 12px; }
.pop-item { display: flex; gap: 12px; cursor: pointer; text-decoration: none; color: inherit; margin-bottom: 14px; }
.pop-item:last-child { margin-bottom: 0; }
.pop-num { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--tq-light); line-height: 1; min-width: 28px; }
.pop-title { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.4; margin-bottom: 4px; transition: color .15s; }
.pop-item:hover .pop-title { color: var(--tq); }
.pop-date { font-size: 11px; color: var(--muted); }
.tag-pill { font-size: 12px; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: all .15s; display: inline-block; margin: 3px; text-decoration: none; }
.tag-pill:hover { background: var(--tq); color: #fff; border-color: var(--tq); }

/* ── PAGINATION ──────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pg-btn { 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; cursor: pointer; }
.pg-btn:hover { border-color: var(--tq); color: var(--tq); }
.pg-btn.active { background: var(--tq); color: #fff; border-color: var(--tq); }
.pg-btn.disabled { opacity: .4; cursor: not-allowed; }
.pg-info { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .featured-card { grid-template-columns: 1fr; }
    .feat-img { min-height: 200px; }
    .feat-body { padding: 28px 24px; }
    .feat-title { font-size: 22px; }
    .home-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
}
