/*
Theme Name: Klasik Lite
Description: Sıfır bağımlılıklı, JavaScript içermeyen, hafif klasik tema. Sabit ana sayfa, kenar çubuğu ve header altında giriş butonu bloğu.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: klasik-lite
*/

:root {
  --bg: #eef1f4;
  --card: #ffffff;
  --brand: #0f172a;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #15803d;
  --accent-light: #22c55e;
  --accent-soft: #ecfdf3;
  --line: #e5e7eb;
  --w: 1080px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 17px/1.75 var(--font); color: var(--text); background: var(--bg); }
a { color: var(--accent); }
img, video, iframe { max-width: 100%; height: auto; border-radius: 8px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 .6em; color: var(--brand); }
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
blockquote { margin: 1.4em 0; padding: .4em 1.2em; border-left: 4px solid var(--accent-light); background: var(--accent-soft); border-radius: 0 8px 8px 0; color: var(--text); }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
th { background: var(--bg); }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }

/* Üst kısım */
.site-header { background: var(--brand); border-bottom: 3px solid var(--accent-light); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.site-title { font-size: 1.5rem; font-weight: 800; letter-spacing: .01em; text-decoration: none; color: #ffffff; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.menu a { text-decoration: none; color: #cbd5e1; font-weight: 600; }
.menu a:hover, .menu a:focus { color: #ffffff; }

/* Giriş butonu bloğu (header altında) */
.gb { background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%); text-align: center; padding: 30px 20px 28px; }
.gb--sticky { position: sticky; top: 0; z-index: 50; padding: 12px 20px; background: var(--accent-soft); border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px rgba(16, 24, 40, .08); }
.gb--sticky .gb-text { display: none; }
.admin-bar .gb--sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .gb--sticky { top: 46px; } }

.gb-text { max-width: 720px; margin: 0 auto 18px; color: #374151; }
.gb-text h1, .gb-text h2, .gb-text h3 { margin: 0 0 .4em; color: var(--brand); line-height: 1.25; }
.gb-text h1 { font-size: 1.9rem; }
.gb-text h2 { font-size: 1.5rem; }
.gb-text h3 { font-size: 1.2rem; }
.gb-text p { margin: 0 0 .6em; font-size: 1rem; }
.gb-text > :last-child { margin-bottom: 0; }

.gb-btn { display: inline-block; background: var(--accent); color: #ffffff; font-weight: 700; font-size: 1.05rem; padding: 13px 34px; border-radius: 6px; text-decoration: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .15); transition: background .15s; }
.gb-btn:hover, .gb-btn:focus { background: #166534; }
.gb-btn:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }

/* Yerleşim */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-top: 28px; padding-bottom: 48px; align-items: start; }
@media (max-width: 800px) { .layout { grid-template-columns: 1fr; gap: 20px; } }

/* İçerik kartları */
.entry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px; margin-bottom: 24px; }
@media (max-width: 600px) { .entry { padding: 20px; } }
.entry-title { margin-bottom: .3em; }
.entry-title a { color: var(--brand); text-decoration: none; }
.entry-title a:hover { color: var(--accent); }
.entry-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.2em; }
.entry-content h2 { padding-left: 12px; border-left: 4px solid var(--accent-light); }
.entry-footer { color: var(--muted); font-size: .9rem; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 4px; font-size: .95rem; }
.archive-title { margin-bottom: 1em; }
.pagination { margin-top: 1em; }
.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 6px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pagination .current { background: var(--accent); color: #ffffff; border-color: var(--accent); }

/* Kenar çubuğu */
.sidebar .widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 20px; }
.widget-title { font-size: 1.05rem; margin: 0 0 .7em; padding-bottom: .5em; border-bottom: 3px solid var(--accent-light); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar li a { text-decoration: none; color: var(--text); }
.sidebar li a:hover { color: var(--accent); }

/* Alt kısım */
.site-footer { background: var(--brand); color: #94a3b8; font-size: .9rem; padding: 22px 0; text-align: center; }

/* WordPress hizalama sınıfları */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.screen-reader-text { position: absolute; left: -9999px; }
