/*
Theme Name: Gece Hattı
Theme URI: https://mersin2night.com/
Author: Mersin2Night
Description: Mersin2Night için özgün, hızlı ve mobil öncelikli yayın teması.
Version: 1.0.0
Requires at least: 6.8
Requires PHP: 8.2
Text Domain: gecehatti
*/

:root {
  --ink: #ecf3ff;
  --muted: #a8b4cb;
  --night: #080b16;
  --night-2: #0f1528;
  --panel: #151d34;
  --line: rgba(255, 255, 255, 0.1);
  --coral: #ff6b6b;
  --amber: #ffba4a;
  --mint: #55d6be;
  --violet: #8d7bff;
  --radius: 22px;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
  --wrap: min(1160px, calc(100% - 36px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(141, 123, 255, 0.15), transparent 28rem),
    radial-gradient(circle at 94% 18%, rgba(255, 107, 107, 0.12), transparent 26rem),
    var(--night);
  font: 16px/1.72 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--amber); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }

.site-wrap { width: var(--wrap); margin-inline: auto; }
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 1000;
  padding: 10px 16px; color: #081018; background: var(--amber); border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 22, 0.86);
  backdrop-filter: blur(16px);
}
.header-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255, 186, 74, .45);
  border-radius: 13px 13px 13px 4px;
  color: var(--night); background: linear-gradient(140deg, var(--amber), var(--coral));
  font-weight: 900; letter-spacing: -.08em;
  box-shadow: 0 8px 28px rgba(255, 107, 107, .24);
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-name { font-size: 1.08rem; font-weight: 850; letter-spacing: .01em; }
.brand-note { margin-top: 5px; color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

.primary-nav { justify-self: center; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: block; padding: 9px 12px; border-radius: 10px; color: #d4dced; font-size: .92rem; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #fff; background: rgba(255, 255, 255, .07); }
.age-chip { padding: 6px 10px; border: 1px solid rgba(255, 107, 107, .5); border-radius: 999px; color: #ffd3d3; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }

.hero { position: relative; overflow: hidden; padding: 82px 0 56px; }
.hero::after {
  content: ""; position: absolute; right: -12vw; top: 32px; width: 44vw; height: 44vw;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%;
  box-shadow: inset 0 0 0 7vw rgba(141, 123, 255, .025), inset 0 0 0 14vw rgba(255, 107, 107, .025);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: end; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--amber); font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: linear-gradient(90deg, var(--coral), var(--amber)); }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1 { max-width: 850px; font-size: clamp(2.55rem, 7.3vw, 6.4rem); letter-spacing: -.055em; }
.hero h1 span { color: transparent; background: linear-gradient(90deg, var(--coral), var(--amber)); background-clip: text; }
.hero-lead { max-width: 730px; margin: 28px 0 0; color: #c3cde0; font-size: clamp(1.02rem, 1.7vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border: 1px solid var(--line); border-radius: 13px; color: #fff; background: rgba(255, 255, 255, .04); font-weight: 750; text-decoration: none; }
.button:hover { color: #fff; border-color: rgba(255, 186, 74, .55); background: rgba(255, 186, 74, .09); }
.button-primary { color: #171019; border: 0; background: linear-gradient(135deg, var(--amber), var(--coral)); box-shadow: 0 12px 32px rgba(255, 107, 107, .2); }
.button-primary:hover { color: #080b16; filter: brightness(1.07); }

.signal-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(21, 29, 52, .95), rgba(15, 21, 40, .72)); box-shadow: var(--shadow); }
.signal-card > span { color: var(--mint); font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.signal-card h2 { margin-top: 10px; font-size: 1.42rem; }
.signal-list { display: grid; gap: 13px; padding: 0; margin: 22px 0 0; list-style: none; }
.signal-list li { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start; color: #c8d1e2; font-size: .92rem; }
.signal-list b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--amber); background: rgba(255, 186, 74, .1); font-size: .76rem; }

.section { padding: 68px 0; }
.section-tight { padding-top: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.section-kicker { margin: 0 0 8px; color: var(--coral); font-size: .74rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.section-title { font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -.035em; }
.section-intro { max-width: 650px; margin: 12px 0 0; color: var(--muted); }
.text-link { color: var(--amber); font-weight: 750; white-space: nowrap; }

.district-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.district-card { position: relative; min-height: 190px; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; }
.district-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -42px; bottom: -50px; border-radius: 50%; background: var(--tone, var(--violet)); opacity: .24; filter: blur(4px); transition: transform .25s ease; }
.district-card:hover { color: #fff; border-color: color-mix(in srgb, var(--tone, var(--violet)), #fff 15%); transform: translateY(-2px); }
.district-card:hover::after { transform: scale(1.25); }
.district-card small { display: block; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.district-card h3 { max-width: 82%; margin-top: 18px; font-size: 1.45rem; }
.district-card p { max-width: 82%; margin: 10px 0 0; color: #b9c3d6; font-size: .88rem; }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.post-card { display: grid; grid-template-columns: 112px 1fr; gap: 21px; min-height: 190px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21, 29, 52, .66); }
.post-card:hover { border-color: rgba(255, 186, 74, .35); }
.post-number { display: grid; place-items: center; min-height: 145px; border-radius: 16px; color: #111320; background: linear-gradient(155deg, var(--card-a, var(--mint)), var(--card-b, var(--violet))); font-size: 2.2rem; font-weight: 950; letter-spacing: -.06em; }
.post-card-body { align-self: center; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-bottom: 9px; color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.post-card h3 { font-size: 1.25rem; }
.post-card h3 a { text-decoration: none; }
.post-card p { margin: 10px 0 0; color: #acb8ce; font-size: .9rem; }

.principles { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: stretch; }
.principle-intro, .principle-list { padding: clamp(24px, 4vw, 42px); border-radius: var(--radius); }
.principle-intro { background: linear-gradient(145deg, var(--coral), #b44276); color: #170b17; }
.principle-intro h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.principle-intro p { margin: 16px 0 0; font-weight: 600; }
.principle-list { border: 1px solid var(--line); background: rgba(21, 29, 52, .72); }
.principle-item { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.principle-item:last-child { border-bottom: 0; }
.principle-item strong { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--night); background: var(--amber); }
.principle-item h3 { font-size: 1.05rem; }
.principle-item p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }

.content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 44px; padding: 58px 0 78px; }
.content-main { min-width: 0; }
.article-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-head h1 { max-width: 920px; font-size: clamp(2.25rem, 5.6vw, 4.7rem); }
.article-deck { max-width: 790px; margin: 20px 0 0; color: #bdc8dc; font-size: 1.1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; color: var(--muted); font-size: .84rem; }
.prose { color: #d3dbea; font-size: 1.03rem; }
.prose > * { max-width: 790px; }
.prose > p:first-child { color: #f3f6fc; font-size: 1.16rem; }
.prose h2 { margin-top: 2.2em; color: #fff; font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -.025em; }
.prose h3 { margin-top: 1.8em; color: #fff; font-size: 1.3rem; }
.prose p, .prose ul, .prose ol, .prose table { margin-top: 1.15em; margin-bottom: 1.15em; }
.prose li + li { margin-top: .55em; }
.prose a { color: var(--amber); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: #fff; background: rgba(141, 123, 255, .12); }
.prose blockquote { margin: 1.6em 0; padding: 18px 20px; border-left: 3px solid var(--coral); border-radius: 0 14px 14px 0; background: rgba(255, 107, 107, .07); }

.side-panel { position: sticky; top: 24px; align-self: start; display: grid; gap: 15px; }
.side-box { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(21, 29, 52, .72); }
.side-box h2 { font-size: 1rem; }
.side-box p, .side-box li { color: var(--muted); font-size: .86rem; }
.side-box ul { padding-left: 18px; margin-bottom: 0; }
.side-box a { color: #dce5f4; }

.archive-head { padding: 62px 0 26px; }
.archive-head h1 { font-size: clamp(2.25rem, 6vw, 4.8rem); }
.archive-description { max-width: 760px; color: var(--muted); }
.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 39px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; text-align: center; text-decoration: none; }
.page-numbers.current { color: var(--night); border-color: var(--amber); background: var(--amber); }
.empty-state { padding: 38px; border: 1px dashed rgba(255,255,255,.2); border-radius: var(--radius); color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: #070a13; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr; gap: 40px; padding: 48px 0 34px; }
.footer-title { margin-bottom: 10px; font-size: 1.12rem; }
.footer-copy { max-width: 430px; margin: 0; color: var(--muted); font-size: .9rem; }
.footer-menu { padding: 0; margin: 0; list-style: none; }
.footer-menu li + li { margin-top: 7px; }
.footer-menu a { color: #c5cede; font-size: .9rem; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: #7f8ba2; font-size: .8rem; }

@media (max-width: 920px) {
  .header-row { grid-template-columns: auto auto; justify-content: space-between; }
  .primary-nav { grid-column: 1 / -1; width: 100%; padding-bottom: 12px; overflow-x: auto; }
  .primary-nav ul { justify-content: flex-start; width: max-content; }
  .age-chip { grid-column: 2; grid-row: 1; }
  .hero-grid, .principles { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-grid { gap: 34px; }
  .hero::after { width: 76vw; height: 76vw; right: -28vw; }
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .content-shell { grid-template-columns: 1fr; }
  .side-panel { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  :root { --wrap: min(100% - 24px, 1160px); }
  .brand-note { display: none; }
  .header-row { min-height: 66px; gap: 14px; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { padding: 44px 0 34px; }
  .hero h1 { font-size: clamp(2.55rem, 15vw, 4.2rem); }
  .hero-actions { display: grid; }
  .section { padding: 48px 0; }
  .section-head { align-items: start; flex-direction: column; gap: 12px; }
  .district-grid, .post-grid, .side-panel, .footer-grid { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 78px 1fr; gap: 15px; min-height: 0; }
  .post-number { min-height: 116px; font-size: 1.65rem; }
  .footer-grid { gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .content-shell { padding-top: 42px; }
  .article-head h1 { font-size: 2.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
