/*
Theme Name: Civil Night
Theme URI: https://ilkercivil.com
Author: İlker Civil
Description: Gece kütüphanesi kimliğiyle özel tasarım — lacivert + altın, 3D parçacık efektleri, akıcı kaydırma. Eklenti bağımlılığı yoktur.
Version: 1.1.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: civil-night
*/

:root {
  --bg: #0a1628;
  --bg-soft: #0d1b31;
  --card: #11223c;
  --card-2: #16294a;
  --line: #21395e;
  --text: #f2f5fa;
  --text-2: #aebbcf;
  --text-3: #8598b5;
  --gold: #d9a441;
  --gold-soft: rgba(217, 164, 65, 0.16);
  --blue: #5ba3f5;
  --teal: #7fd6bd;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(217, 164, 65, 0.35); }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

.container {
  width: min(1140px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

/* ————— 3D arka plan ————— */
#night-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#night-canvas canvas { display: block; width: 100%; height: 100%; }

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(85% 75% at 50% 40%, transparent 0%, rgba(10, 22, 40, 0.6) 100%);
}

.site-wrap { position: relative; z-index: 2; }

/* ————— Header ————— */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 0.9rem 0;
  background: rgba(10, 22, 40, 0.4);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 22, 40, 0.85);
  border-bottom-color: var(--line);
  padding: 0.55rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover { color: var(--text); }

.site-header .custom-logo,
.site-header .custom-logo-link img {
  height: 44px !important;
  width: auto !important;
  max-height: 44px;
}

.brand-name {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-name:hover { color: var(--text); }

.brand-mark:hover { color: var(--gold); }

.brand-mark {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.brand { white-space: nowrap; }

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.45rem 0.7rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ————— Ana sayfa: 3 kart hero ————— */
.gateway {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem 0 4rem;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.gate-card {
  position: relative;
  display: block;
  padding: 3.2rem 2rem 2.6rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(22, 41, 74, 0.9) 0%, rgba(17, 34, 60, 0.92) 100%);
  border: 1px solid var(--line);
  color: var(--text);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(3, 8, 18, 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

button.gate-card {
  font-family: inherit;
  width: 100%;
  font-size: inherit;
}

.gate-card::before {
  content: "";
  position: absolute;
  top: -70px; right: -50px;
  width: 210px; height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(91, 163, 245, 0.2)) 0%, transparent 70%);
  pointer-events: none;
}

.gate-card:hover {
  transform: translateY(-10px);
  border-color: var(--edge, var(--blue));
  box-shadow: 0 34px 80px rgba(3, 8, 18, 0.65);
  color: var(--text);
}

.gate-card--yazilim  { --glow: rgba(91, 163, 245, 0.22); --edge: rgba(91, 163, 245, 0.6); }
.gate-card--danis    { --glow: rgba(217, 164, 65, 0.22); --edge: rgba(217, 164, 65, 0.65); }
.gate-card--blog     { --glow: rgba(127, 214, 189, 0.2);  --edge: rgba(127, 214, 189, 0.55); }

.gate-icon {
  width: 74px; height: 74px;
  margin: 0 auto 1.4rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.gate-icon svg { width: 34px; height: 34px; }

.gate-card--yazilim .gate-icon svg { stroke: var(--blue); }
.gate-card--danis .gate-icon svg   { stroke: var(--gold); }
.gate-card--blog .gate-icon svg    { stroke: var(--teal); }

.gate-title {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gate-desc {
  margin: 0 0 1.4rem;
  color: var(--text-3);
  font-size: 0.97rem;
  line-height: 1.65;
}

.gate-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.gate-card--yazilim .gate-cta { color: var(--blue); }
.gate-card--danis .gate-cta   { color: var(--gold); }
.gate-card--blog .gate-cta    { color: var(--teal); }

.gate-cta::after { content: "→"; transition: transform 0.25s ease; }
.gate-card:hover .gate-cta::after { transform: translateX(5px); }

.scroll-hint {
  margin: 3.5rem auto 0;
  width: 25px; height: 40px;
  border: 2px solid rgba(242, 245, 250, 0.25);
  border-radius: 999px;
  position: relative;
}

.scroll-hint::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: rgba(242, 245, 250, 0.6);
  animation: sdot 2s infinite;
}

@keyframes sdot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ————— Son yazılar ————— */
.recent {
  padding: 4.5rem 0 5.5rem;
}

.section-kicker {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(217, 164, 65, 0.35);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title {
  margin: 1rem 0 2.2rem;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

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

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 164, 65, 0.45);
  color: var(--text);
}

.post-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--card-2);
  display: block;
  overflow: hidden;
}

.post-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.post-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.post-card time { color: var(--gold); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }

.post-card h3 { margin: 0; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; }

.post-card p { margin: 0; color: var(--text-3); font-size: 0.9rem; }

.more-link {
  display: inline-flex;
  margin-top: 2.4rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.more-link:hover { border-color: var(--gold); color: var(--gold); }

/* ————— Modal: danışmanlık formu ————— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 10, 20, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.modal-backdrop.is-open { display: flex; }

.modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.modal h3 { margin: 0 0 0.4rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }

.modal .modal-sub { margin: 0 0 1.6rem; color: var(--text-3); font-size: 0.95rem; }

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}

.modal-close:hover { color: var(--text); }

.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.topic-chip { position: relative; }

.topic-chip input { position: absolute; opacity: 0; pointer-events: none; }

.topic-chip label {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topic-chip input:checked + label {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
}

.form-field { margin-bottom: 1rem; }

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.15);
}

.btn-gold {
  display: inline-block;
  width: 100%;
  padding: 0.95rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #e6b658 0%, #c8912e 100%);
  color: #1a1204;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(217, 164, 65, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); }

.form-notice {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
}

.form-notice--ok { background: rgba(127, 214, 189, 0.12); border: 1px solid rgba(127, 214, 189, 0.4); color: var(--teal); }
.form-notice--err { background: rgba(224, 92, 92, 0.12); border: 1px solid rgba(224, 92, 92, 0.4); color: #eb9c9c; }

.hp-field { position: absolute; left: -9999px; }

/* ————— Blog listesi / arşiv ————— */
.page-shell { padding: 8.5rem 0 5rem; min-height: 70vh; }

.archive-head { margin-bottom: 2.5rem; }

.archive-head h1 {
  margin: 0.8rem 0 0.4rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.archive-head p { color: var(--text-3); margin: 0; }

.pagination { margin-top: 3rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.pagination .page-numbers {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9rem;
}

.pagination .page-numbers.current { border-color: var(--gold); color: var(--gold); font-weight: 700; }

/* ————— Tek yazı ————— */
.article-shell { width: min(760px, 92vw); margin: 0 auto; padding: 8.5rem 0 5rem; }

.article-head time { color: var(--gold); font-weight: 600; font-size: 0.9rem; }

.article-head h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.article-meta { color: var(--text-3); font-size: 0.9rem; margin-bottom: 2.2rem; }

.article-content { font-size: 1.05rem; color: #dbe3ee; }

.article-content h2, .article-content h3 { letter-spacing: -0.025em; color: var(--text); margin-top: 2.2rem; }

.article-content img { border-radius: 14px; }

.article-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.article-content blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.4rem;
  border-left: 3px solid var(--gold);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}

.article-content table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

.article-content th, .article-content td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; }

.article-content pre {
  background: #0d1b31;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.88rem;
}

/* ————— İletişim sayfası ————— */
.contact-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.4rem;
  align-items: start;
}

.contact-side {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.5rem 1.6rem;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid rgba(217, 164, 65, 0.35);
  margin-bottom: 0.9rem;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
}

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-card p {
  margin: 0;
  color: var(--text-3);
  font-size: 0.93rem;
  line-height: 1.6;
}

.contact-card a { color: var(--gold); }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form-shell .btn-gold { width: auto; padding-left: 2.4rem; padding-right: 2.4rem; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ————— Soru & Cevap (AnsPress gece stili) ————— */
.qa-shell { color: var(--text-2); }

.anspress { color: var(--text-2); }

.anspress a { color: var(--blue); }
.anspress a:hover { color: var(--gold); }

/* Üst bar: soru sor + arama + filtreler */
.anspress .ap-list-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 1.2rem;
}

.anspress .ap-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.anspress .ap-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

.anspress .ap-btn-ask,
.anspress .ap-btn-ask:hover {
  background: linear-gradient(135deg, #e6b658 0%, #c8912e 100%);
  border: none;
  color: #1a1204;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(217, 164, 65, 0.28);
}

.anspress .ap-btn-ask:hover { transform: translateY(-1px); filter: brightness(1.05); }

.anspress .ap-search-form { flex: 1; min-width: 220px; }

.anspress .ap-search-inner { display: flex; gap: 0.5rem; }

.anspress .ap-form-input,
.anspress input[type="text"],
.anspress input[type="email"],
.anspress input[type="url"],
.anspress textarea,
.anspress select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 0.6rem 1rem;
  font-family: inherit;
}

.anspress .ap-form-input:focus,
.anspress input:focus,
.anspress textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.14);
}

.anspress .ap-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.anspress .ap-filter-toggle,
.anspress .ap-dropdown-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-3);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.anspress .ap-dropdown-menu {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.anspress .ap-dropdown-menu a { color: var(--text-2); }
.anspress .ap-dropdown-menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

/* Soru listesi kartları */
.anspress .ap-questions { border: none; }

.anspress .ap-questions-item {
  display: block;
  background: var(--card);
  border: 1px solid var(--line) !important;
  border-radius: 18px;
  margin-bottom: 0.9rem;
  padding: 1.2rem 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.anspress .ap-questions-item:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 164, 65, 0.45) !important;
}

