/*
Theme Name: Kalem İzi
Theme URI: https://kalemizi.com
Author: Kalem İzi
Author URI: https://kalemizi.com
Description: Minimalist yazar blogu teması. Güvenlik odaklı, hızlı, SEO uyumlu.
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kalemizi
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ═══ CSS VARIABLES ═══ */
:root {
  --cream: #f5f0e8;
  --ink: #1a1a1a;
  --warm: #8a7d6b;
  --accent: #c4a882;
  --light: #e8e0d4;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: #2c2c2c; color: var(--cream); }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color .3s; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: transparent; font-family: inherit; }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lineGrow { from { width: 0; } to { width: 60px; } }

.fade-in { animation: fadeIn .7s ease both; }
.fade-in-d1 { animation: fadeIn .7s ease .1s both; }
.fade-in-d2 { animation: fadeIn .7s ease .2s both; }
.fade-in-d3 { animation: fadeIn .7s ease .3s both; }

/* ═══ LAYOUT ═══ */
.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ═══ NAVIGATION ═══ */
.site-nav {
  border-bottom: 1px solid var(--light);
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 240, 232, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 800px; margin: 0 auto; padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.site-logo {
  display: flex; align-items: center; gap: 8px;
  min-height: 40px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px; font-weight: 500; color: var(--ink);
  letter-spacing: .04em;
}
.site-logo .custom-logo {
  max-height: 40px; width: auto; display: block; flex-shrink: 0;
}
.logo-mark { font-size: 18px; color: var(--accent); }
.nav-menu { display: flex; gap: 32px; list-style: none; }
.nav-menu a {
  font-family: 'Karla', sans-serif; font-size: 13px; font-weight: 400;
  color: var(--warm); letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 0; border-bottom: 1px solid transparent;
  transition: all .3s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a { color: var(--ink); border-bottom-color: var(--ink); }

.menu-toggle {
  display: none; font-size: 22px; color: var(--ink);
  background: transparent; border: none; cursor: pointer;
}

@media (max-width: 600px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--light); padding: 16px 24px; gap: 16px; }
  .nav-menu.open { display: flex; }
  .menu-toggle { display: block; }
}

/* ═══ HERO (front page) ═══ */
.hero { text-align: center; padding: 52px 0 32px; }
.hero-line { width: 60px; height: 1px; background: var(--accent); margin: 0 auto; animation: lineGrow 1s ease both; }
.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px; font-weight: 300; font-style: italic;
  color: var(--ink); line-height: 1.2; margin: 28px 0;
}
.hero-sub {
  font-family: 'Karla', sans-serif; font-size: 14px; color: var(--warm);
  font-weight: 300; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .hero { padding: 48px 0 28px; }
  .hero-title { font-size: 34px; }
}

/* ─── Hero özlü söz döngüsü ─── */
#hero-quotes { min-height: 1.2em; }
.hero-quote { display: none; }
.hero-quote.is-active { display: block; animation: fadeIn .7s ease both; }

/* ═══ CATEGORIES BAR ═══ */
.cat-bar { display: flex; justify-content: center; gap: 28px; margin-bottom: 36px; flex-wrap: wrap; }
.cat-link {
  font-family: 'Karla', sans-serif; font-size: 12px; color: var(--warm);
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: all .3s;
}
.cat-link:hover, .cat-link.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ═══ FEATURED POST ═══ */
.featured-post {
  padding: 40px 36px; border: 1px solid var(--light);
  margin-bottom: 40px; text-align: center;
  transition: all .4s;
}
.featured-post:hover { border-color: var(--accent); transform: translateY(-2px); }
.featured-label {
  font-family: 'Karla', sans-serif; font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.featured-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px; font-weight: 400; font-style: italic;
  line-height: 1.3; margin-bottom: 22px;
}
.featured-title a { transition: color .3s; }
.featured-title a:hover { color: var(--accent); }
.featured-excerpt {
  font-size: 16px; line-height: 1.9; color: var(--warm);
  max-width: 560px; margin: 0 auto 26px;
}
.post-meta {
  font-family: 'Karla', sans-serif; font-size: 12px; color: var(--warm);
  letter-spacing: .04em; display: flex; justify-content: center; gap: 8px; align-items: center;
}
.meta-dot { color: var(--accent); }

@media (max-width: 600px) {
  .featured-post { padding: 32px 24px; }
  .featured-title { font-size: 28px; }
}

