/* ============================================================
   EvimABD — makaleler/style.css
   Completely independent from root style.css
   Fraunces + Plus Jakarta Sans · Warm Modern
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #faf8f5;
  --white:    #ffffff;
  --ink:      #1c1c1e;
  --red:      #b5341c;
  --sand:     #e8ddd0;
  --warm:     #f0ebe3;
  --muted:    #7a6f66;
  --border:   #e0d8ce;
  --radius:   20px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --max-width-prose: 1040px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ------------------------------------------------------------
   CONTAINER
   ------------------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 56px;
}
.container--narrow {
  max-width: var(--max-width-prose);
  margin: 0 auto;
  padding: 0 32px;
}

/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 56px;
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: 'Fraunces', serif;
  font-size: 24px; font-weight: 700;
  text-decoration: none; color: var(--ink);
}
.nav__logo em { font-style: italic; color: var(--red); }

.nav__links {
  list-style: none;
  display: flex; gap: 36px; align-items: center;
}
.nav__links a {
  text-decoration: none; color: var(--muted);
  font-size: 14px; font-weight: 500; transition: color var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }

/* Dropdown */
.nav__item { position: relative; list-style: none; }

.nav__trigger {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex; align-items: center; gap: 5px;
  padding: 0; transition: color var(--transition);
}
.nav__trigger:hover, .nav__trigger.active { color: var(--ink); }

.nav__arrow {
  font-size: 9px; line-height: 1;
  transition: transform var(--transition); display: inline-block;
}
.nav__item--open .nav__arrow { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 18px); left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px; min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}
.nav__item--open .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a {
  display: block; padding: 9px 14px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  border-radius: 8px; transition: all 0.15s;
}
.nav__dropdown a:hover { background: var(--warm); color: var(--ink); }
.nav__dropdown a.active { color: var(--red); font-weight: 600; }

.nav__cta {
  background: var(--ink); color: var(--white);
  padding: 11px 24px; font-size: 13px; font-weight: 600;
  text-decoration: none; border-radius: 100px;
  transition: background var(--transition);
}
.nav__cta:hover { background: var(--red); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all 0.3s;
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed; top: 65px; left: 0; right: 0; z-index: 99;
  background: rgba(250,248,245,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 24px 56px 32px;
  flex-direction: column; gap: 0;
  max-height: calc(100vh - 65px); overflow-y: auto;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  display: block; text-decoration: none; color: var(--ink);
  font-size: 15px; font-weight: 500;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--red); }
.nav__mobile-group { padding: 12px 0 0; border-bottom: 1px solid var(--border); }
.nav__mobile-label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.nav__mobile-group a {
  font-size: 14px; color: var(--muted); padding: 10px 0; border-bottom: none;
}
.nav__mobile-group a:last-child { padding-bottom: 14px; }

/* ------------------------------------------------------------
   BLOG HERO
   ------------------------------------------------------------ */
.blog-hero {
  padding: 140px 56px 72px;
  border-bottom: 1px solid var(--border);
}
.blog-hero__label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); font-weight: 600; margin-bottom: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.blog-hero__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900; letter-spacing: -2px; line-height: 1.05;
  margin-bottom: 16px;
}
.blog-hero__title em { font-style: italic; color: var(--red); }
.blog-hero__desc {
  font-size: 18px; color: var(--muted);
  line-height: 1.7; font-weight: 300; max-width: 580px;
}

/* ------------------------------------------------------------
   FILTER BAR
   ------------------------------------------------------------ */
.filter-bar {
  padding: 28px 56px;
  display: flex; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.filter-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 100px;
  border: 1.5px solid var(--border);
  background: none; color: var(--muted);
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}

/* ------------------------------------------------------------
   POST GRID
   ------------------------------------------------------------ */
.post-grid-section { padding: 56px 56px 100px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.post-card__body {
  padding: 32px;
  display: flex; flex-direction: column; flex: 1;
}

.post-card__meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.post-card__pillar {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--red);
}
.post-card__date {
  font-size: 12px; color: var(--muted);
}
.post-card__date::before { content: '·'; margin-right: 10px; color: var(--border); }

.post-card__title {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.3px;
  margin-bottom: 12px; color: var(--ink);
}

.post-card__excerpt {
  font-size: 15px; color: var(--muted);
  line-height: 1.7; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__read {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px; font-weight: 700; color: var(--red);
}

/* Empty state */
.posts-empty {
  text-align: center; padding: 80px 0; color: var(--muted);
  font-size: 16px; grid-column: 1/-1;
}

/* ------------------------------------------------------------
   POST HERO
   ------------------------------------------------------------ */
.post-hero { padding: 120px 0 0; }

.post-hero__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; margin-bottom: 28px;
  transition: color var(--transition);
}
.post-hero__back:hover { color: var(--red); }

.post-hero__meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.post-hero__pillar {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red);
}
.post-hero__date { font-size: 13px; color: var(--muted); }
.post-hero__date::before { content: '·'; margin-right: 12px; color: var(--border); }

.post-hero__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900; letter-spacing: -1.5px; line-height: 1.05;
  margin-bottom: 28px; color: var(--ink);
}

