/*
Theme Name: Porego Blog
Theme URI: https://porego.com/blog
Author: Porego
Author URI: https://porego.com
Description: Porego blog — landing page kimliğinde (Inter, yeşil/beyaz, düz/flat) modern WordPress teması.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: porego-blog
*/

:root {
  --brand: #174d4d;
  --brand-dark: #103838;
  --emerald: #10b981;
  --emerald-50: #ecfdf5;
  --ink: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f6;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 16px;
  --radius-lg: 22px;
  --read: 720px;
  --wide: 1120px;
}

/* Erişilebilirlik */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 16px; background: #174d4d; color: #fff; border-radius: 10px; font-weight: 700; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--emerald); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--read); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: var(--wide); }

/* ── Header / navbar ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226,232,240,.7);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; }
.logo { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--slate-600); font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 999px; transition: all .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(241,245,249,.8); }
.nav-links a.active { color: var(--brand); background: rgba(23,77,77,.07); font-weight: 600; }
.nav-links a.cta { color: #fff; background: var(--brand); font-weight: 600; padding: 7px 18px; border: 1px solid var(--brand); }
.nav-links a.cta:hover { background: var(--brand-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: .2s; }

main { padding: 40px 0 64px; }

/* ── Ortak parçalar ── */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--emerald); margin: 0 0 10px; }
.chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--brand); background: rgba(23,77,77,.07); border-radius: 999px; padding: 4px 10px; }
.chip:hover { background: rgba(16,185,129,.12); color: var(--emerald); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 999px; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.empty { color: var(--slate-500); padding: 40px 0; text-align: center; }

/* Meta satırı (avatar + yazar · tarih · okuma) */
.meta-row { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate-500); flex-wrap: wrap; }
.meta-row .avatar, .m-avatar .avatar { width: 26px; height: 26px; border-radius: 999px; }
.m-avatar { display: inline-flex; }
.m-author { font-weight: 600; color: var(--slate-700); }
.m-dot { color: var(--slate-400); }

/* ── Liste başlığı ── */
.list-head { text-align: center; max-width: 620px; margin: 8px auto 40px; }
.list-title { font-size: 38px; font-weight: 800; letter-spacing: -.025em; margin: 0; line-height: 1.1; }
.list-sub { margin: 14px 0 0; color: var(--slate-500); font-size: 17px; }

/* ── Kart grid ── */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--emerald); transform: translateY(-2px); }
.card-media { display: block; aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--slate-400); font-weight: 800; letter-spacing: -.02em; font-size: 22px; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.card-title { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); }
.card-excerpt { margin: 0; color: var(--slate-600); font-size: 15px; }
.card-body .meta-row { margin-top: auto; padding-top: 6px; }