/* ═══ POST GRID ═══ */
.post-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 56px;
}
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; gap: 0; } }

.post-card {
  padding: 28px 24px;
  border-bottom: 1px solid var(--light);
  transition: all .3s;
}
.post-card:hover { background: rgba(0,0,0,.015); }
.post-card-cat {
  font-family: 'Karla', sans-serif; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.post-card-cat a { color: var(--accent); }
.post-card-cat a:hover { color: var(--ink); }
.post-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px; font-weight: 500; line-height: 1.3;
  margin-bottom: 14px; transition: color .3s;
}
.post-card:hover .post-card-title { color: var(--accent); }
.post-card-title a { color: inherit; }
.post-card-excerpt {
  font-size: 14px; line-height: 1.85; color: var(--warm); margin-bottom: 18px;
}
.post-card-meta {
  font-family: 'Karla', sans-serif; font-size: 11px;
  color: rgba(138,125,107,.6); display: flex; gap: 8px; align-items: center;
  margin-bottom: 14px;
}
.read-more {
  font-family: 'Karla', sans-serif; font-size: 12px; color: var(--ink);
  letter-spacing: .04em; font-weight: 500; transition: letter-spacing .3s;
}
.post-card:hover .read-more { letter-spacing: .1em; }

/* ═══ SINGLE POST / PAGE ═══ */
.article-page { padding: 48px 0 56px; }
.back-link {
  font-family: 'Karla', sans-serif; font-size: 12px; color: var(--warm);
  letter-spacing: .06em; margin-bottom: 36px; display: inline-block;
  transition: color .3s;
}
.back-link:hover { color: var(--ink); }
.article-cat {
  font-family: 'Karla', sans-serif; font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; text-align: center;
}
.article-cat a { color: var(--accent); }
.article-cat a:hover { color: var(--ink); }
.entry-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 46px; font-weight: 400; font-style: italic;
  line-height: 1.2; text-align: center; margin-bottom: 22px;
}
.entry-meta {
  font-family: 'Karla', sans-serif; font-size: 12px; color: var(--warm);
  text-align: center; display: flex; justify-content: center; gap: 8px;
  align-items: center; margin-bottom: 36px;
}
.article-divider { width: 60px; height: 1px; background: var(--accent); margin: 44px auto; }

.entry-content {
  max-width: 620px; margin: 0 auto;
}
.entry-content p {
  font-size: 17px; line-height: 2; margin-bottom: 30px;
  color: #2c2c2c; text-align: justify; hyphens: auto;
}
.entry-content p:first-of-type::first-letter {
  float: left; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 68px; font-weight: 600; line-height: .8;
  padding-right: 12px; padding-top: 8px; color: var(--ink);
}
.entry-content h2, .entry-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin: 40px 0 20px; font-weight: 500;
}
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 24px; margin: 32px 0;
  font-style: italic; color: var(--warm);
}
.entry-content ul, .entry-content ol {
  margin: 20px 0 30px 24px; color: #2c2c2c;
}
.entry-content li { margin-bottom: 8px; line-height: 1.8; }
.entry-content a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.entry-content a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.entry-content img { margin: 32px auto; border: 1px solid var(--light); }
.article-end { text-align: center; font-size: 22px; color: var(--accent); margin: 24px 0 44px; }

@media (max-width: 600px) {
  .entry-title { font-size: 32px; }
  .entry-content p { font-size: 15px; line-height: 1.9; }
  .entry-content p:first-of-type::first-letter { font-size: 52px; }
}

/* ═══ PAGE TEMPLATE (About) ═══ */
.page-content { padding: 48px 0 56px; }
.page-header { text-align: center; margin-bottom: 40px; }
.page-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--light); display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--accent); margin: 0 auto 28px;
}
.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px; font-weight: 400; font-style: italic; margin-bottom: 22px;
}
.page-body { max-width: 600px; margin: 0 auto; }
.page-body p { font-size: 16px; line-height: 2; color: #3a3a3a; margin-bottom: 26px; }

/* ═══ COMMENTS ═══ */
.comments-area { max-width: 620px; margin: 0 auto; padding: 40px 0 60px; }
.comments-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px; font-weight: 400; font-style: italic;
  margin-bottom: 32px; text-align: center;
}
.comment-list { list-style: none; }
.comment-list .comment {
  padding: 24px 0; border-bottom: 1px solid var(--light);
}
.comment-author {
  font-family: 'Karla', sans-serif; font-size: 13px; font-weight: 500;
  margin-bottom: 8px;
}
.comment-content p { font-size: 14px; line-height: 1.8; color: var(--warm); }
.comment-date { color: var(--warm); font-size: 11px; margin-left: 8px; }
.comment-pending { color: var(--warm); font-style: italic; font-size: 13px; }
.comment-respond { margin-top: 40px; }
.comment-form label {
  display: block; font-family: 'Karla', sans-serif;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--warm); margin-bottom: 8px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--light);
  border-radius: 0; background: transparent;
  font-family: 'Lora', Georgia, serif; font-size: 15px; color: var(--ink);
  transition: border-color .3s; outline: none; margin-bottom: 20px;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); }
