/*
Theme Name: ChristianTR Theme
Theme URI: https://christiantr.com.tr
Author: ChristianTR
Description: Öğretici makale odaklı, hızlı ve sade WordPress teması.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: christiantr-theme
*/

/* --------- Base --------- */
:root{
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #5c677d;
  --border: rgba(11,18,32,.12);
  --accent: #0b2a66;
  --accent-2: #0f3a8a;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(11,18,32,.08);
  --radius: 18px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}
a{ color:var(--accent); text-decoration:none; }
a:hover{ color:var(--accent-2); text-decoration:underline; }
img{ max-width:100%; height:auto; }

.container{ width:min(var(--max), calc(100% - 32px)); margin:0 auto; }
.sep{ border:0; border-top:1px solid var(--border); margin:22px 0; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  border:1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 20px rgba(11,42,102,.22);
}
.btn:hover{ background:var(--accent-2); text-decoration:none; }

.pill{
  display:inline-block;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  font-size:13px;
}

/* --------- Header --------- */
.site-header{
  position:sticky; top:0; z-index:40;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; gap:16px; }
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.2px;
}
.brand-mark{
  width:34px; height:34px; border-radius:12px;
  background:linear-gradient(135deg, var(--accent), #123a88);
  box-shadow: var(--shadow);
}
.nav{
  display:flex; align-items:center; gap:16px;
}
.nav a{ color:var(--text); font-weight:600; font-size:14px; }
.nav a:hover{ color:var(--accent); text-decoration:none; }
.header-actions{ display:flex; align-items:center; gap:10px; }
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
}
.icon-btn:hover{ border-color: rgba(11,42,102,.35); }

/* --------- Hero --------- */
.hero{
  padding:56px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}
.hero-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:28px;
}
.hero h1{ margin:0 0 10px; font-size: clamp(28px, 3vw, 44px); line-height:1.15; }
.hero p{ margin:0 0 16px; color:var(--muted); font-size:16px; }
.quick-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.quick{
  border:1px solid var(--border);
  border-radius: 16px;
  padding:14px;
  background: #fff;
}
.quick strong{ display:block; margin-bottom:4px; }
.quick span{ color:var(--muted); font-size:13px; }

/* --------- Cards --------- */
.section-title{ display:flex; align-items:end; justify-content:space-between; gap:12px; margin:30px 0 12px; }
.section-title h2{ margin:0; font-size:20px; }
.grid{
  display:grid;
  gap:14px;
}
.grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  padding:16px;
  box-shadow: 0 8px 18px rgba(11,18,32,.05);
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover{ transform: translateY(-2px); border-color: rgba(11,42,102,.35); }
.card h3{ margin:0 0 8px; font-size:16px; }
.card p{ margin:0; color:var(--muted); font-size:14px; }
.card .meta{ margin-top:10px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

/* --------- Newsletter --------- */
.ctr-newsletter{
  margin:28px 0;
  border:1px solid rgba(11,42,102,.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(11,42,102,.06), rgba(11,42,102,.02));
}
.ctr-newsletter__inner{ padding:18px; }
.ctr-newsletter h2{ margin:0 0 6px; font-size:18px; }
.ctr-newsletter p{ margin:0 0 12px; color:var(--muted); }
.ctr-newsletter__form{
  display:flex; gap:10px; flex-wrap:wrap;
}
.ctr-newsletter__form input{
  flex:1;
  min-width: 220px;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
}
.ctr-newsletter__form button{
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(11,42,102,.15);
  background: var(--accent);
  color:#fff;
  font-weight:700;
}
.ctr-newsletter small{ display:block; margin-top:8px; color:var(--muted); }

/* --------- Content --------- */
.page-title{ margin: 22px 0 10px; }
.post-content{ color: var(--text); }
.post-content p{ color: var(--text); }
.post-content h2, .post-content h3{ margin-top:22px; }

/* --------- Footer --------- */
.site-footer{
  margin-top: 44px;
  border-top:1px solid var(--border);
  padding: 26px 0 40px;
  color: var(--muted);
}
.footer-grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:14px;
}
.footer-grid h4{ margin:0 0 10px; color:var(--text); }
.footer-grid a{ color: var(--muted); }
.footer-grid a:hover{ color: var(--accent); }
.footer-bottom{
  margin-top: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  font-size: 13px;
}

/* --------- Cookie banner --------- */
.ctr-cookie{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
  display:none;
}
.ctr-cookie__row{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.ctr-cookie p{ margin:0; color:var(--muted); font-size: 13px; }
.ctr-cookie .btn{ padding:10px 12px; }

/* --------- Responsive --------- */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid.cols-3{ grid-template-columns: 1fr; }
  .grid.cols-2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .quick-grid{ grid-template-columns: 1fr; }
}