.anspress .ap-questions-inner { display: flex; gap: 1rem; align-items: flex-start; border: none; }

.anspress .ap-avatar img {
  border-radius: 12px;
  border: 1px solid var(--line);
}

.anspress .ap-questions-title { margin: 0 0 0.35rem; line-height: 1.4; }

.anspress .ap-questions-title a,
.anspress .ap-questions-hyperlink {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.anspress .ap-questions-title a:hover { color: var(--gold); }

/* Oy / cevap sayaçları → rozet */
.anspress .ap-list-counts { display: flex; gap: 0.5rem; }

.anspress .ap-questions-count {
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.3;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
}

.anspress .ap-questions-count span { display: block; font-weight: 800; font-size: 1rem; color: var(--text); }

.anspress .ap-questions-vcount { border-color: rgba(91, 163, 245, 0.35); }
.anspress .ap-questions-vcount span { color: var(--blue); }

.anspress .ap-questions-acount { border-color: rgba(127, 214, 189, 0.35); }
.anspress .ap-questions-acount span { color: var(--teal); }

.anspress .ap-display-question-meta,
.anspress .ap-display-meta-item {
  color: var(--text-3);
  font-size: 0.82rem;
}

.anspress .ap-post-status {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(217, 164, 65, 0.3);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tek soru sayfası + cevaplar + yorumlar */
.anspress .ap-q,
.anspress .ap-answer,
.anspress .ap-widget,
.anspress .ap-question-lr {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1rem;
}

.anspress .ap-answer { background: var(--bg-soft); }

.anspress .ap-cell { background: transparent; }

.anspress .ap-content { color: var(--text-2); }

.anspress .ap-comment {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
}

.anspress .ap-form-group label { color: var(--text-2); font-weight: 500; }

.anspress .ap-editor,
.anspress .wp-editor-container,
.anspress .wp-editor-area {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  border-radius: 12px;
}

.anspress .ap-btn-submit,
.anspress input[type="submit"],
.anspress button[type="submit"] {
  background: linear-gradient(135deg, #e6b658 0%, #c8912e 100%);
  border: none;
  border-radius: 999px;
  color: #1a1204;
  font-weight: 700;
  padding: 0.7rem 1.8rem;
  cursor: pointer;
}

.anspress .ap-pagination a,
.anspress .ap-pagination span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-2);
  padding: 0.45rem 0.85rem;
}

/* AnsPress'in ID tabanlı kurallarını ezen güçlendirilmiş kurallar */
#anspress .ap-questions-item,
#anspress .ap-questions-item.status-private,
#anspress .ap-questions-item.status-moderate,
#anspress .ap-questions-item[class*="status-"] {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  color: var(--text-2) !important;
}

