/*
Theme Name: ÖzkanMetin
Theme URI: https://ozkanmetin.com.tr
Author: ÖzkanMetin
Description: Kişisel blog teması — AI, Teknoloji ve Verimlilik
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ozkanmetin
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --ink: #1a1a18;
  --ink-light: #5a5a55;
  --ink-faint: #9a9a92;
  --paper: #faf9f6;
  --paper-warm: #f3f1ec;
  --accent: #c8602a;
  --border: #e2e0d9;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── HEADER ── */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(250,249,246,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s;
}
.site-logo:hover { color: var(--accent); }
.site-logo span { color: var(--accent); }

.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  transition: color 0.2s;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ── HERO ── */
.home-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 32px 56px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: end;
  border-bottom: 1px solid var(--border);
}
.hero-featured { display: flex; flex-direction: column; gap: 20px; }
.hero-sidebar {
  border-left: 1px solid var(--border);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
}
.sidebar-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 2px;
}
.tag-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.post-date {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-weight: 300;
}

/* ── HERO TITLE ── */
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-excerpt {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.7;
  max-width: 560px;
}
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}
.read-link:hover { color: var(--accent); border-color: var(--accent); }

/* ── SIDEBAR ITEMS ── */
.sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}
.sidebar-item:hover { opacity: 0.65; }
.sidebar-item h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}

/* ── SECTION LABEL ── */
.section-label {
  max-width: 1100px;
  margin: 56px auto 32px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-label span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── ARTICLE GRID ── */
.posts-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}
.post-card:hover { opacity: 0.72; }
.post-card h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}
.post-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.65;
  flex: 1;
}
.card-meta { display: flex; align-items: center; gap: 10px; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.read-time { font-size: 0.73rem; color: var(--ink-faint); }

/* ── QUOTE STRIP ── */
.quote-strip {
  margin: 64px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 32px;
  text-align: center;
}
.quote-strip blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.4;
}
.quote-strip cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 20px;
}

/* ── SINGLE POST ── */
.single-post {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 32px;
}
.single-post .post-header { margin-bottom: 40px; }
.single-post .post-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin: 16px 0;
}
.single-post .post-content {
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
}
.single-post .post-content p { margin-bottom: 1.5em; }
.single-post .post-content h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 2em 0 0.6em;
}
.single-post .post-content h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 1.6em 0 0.5em;
}
.single-post .post-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 2em 0;
  font-style: italic;
  color: var(--ink-light);
}
.single-post .post-content a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ── NEWSLETTER ── */
.newsletter-section {
  max-width: 600px;
  margin: 0 auto 80px;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.newsletter-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.newsletter-section h2 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
}
.newsletter-section p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.65;
}
.newsletter-form {
  display: flex;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.newsletter-form:focus-within { border-color: var(--ink); }
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
}
.newsletter-form input::placeholder { color: var(--ink-faint); }
.newsletter-form button {
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--accent); }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--ink-faint);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 0.73rem; color: var(--ink-faint); font-weight: 300; }

/* ── PAGINATION ── */
.pagination {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 32px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.pagination a, .pagination span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-light);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-featured { animation: fadeUp 0.7s ease both; }
.hero-sidebar { animation: fadeUp 0.7s 0.12s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-sidebar { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 32px; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .posts-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 20px; }
  .home-hero, .section-label, .posts-grid { padding-left: 20px; padding-right: 20px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
