/*
Theme Name: Ali Editorial
Theme URI: https://www.alienginuygur.com/
Author: Jamiryo
Description: Klinik Psk. Dr. Ali Engin Uygur icin hazirlanmis, hafif ve hizli editoryel tema. Bootstrap 5 tabanli, kagit/serif estetigi.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: ali-editorial
*/

:root {
  --paper: #fffdf8;
  --page: #f4f1ea;
  --ink: #1f2824;
  --muted: #65706b;
  --line: #ded6c8;
  --accent: #8d6b45;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.page-wrap {
  max-width: 1140px;
}

.cover,
.content-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(31, 40, 36, 0.08);
  border-radius: 2px;
}

.cover {
  min-height: 220px;
}

.section-no,
.contact-label,
.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, .serif {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.paragraph-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
}

.paragraph-flow p {
  break-inside: avoid;
  color: var(--muted);
  line-height: 1.78;
}

.content-list li {
  color: var(--muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(222, 214, 200, 0.72);
}

.content-list-balanced {
  columns: 2 320px;
  column-gap: 38px;
}

.content-list-balanced li {
  break-inside: avoid;
}

.section-title-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
}

.contact-box {
  background: #ebe4d7;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.contact-box a {
  color: var(--ink);
  text-decoration-color: rgba(141, 107, 69, 0.45);
  text-underline-offset: 4px;
}

/* ---- Additions (buttons, nav, cards, blog, footer) ---- */

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover { color: #6f5334; }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.6rem 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-ink:hover { background: #2f3b36; color: var(--paper); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.6rem 1.35rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-line:hover { border-color: var(--accent); background: rgba(141, 107, 69, 0.06); color: var(--ink); }

/* Site header / nav */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-nav .brand {
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
}
.site-nav a.nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a.nav-link:hover,
.site-nav a.nav-link.active { color: var(--accent); }
.site-nav ul.nav { list-style: none; padding-left: 0; }
.site-nav ul.nav li a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  display: inline-block;
}
.site-nav ul.nav li a:hover,
.site-nav ul.nav li.current-menu-item a,
.site-nav ul.nav li.current_page_item a { color: var(--accent); }

.lead-intro {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.08rem;
}

/* Work area cards */
.area-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.5rem 1.5rem;
  height: 100%;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.area-card:hover {
  box-shadow: 0 18px 46px rgba(31, 40, 36, 0.09);
  transform: translateY(-2px);
}
.area-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}
.area-card p, .area-card ul {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0;
}
.area-card ul { padding-left: 1.05rem; }

/* Blog */
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  height: 100%;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.post-card:hover { box-shadow: 0 18px 46px rgba(31, 40, 36, 0.09); transform: translateY(-2px); }
.post-card .p-inner { padding: 1.4rem 1.5rem; }
.post-card h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 0.6rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-meta { color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.post-excerpt { color: var(--muted); line-height: 1.7; font-size: 0.97rem; }

/* Single post reading layout */
.post-body { color: var(--ink); }
.post-body p { color: #333c37; line-height: 1.85; margin-bottom: 1.15rem; font-size: 1.06rem; }
.post-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.2rem 0 0.9rem; }
.post-body h3 { font-size: 1.3rem; margin: 1.8rem 0 0.7rem; }
.post-body .reading-wrap { max-width: 720px; }

.ig-icon {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}
.ig-icon:hover { color: var(--accent); }

.ig-grid .ig-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--page);
}
.ig-grid .ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, opacity 0.15s ease;
}
.ig-grid .ig-tile:hover img { transform: scale(1.05); opacity: 0.92; }
.ig-grid .ig-reel {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #fff;
  font-size: 0.7rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 767.98px) {
  .paragraph-flow { grid-template-columns: 1fr; }
  .section-title-row { grid-template-columns: 1fr; gap: 8px; }
}