#anspress .ap-questions-item .ap-questions-title,
#anspress .ap-questions-title a {
  color: var(--text) !important;
}

#anspress .ap-questions-title a:hover { color: var(--gold) !important; }

#anspress .ap-btn-ask {
  background: linear-gradient(135deg, #e6b658 0%, #c8912e 100%) !important;
  border: none !important;
  color: #1a1204 !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 0.55rem 1.4rem !important;
  text-shadow: none !important;
  box-shadow: 0 10px 26px rgba(217, 164, 65, 0.28) !important;
}

#anspress .ap-questions-count,
#anspress .ap-questions-vcount,
#anspress .ap-questions-acount {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  color: var(--text-3) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

#anspress .ap-questions-count span { color: var(--text) !important; }
#anspress .ap-questions-vcount { border-color: rgba(91, 163, 245, 0.35) !important; }
#anspress .ap-questions-vcount span { color: var(--blue) !important; }
#anspress .ap-questions-acount { border-color: rgba(127, 214, 189, 0.35) !important; }
#anspress .ap-questions-acount span { color: var(--teal) !important; }

#anspress .ap-answered .ap-questions-acount,
#anspress .answer-selected .ap-questions-acount {
  background: rgba(127, 214, 189, 0.12) !important;
}

#anspress .ap-search-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  color: var(--text-2) !important;
}

