/* ═══════════════════════════════════════════════════════════════════════════
   site.css — Ferda Canözer Paksoy
   Shared design system for all sub-pages (blog, events, pages).
   Consolidated from design-source/index.html + detail views.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── RESET & TOKENS ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #0F1419;
  --paper: #F5F0E8;
  --paper-alt: #EDE8DE;
  --gold: #C9A84C;
  --gold-dim: rgba(201,168,76,0.12);
  --white: #FFFFFF;
  --muted: #6B6660;
  --border: rgba(15,20,25,0.1);
  --nav-h: 72px;
  --max: 1280px;
  --pad: 80px;
}
html { scroll-behavior: smooth; }
body { 
  font-family: 'DM Sans', sans-serif; 
  background: var(--paper); 
  color: var(--ink); 
  line-height: 1.7; 
  font-size: 16px; 
}

/* ── UTILS ── */
.section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block; }
.section-heading { font-family: 'Cormorant Garamond', serif; font-size: clamp(30px, 3.2vw, 48px); font-weight: 500; line-height: 1.15; color: var(--ink); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

/* ── NAV ── */
nav, #main-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  height: var(--nav-h);
  background: rgba(245,240,232,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-img { height: 40px; width: auto; }
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600; color: var(--ink);
  letter-spacing: 0.02em; text-decoration: none;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-lang { display: flex; gap: 4px; margin-left: 24px; }
.nav-lang a {
  background: none; border: 1px solid var(--border); border-radius: 2px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--muted); padding: 4px 10px; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.nav-lang a.active, .nav-lang a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── PAGE SHELL ── */
.page-shell {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--white);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
}
.page-hero-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px; display: flex; align-items: center; gap: 14px;
}
.page-hero-eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--gold); display: block;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500; line-height: 1.1;
  color: var(--ink); margin-bottom: 16px;
}
.page-hero-meta {
  font-size: 13px; color: var(--muted); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.page-hero-meta .dot { opacity: 0.4; }

/* ── BLOG DETAIL PAGE ── */
.post-detail-page {
  background: var(--white);
}
.post-detail-page .page-hero {
  background: #F5F0E8;
}
.post-detail-page .post-body {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.post-detail-page .post-content {
  max-width: 760px;
}
.post-detail-page .post-content h2,
.post-detail-page .post-content h3,
.post-detail-page .post-content p {
  text-align: left;
}
.blog-index-page .page-hero {
  background: var(--paper);
}
.blog-index-content {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.previous-posts-box .previous-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.previous-post-link {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.previous-post-link:hover {
  color: var(--gold);
}
.previous-post-empty {
  font-size: 14px;
  color: var(--muted);
}

/* ── POST / DETAIL BODY ── */
.post-body, .event-body {
  max-width: var(--max); margin: 0 auto;
  padding: 64px var(--pad);
  display: grid; grid-template-columns: 1fr 320px; gap: 80px; align-items: start;
}
.post-content, .event-content, .page-content {
  font-size: 17px; line-height: 1.85; color: var(--muted);
}
.post-content h2, .event-content h2, .page-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 500; color: var(--ink);
  margin: 48px 0 16px; line-height: 1.2;
}
.post-content h3, .event-content h3, .page-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500; color: var(--ink);
  margin: 36px 0 12px; line-height: 1.3;
}
.post-content p, .event-content p, .page-content p { margin-bottom: 20px; }
.post-content p:first-child, .event-content p:first-child, .page-content p:first-child { color: var(--ink); }
.post-content strong, .event-content strong, .page-content strong { color: var(--ink); font-weight: 500; }
.post-content a, .event-content a, .page-content a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); transition: border-color 0.2s; }
.post-content a:hover, .event-content a:hover, .page-content a:hover { border-color: var(--gold); }
.post-content blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-style: italic;
  color: var(--ink); line-height: 1.5;
  margin: 36px 0; padding-left: 20px;
  border-left: 2px solid var(--gold);
}
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content li { margin-bottom: 6px; }
.post-content img { width: 100%; height: auto; display: block; margin: 32px 0; border: 1px solid var(--border); }
.post-cover { width: 100%; height: auto; max-height: none; object-fit: contain; display: block; border: 1px solid var(--border); margin: 0 0 28px; }