.comment-form .submit {
  padding: 14px 48px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream);
  font-family: 'Karla', sans-serif; font-size: 12px;
  letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; transition: all .3s;
}
.comment-form .submit:hover { background: transparent; color: var(--ink); }

/* ═══ CONTACT FORM ═══ */
.contact-form { max-width: 460px; margin: 0 auto; text-align: left; }
.form-group { margin-bottom: 26px; }
.form-label {
  display: block; font-family: 'Karla', sans-serif;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--warm); margin-bottom: 8px;
}
.form-input, .form-textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--light);
  border-radius: 0; background: transparent;
  font-family: 'Lora', Georgia, serif; font-size: 15px; color: var(--ink);
  transition: border-color .3s; outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-btn {
  padding: 15px 52px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream);
  font-family: 'Karla', sans-serif; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; transition: all .3s;
}
.form-btn:hover { background: transparent; color: var(--ink); }
.contact-alt { margin-top: 52px; text-align: center; }
.contact-alt-text { font-family: 'Karla', sans-serif; font-size: 12px; color: var(--warm); margin-bottom: 10px; }
.contact-email {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px; font-style: italic; color: var(--ink);
}

/* ═══ PAGINATION ═══ */
.pagination {
  display: flex; justify-content: center; gap: 16px;
  margin: 40px 0 80px;
  font-family: 'Karla', sans-serif; font-size: 13px;
}
.pagination a, .pagination span {
  padding: 8px 16px; border: 1px solid var(--light);
  color: var(--warm); transition: all .3s;
}
.pagination a:hover, .pagination .current {
  border-color: var(--ink); color: var(--ink);
}

/* ═══ SEARCH ═══ */
.search-results-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px; font-weight: 400; font-style: italic;
  text-align: center; margin: 44px 0 32px;
}

/* ═══ 404 ═══ */
.error-404 {
  text-align: center; padding: 72px 24px;
}
.error-404 h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 80px; font-weight: 300; color: var(--accent); margin-bottom: 16px;
}
.error-404 p {
  font-size: 16px; color: var(--warm); margin-bottom: 32px;
}
.error-404 a {
  font-family: 'Karla', sans-serif; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

/* ═══ FOOTER ═══ */
.site-footer {
  border-top: 1px solid var(--light); padding: 48px 24px; text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px; margin-bottom: 14px; color: var(--ink);
}
.footer-logo-img {
  max-height: 28px; width: auto; display: inline-block;
  vertical-align: middle; margin-right: 6px;
}
.footer-text { font-size: 13px; color: var(--warm); margin-bottom: 22px; font-style: italic; }
.footer-nav { display: flex; justify-content: center; gap: 12px; align-items: center; margin-bottom: 28px; list-style: none; }
.footer-social { margin-bottom: 16px; }
.footer-nav a {
  font-family: 'Karla', sans-serif; font-size: 12px; color: var(--warm); letter-spacing: .06em;
}
.footer-nav a:hover { color: var(--ink); }
.footer-dot { color: var(--accent); font-size: 10px; }
.footer-copy {
  font-family: 'Karla', sans-serif; font-size: 11px;
  color: rgba(138,125,107,.5); letter-spacing: .04em;
}

/* ═══ WIDGET / SIDEBAR (disabled by default) ═══ */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}
.skip-link:focus {
  clip: auto; height: auto; width: auto;
  position: fixed !important; top: 8px; left: 8px; z-index: 1000;
  background: var(--ink); color: var(--cream);
  padding: 10px 18px; font-family: 'Karla', sans-serif; font-size: 13px;
}

/* Honeypot — CSP uyumlu (stylesheet'te, satır-içi değil) */
.kalemizi-hp-field {
  position: absolute !important; left: -9999px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