#anspress .ap-form-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}

#anspress .ap-filters a,
#anspress .ap-filter-toggle,
#anspress .ap-dropdown-toggle {
  color: var(--text-3) !important;
}

#anspress .ap-filters a:hover { color: var(--gold) !important; }

#anspress .ap-display-question-meta,
#anspress .ap-display-meta-item,
#anspress .ap-display-meta-item a {
  color: var(--text-3) !important;
}

#anspress .ap-post-status {
  background: var(--gold-soft) !important;
  border: 1px solid rgba(217, 164, 65, 0.3) !important;
  color: var(--gold) !important;
  border-radius: 999px !important;
  text-shadow: none !important;
}

/* Eklenti kredisi satırını sadeleştir */
.anspress .ap-cradit,
.ap-cradit {
  opacity: 0.35;
  font-size: 0.75rem;
  text-align: right;
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .anspress .ap-list-head { flex-direction: column; align-items: stretch; }
  .anspress .ap-questions-inner { flex-direction: column; }
}

/* ————— Footer ————— */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(10, 22, 40, 0.7);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
}

.site-footer .brand-mark { font-size: 1.1rem; }

/* ————— Reveal ————— */
.reveal { opacity: 0; transform: translateY(36px); will-change: opacity, transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ————— Responsive ————— */
@media (max-width: 900px) {
  .gateway-grid { grid-template-columns: 1fr; gap: 1rem; }
  .gateway { padding-top: 6.5rem; }
  .gate-card { padding: 2.2rem 1.6rem; }
  .post-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 22, 40, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1rem 4vw 1.4rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .nav-toggle { display: block; }
  .topic-grid { grid-template-columns: 1fr; }
  .modal { padding: 1.6rem; }
}