/* ── Tekil yazı ── */
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--slate-400); margin-bottom: 22px; }
.crumbs a { color: var(--slate-500); }
.crumbs a:hover { color: var(--brand); }
.post-head { margin-bottom: 28px; }
.post-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.entry-title { font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; margin: 0 0 18px; }
.post-meta { color: var(--slate-500); }
.post-hero { margin: 0 0 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.post-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Özet (TL;DR) — AI/okuyucu için en alıntılanabilir blok */
.post-summary { background: var(--emerald-50); border: 1px solid #bbf7d0; border-left: 4px solid var(--emerald); border-radius: 14px; padding: 16px 20px; margin: 0 0 32px; }
.post-summary-label { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); margin-bottom: 6px; }
.post-summary p { margin: 0; color: var(--slate-700); font-size: 16px; line-height: 1.6; }

.entry-content { font-size: 18px; line-height: 1.75; color: #1e293b; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-size: 27px; font-weight: 800; letter-spacing: -.01em; margin-top: 1.8em; }
.entry-content h3 { font-size: 21px; font-weight: 700; margin-top: 1.5em; }
.entry-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.entry-content a:hover { color: var(--emerald); }
.entry-content :where(ul, ol) { padding-left: 1.35em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img, .entry-content .wp-block-image img { border-radius: var(--radius); border: 1px solid var(--line); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 13px; color: var(--slate-500); text-align: center; margin-top: 8px; }
.entry-content blockquote { border-left: 4px solid var(--emerald); margin: 1.6em 0; padding: 6px 20px; color: var(--slate-600); background: var(--bg-soft); border-radius: 0 12px 12px 0; font-size: 19px; }
.entry-content pre { background: var(--brand); color: #e2e8f0; padding: 18px; border-radius: 12px; overflow: auto; font-size: 14px; line-height: 1.6; }
.entry-content code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; border: 1px solid var(--line-soft); }
.entry-content pre code { background: none; border: 0; padding: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* Etiketler */
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; }
.post-tags a { font-size: 13px; color: var(--slate-600); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.post-tags a:hover { border-color: var(--emerald); color: var(--emerald); }

/* Yazar kutusu */
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 22px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.author-box .avatar { width: 56px; height: 56px; border-radius: 999px; }
.author-name { font-weight: 700; margin: 0; }
.author-bio { margin: 4px 0 0; color: var(--slate-600); font-size: 15px; }

/* Önceki/sonraki */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 0; }
.post-nav a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); font-weight: 600; transition: border-color .2s; }
.post-nav a:hover { border-color: var(--emerald); }
.post-nav-next { text-align: right; }
.post-nav span { display: block; font-size: 12px; font-weight: 600; color: var(--slate-400); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }

/* ── Yorumlar ── */
.comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 24px; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list ol.children { list-style: none; margin: 18px 0 0 28px; padding-left: 18px; border-left: 2px solid var(--line); }
.comment-list .comment { margin-bottom: 22px; }
.comment-body { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.comment-body .avatar { width: 44px; height: 44px; border-radius: 999px; }
.comment-author { display: flex; align-items: center; gap: 8px; }
.comment-author .fn { font-weight: 700; font-style: normal; color: var(--ink); }
.comment-author .says { display: none; }
.bypostauthor > .comment-body .fn::after { content: "Yazar"; font-size: 10px; font-weight: 700; color: var(--emerald); background: var(--emerald-50); border-radius: 999px; padding: 2px 8px; margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; }
.comment-metadata { font-size: 12px; color: var(--slate-400); margin-top: 2px; }
.comment-metadata a { color: var(--slate-400); }
.comment-content { margin-top: 8px; color: var(--slate-700); }
.comment-content p { margin: 0 0 10px; }
.reply { margin-top: 6px; }
.reply a { font-size: 13px; font-weight: 700; color: var(--brand); }
.reply a:hover { color: var(--emerald); }
.comments-closed { color: var(--slate-500); font-size: 14px; }

/* Yorum formu */
.comment-respond { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.comment-reply-title { font-size: 18px; font-weight: 800; margin: 0 0 18px; }
.comment-reply-title small { font-weight: 500; margin-left: 10px; }
.comment-reply-title small a { color: var(--slate-500); }
.comment-form { display: grid; gap: 16px; }
.comment-form .cf-row, .comment-form p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.comment-form-author, .comment-form-email, .comment-form-url { }
@media (min-width: 600px) {
  .comment-form { grid-template-columns: 1fr 1fr; }
  .comment-form .cf-comment, .comment-form-comment, .form-submit, .comment-notes, .comment-form-cookies-consent { grid-column: 1 / -1; }
}
.comment-form label { font-size: 13px; font-weight: 600; color: var(--slate-600); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form :where(input,textarea):focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,77,77,.12); }
.comment-form-cookies-consent { flex-direction: row !important; align-items: center; gap: 8px; font-size: 13px; color: var(--slate-500); }
.comment-form-cookies-consent input { width: auto; }
.btn-submit, #submit { background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 15px; border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer; transition: background .2s; justify-self: start; }
.btn-submit:hover, #submit:hover { background: var(--brand-dark); }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--slate-600); }
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .page-numbers.dots { border: 0; }
.page-links { margin-top: 24px; font-weight: 600; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 64px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(4, 1fr); max-width: var(--wide); margin: 0 auto; padding: 48px 24px 32px; }
.footer-brand p { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--slate-600); max-width: 320px; }
.footer-logo { height: 36px; width: auto; }
.footer-col h3 { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a, .footer-col li { font-size: 14px; color: var(--slate-600); }
.footer-col a:hover { color: var(--brand); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; color: var(--slate-500); text-transform: uppercase; }
.footer-social a:hover { border-color: var(--brand); color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); max-width: var(--wide); margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--slate-500); }

.error-404 { text-align: center; padding: 60px 0; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px; display: none; }
  .site-header.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; }
}
@media (max-width: 680px) {
  .card-grid { grid-template-columns: 1fr; gap: 22px; }
  .list-title { font-size: 30px; }
  .entry-title { font-size: 30px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .entry-content { font-size: 17px; }
}