/* ── SIDEBAR ── */
.sidebar-box { border: 1px solid var(--border); background: var(--white); padding: 28px; margin-bottom: 24px; }
.sidebar-box-title {
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.sidebar-back:hover { color: var(--gold); }

/* ── ARTICLE CARDS (Index & Home) ── */
.articles-section { max-width: var(--max); margin: 0 auto; padding: 64px var(--pad); }
.articles-grid, .insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.article-card { background: var(--paper); overflow: hidden; transition: transform 0.25s; border: 1px solid var(--border); }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.article-img-link { display: block; text-decoration: none; color: inherit; }
.article-img {
  width: 100%; height: 160px;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
}
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-img-letter { font-family: 'Cormorant Garamond', serif; font-size: 56px; font-style: italic; color: rgba(15,20,25,0.07); }
.article-body { padding: 28px; }
.article-meta { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.article-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.35; margin-bottom: 12px; text-decoration: none; display: block; }
.article-title:hover { color: var(--gold); }
.article-excerpt { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.article-link { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); text-decoration: none; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--ink); color: var(--paper);
  padding: 14px 32px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  text-decoration: none; border: 1px solid var(--ink); transition: all 0.25s;
}
.btn-primary:hover { background: var(--gold); border-color: var(--gold); }
.btn-secondary {
  font-size: 13px; color: var(--muted); text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: color 0.2s;
}
.btn-secondary::after { content: '→'; }
.btn-secondary:hover { color: var(--ink); }

/* ── FOOTER ── */
footer { background: var(--paper); border-top: 1px solid var(--border); padding-top: 80px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 60px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px;
}
.footer-logo-img { height: 44px; margin-bottom: 24px; display: block; }
.footer-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600;
  color: var(--ink); letter-spacing: 0.02em;
  display: block; margin-bottom: 12px; text-decoration: none;
}
.footer-tagline { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 320px; }
.footer-col-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 24px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-email { display: block; color: var(--ink); font-weight: 500; font-size: 16px; text-decoration: none; margin-bottom: 24px; }
.footer-email:hover { color: var(--gold); }
.footer-socials { display: flex; gap: 12px; }
.footer-social {
  width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none; font-size: 12px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--border); padding: 30px var(--pad); text-align: center; }
.footer-copy { font-size: 13px; color: var(--muted); opacity: 0.8; }

/* ── SCROLL TOP ── */
.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #C0392B;
  background: #C0392B;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 140;
}
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--paper);
  color: #C0392B;
}

/* ── CTA BLOCKS ── */
.cta-banner { background: #C0392B; padding: 56px var(--pad); }
.cta-banner-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: baseline; justify-content: space-between; gap: 40px; }
.cta-banner--post-align .cta-banner-inner { max-width: calc(var(--max) - (2 * var(--pad))); }
.cta-banner-text p { font-family: 'Cormorant Garamond', serif; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; color: var(--paper); line-height: 1.3; }
.cta-banner-text small { display: block; font-size: 14px; color: rgba(245,240,232,0.5); margin-top: 8px; }
.cta-banner a { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); text-decoration: none; border: 1px solid var(--white); padding: 12px 28px; white-space: nowrap; transition: all 0.2s; flex-shrink: 0; }
.cta-banner a:hover { background: var(--white); color: #C0392B; }
.cta-inline { background: #C0392B; padding: 24px; }
.cta-inline p { font-size: 14px; color: rgba(245,240,232,0.6); margin-bottom: 14px; line-height: 1.6; }
.cta-inline a { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root { --pad: 40px; }
  .post-body, .event-body { grid-template-columns: 1fr; gap: 48px; }
  .articles-grid, .insights-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --pad: 24px; }
  .nav-links { display: none; }
  .articles-grid, .insights-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
}