.post-hero__image {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 520px;
}
.post-hero__image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ------------------------------------------------------------
   POST CONTENT
   ------------------------------------------------------------ */
.post-content {
  padding: 56px 0 100px;
}

.post-prose {
  max-width: var(--max-width-prose);
  margin: 0 auto;
  padding: 0 32px;
}

.post-prose > p:first-child {
  font-size: 20px; line-height: 1.75; color: var(--muted);
  font-weight: 300; margin-bottom: 32px;
}

.post-prose h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 700; letter-spacing: -0.5px;
  line-height: 1.2; margin: 52px 0 16px; color: var(--ink);
}
.post-prose h3 {
  font-family: 'Fraunces', serif;
  font-size: 21px; font-weight: 700;
  margin: 36px 0 12px; color: var(--ink);
}
.post-prose h4 {
  font-size: 16px; font-weight: 700;
  margin: 24px 0 8px; color: var(--ink);
}

.post-prose p {
  font-size: 17px; line-height: 1.85;
  color: #3d3832; margin-bottom: 20px;
}
.post-prose p strong { color: var(--ink); font-weight: 700; }
.post-prose p em { font-style: italic; color: var(--muted); }

.post-prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.post-prose a:hover { text-decoration: none; }

.post-prose ul, .post-prose ol {
  margin: 20px 0 24px 24px; font-size: 17px;
  line-height: 1.8; color: #3d3832;
}
.post-prose li { margin-bottom: 8px; }

.post-prose blockquote {
  border-left: 3px solid var(--red);
  padding: 16px 24px; margin: 32px 0;
  background: var(--warm); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18px; font-style: italic; color: var(--muted); line-height: 1.7;
}

.post-prose hr {
  border: none; border-top: 1px solid var(--border); margin: 48px 0;
}

/* Tables */
.post-prose .table-wrap { overflow-x: auto; margin: 28px 0 32px; }
.post-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-prose th {
  background: var(--ink); color: var(--white);
  padding: 11px 16px; text-align: left;
  font-size: 13px; font-weight: 600;
}
.post-prose th:first-child { border-radius: 8px 0 0 0; }
.post-prose th:last-child { border-radius: 0 8px 0 0; }
.post-prose td {
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  color: #3d3832;
}
.post-prose tr:last-child td { border-bottom: none; }
.post-prose tr:nth-child(even) td { background: var(--warm); }

/* FAQ block */
.post-faq { margin: 48px 0; }
.post-faq > h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 700; margin-bottom: 24px;
}
.faq-item {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.faq-question {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin-bottom: 10px !important;
}
.faq-answer {
  font-size: 16px; line-height: 1.75; color: var(--muted);
  margin: 0 !important;
}

/* CTA block */
.post-cta {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 48px; margin: 56px 0 0;
  text-align: center;
}
.post-prose .post-cta__heading {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--white) !important; margin-bottom: 12px; margin-top: 0;
}
.post-prose .post-cta__text {
  font-size: 16px; color: rgba(255,255,255,0.65) !important;
  margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto;
}
.post-cta__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  text-decoration: none; border-radius: 100px;
  padding: 14px 32px; transition: all var(--transition);
  cursor: pointer; border: none;
}
.btn--primary { background: var(--red); color: var(--white) !important; }
.btn--primary:hover { background: #9a2a14; }
.btn--outline {
  background: none; color: var(--white) !important;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline:hover { border-color: var(--white); }
/* Override post-prose link color for buttons */
.post-prose .btn { color: var(--white); text-decoration: none; }
.post-prose .btn:hover { text-decoration: none; }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding: 0 56px 48px;
}
.footer__brand-name {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 700; margin-bottom: 10px;
}
.footer__brand-name em { font-style: italic; color: var(--red); }
.footer__brand-desc { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 280px; }
.footer__col h4 {
  font-family: 'Fraunces', serif;
  font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--ink);
}
.footer__col a {
  display: block; font-size: 13px; color: var(--muted);
  text-decoration: none; margin-bottom: 8px; transition: color var(--transition);
}
.footer__col a:hover { color: var(--red); }
.footer__legal {
  border-top: 1px solid var(--border);
  padding: 20px 56px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
}
.footer__legal a { color: var(--muted); text-decoration: none; transition: color var(--transition); }
.footer__legal a:hover { color: var(--ink); }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { padding: 24px 24px 32px; }

  .container { padding: 0 24px; }
  .container--narrow { padding: 0 24px; }

  .blog-hero { padding: 108px 24px 48px; }
  .filter-bar { padding: 20px 24px; }
  .post-grid-section { padding: 36px 24px 72px; }
  .post-grid { grid-template-columns: 1fr; }

  .post-hero { padding: 100px 0 0; }
  .post-prose { padding: 0 24px; }

  .footer__inner { grid-template-columns: 1fr; padding: 0 24px 40px; gap: 32px; }
  .footer__legal { padding: 16px 24px; flex-direction: column; gap: 8px; text-align: center; }

  .blog-hero__title { font-size: 32px; }
  .post-hero__title { font-size: 28px; }
  .post-cta { padding: 32px 24px; }
  .post-cta__actions { flex-direction: column; align-items: center; }
}
