/* ===========================================================================
   Ali Öğretmen — Ön yüz stil
   Sade, mavi tonlar, Selçuklu geometrik motif zemin.
   =========================================================================*/

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: #0F172A;
  background: var(--c-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}
body::before{
  content:"";
  position: fixed; inset: 0;
  background-image: url("/assets/img/selcuklu-pattern.svg");
  background-size: 320px;
  opacity: .55;                 /* motif fon */
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: var(--c-secondary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-primary); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-body); color: #0B2447; margin: 0 0 14px; line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 2.1vw, 28px); }
h3 { font-size: 18px; }
p  { margin: 0 0 12px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Üst bilgi (topbar + header) ---------------------------------- */
.topbar {
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  color: #eef4ff;
  font-size: 13px;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 36px;
}
.topbar a { color: #eef4ff; }
.topbar a:hover { color: #fff; }
.topbar-follow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13.5px; letter-spacing: .2px;
  padding: 4px 12px 4px 6px; border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff !important;
}
.topbar-follow:hover { background: rgba(255,255,255,.22); }
.topbar-follow .icn { flex-shrink: 0; }
.topbar-links { display: flex; gap: 14px; align-items: center; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.topbar-cta {
  background: rgba(255,255,255,.15); padding: 4px 12px; border-radius: 999px;
  font-weight: 600;
}
.topbar-cta:hover { background: rgba(255,255,255,.28); }
@media (max-width: 480px) {
  .topbar-follow span { font-size: 12.5px; }
  .topbar-cta { padding: 4px 10px; font-size: 12.5px; }
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e6ebf3;
  position: sticky; top: 0; z-index: 20;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}
.site-header .brand img { height: 44px; width: auto; display: block; }
.site-header nav { display: flex; gap: 2px; align-items: center; }
.site-header nav > a, .site-header nav .nav-drop > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  color: #23354d; font-weight: 500; font-size: 14.5px;
  cursor: pointer;
}
.site-header nav > a:hover,
.site-header nav > a.active,
.site-header nav .nav-drop-trigger:hover,
.site-header nav .nav-drop-trigger.active,
.site-header nav .nav-drop:hover .nav-drop-trigger {
  background: rgba(11, 61, 145, 0.07); color: var(--c-primary);
}

/* Açılır menü (dropdown) */
.nav-drop { position: relative; }
.nav-drop-panel {
  position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 240px;
  border: 1px solid #e6ebf3; border-radius: 12px;
  box-shadow: 0 18px 40px -20px rgba(11, 36, 71, 0.35);
  padding: 8px; margin-top: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 30;
  max-height: 70vh; overflow: auto;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel,
.nav-drop.open .nav-drop-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px;
  color: #23354d; font-size: 14px; font-weight: 500;
}
.nav-drop-item:hover {
  background: rgba(30, 107, 184, 0.08);
  color: var(--c-primary);
}

.search-box {
  display: flex; align-items: center; background: #f1f4fa; border-radius: 999px;
  padding: 6px 8px 6px 14px; gap: 6px; min-width: 260px;
}
.search-box input {
  border: 0; background: transparent; outline: none; flex: 1; font-size: 14px;
}
.search-box button {
  background: var(--c-primary); color: #fff; border: 0; border-radius: 999px;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
}
.search-box button:hover { background: var(--c-secondary); }

.menu-toggle { display: none; background: transparent; border: 0; padding: 8px; color: var(--c-primary); }

@media (max-width: 860px) {
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid #e6ebf3; box-shadow: 0 12px 20px -14px rgba(11,61,145,.2); align-items: stretch; }
  .site-header nav.open { display: flex; }
  .site-header nav > a { padding: 12px 14px; }
  .site-header nav .nav-drop { width: 100%; }
  .site-header nav .nav-drop-trigger { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .nav-drop-panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 6px 14px;
    max-height: none; margin-top: 0;
    display: none;
  }
  .nav-drop.open .nav-drop-panel { display: block; }
  .menu-toggle { display: inline-flex; }
  .search-box { display: none; }
}

/* ---------- Kahraman (hero) ---------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 55%, var(--c-accent) 130%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content:""; position: absolute; inset:0;
  background: url("/assets/img/hero-pattern.svg") repeat;
  background-size: 240px;
  opacity: .35;
}
.hero .container {
  position: relative; z-index: 1;
  padding: 56px 20px 64px;
  display: grid; gap: 28px;
}
.hero h1 { color: #fff; margin-bottom: 6px; font-size: clamp(28px, 3vw, 40px); }
.hero p  { color: #e0eaff; max-width: 640px; margin: 0; font-size: 16.5px; }
.hero .hero-search {
  margin-top: 12px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  display: flex; align-items: center; gap: 6px; max-width: 520px;
}
.hero .hero-search input {
  border: 0; background: transparent; color: #fff; flex: 1; outline: none; font-size: 15px;
}
.hero .hero-search input::placeholder { color: rgba(255,255,255,.75); }
.hero .hero-search button {
  background: #fff; color: var(--c-primary); border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600;
}
.hero .hero-search button:hover { background: #eaf3ff; }

.crumbs {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 16px 0 6px; font-size: 14px; color: #5b6a83;
}
.crumbs a { color: #5b6a83; }
.crumbs a:hover { color: var(--c-primary); }
.crumbs .sep { opacity: .5; }

/* ---------- Bölüm başlığı ------------------------------------------------ */
.section {
  padding: 44px 0;
}
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 22px; gap: 12px;
}
.section-title h2 {
  margin: 0; position: relative; padding-bottom: 6px;
}
.section-title h2::after{
  content:""; position: absolute; left:0; bottom: -2px; width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); border-radius: 3px;
}
.section-title a.more {
  color: var(--c-secondary); font-weight: 500; font-size: 14px;
  display: inline-flex; align-items: center; gap: 4px;
}

/* ---------- L1 kategori ızgarası ---------------------------------------- */
.l1-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.l1-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  border: 1px solid #e6ebf3;
  box-shadow: 0 4px 14px -8px rgba(15,42,120,.15);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: block; color: inherit;
  position: relative; overflow: hidden;
}
.l1-card::before{
  content:""; position:absolute; inset:auto -30% -60% -30%; height: 200%;
  background: radial-gradient(ellipse at top, rgba(38,198,218,0.08), transparent 60%);
  pointer-events:none;
}
.l1-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11,61,145,0.35);
  box-shadow: 0 18px 34px -18px rgba(15,42,120,.35);
}
.l1-thumb {
  width: 160px; height: 160px; margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EAF4FF, #D6ECFA);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 32px;
  overflow: hidden;
  box-shadow: inset 0 -8px 16px rgba(11,61,145,.08), 0 8px 20px -12px rgba(11,61,145,.25);
}
.l1-thumb img { width: 100%; height: 100%; object-fit: cover; }
.l1-title { font-weight: 700; color: #0B2447; font-size: 17px; margin-top: 6px; }
.l1-meta  { color: #5b6a83; font-size: 13px; margin-top: 4px; }

@media (max-width: 640px) {
  .l1-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .l1-thumb { width: 128px; height: 128px; }
}

/* ---------- L2 accordion (alt kategori listeleri) ----------------------- */
.l2-list { display: grid; gap: 10px; }
.l2-list { display: flex; flex-direction: column; gap: 14px; }
.l2-item {
  background: #fff;
  border: 1px solid #DCE6F3;
  border-left: 4px solid var(--c-secondary);
  border-radius: 14px;
  padding: 16px 18px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .1s ease;
}
.l2-item:hover {
  border-left-color: var(--c-accent);
  box-shadow: 0 12px 28px -18px rgba(15,42,120,.35);
  transform: translateY(-1px);
}
.l2-item summary {
  display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none;
  font-weight: 700; color: #0B2447; font-size: 16px;
}
.l2-item summary::-webkit-details-marker { display: none; }
.l2-item[open] { border-left-color: var(--c-primary); background: linear-gradient(180deg, #F8FBFF 0%, #fff 40%); }
.l2-item .l2-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-secondary), var(--c-primary));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -8px rgba(11,61,145,.45);
}
.l2-item[open] .caret { transform: rotate(180deg); background: var(--c-primary); color: #fff; }
/* L2 leaf'te caret (kapalı) — normal sağ ok */
.l2-item.l2-leaf .caret { transform: none; background: #EEF4FC; color: var(--c-secondary); }
.l2-item.l2-leaf:hover .caret { background: var(--c-secondary); color: #fff; transform: translateX(3px); }
.caret {
  margin-left: 6px; color: var(--c-secondary);
  background: #EEF4FC; border-radius: 999px;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.l2-item:hover .caret { background: var(--c-secondary); color: #fff; }

.l2-body { padding: 12px 4px 4px 46px; color: #34435c; font-size: 14.5px; }
@media (max-width: 640px) { .l2-body { padding-left: 8px; } }
.l2-body ul { list-style: none; padding: 0; margin: 8px 0 0; }
.l2-body ul li { padding: 6px 0; border-top: 1px dashed #e5eaf3; }
.l2-body ul li:first-child { border-top: 0; }
.l2-body ul li a {
  display: inline-flex; align-items: center; gap: 8px; color: #23354d;
}
.l2-body ul li a:hover { color: var(--c-primary); }

/* Yaprak L2 direct link */
.l2-item.l2-leaf {
  display: flex; align-items: center; gap: 14px;
  color: inherit; text-decoration: none;
}
.l2-item .l2-name  { flex: 1; }
.l2-item .l2-count {
  font-size: 12.5px; color: var(--c-primary); font-weight: 700;
  background: #E0EDFB; border-radius: 999px; padding: 4px 12px;
  white-space: nowrap;
}
.l2-item:hover .l2-count { background: var(--c-secondary); color: #fff; }

/* L3 listesi (accordion içinde) — her satır tam genişlik */
.l3-list {
  display: flex; flex-direction: column; gap: 8px;
  margin: 10px 0 4px;
}
.l3-tile {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  background: #fff;
  border: 1.5px solid #E1EAF8;
  border-radius: 12px;
  padding: 12px 16px;
  color: #0B2447; text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 6px -4px rgba(11,61,145,.15);
  transition: all .18s ease;
}
.l3-tile:hover {
  border-color: var(--c-secondary);
  background: linear-gradient(90deg, #EAF3FE, #fff);
  transform: translateX(3px);
  box-shadow: 0 8px 18px -12px rgba(11,61,145,.35);
}
.l3-tile .l3-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--c-accent), var(--c-secondary));
  flex-shrink: 0;
}
.l3-tile .l3-name  { flex: 1; font-size: 14.5px; }
.l3-tile::after {
  content: '›';
  color: #94a3b8;
  font-size: 22px; line-height: 1; font-weight: 400;
  transition: transform .18s ease, color .18s ease;
}
.l3-tile:hover::after { color: var(--c-primary); transform: translateX(3px); }

/* ---------- İçerik kartı (son eklenenler) ------------------------------- */
.file-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.file-card {
  background: #fff; border: 1px solid #e6ebf3; border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.file-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11,61,145,0.35);
  box-shadow: 0 18px 34px -18px rgba(15,42,120,.35);
}
.file-thumb {
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--c-secondary), var(--c-accent));
  position: relative; overflow: hidden;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-thumb .pin {
  position: absolute; top: 10px; left: 10px;
  background: #fff; color: var(--c-primary);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  box-shadow: 0 4px 10px -6px rgba(0,0,0,.3);
}
.file-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.file-title {
  color: #0B2447; font-weight: 600; font-size: 15px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 42px;
}
.file-meta {
  display: flex; align-items: center; gap: 12px; color: #64748b; font-size: 12.5px; margin-top: auto;
  flex-wrap: wrap;
}
.file-meta span { display: inline-flex; align-items: center; gap: 4px; }
.file-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--c-primary); color: #fff; padding: 9px 12px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  transition: background .15s ease;
}
.file-cta:hover { background: var(--c-secondary); color: #fff; }

/* ---------- İçerik detayı ------------------------------------------------ */
.detail-wrap {
  display: grid; grid-template-columns: 360px 1fr; gap: 32px; margin: 32px 0 48px;
}
@media (max-width: 860px) { .detail-wrap { grid-template-columns: 1fr; } }
.detail-cover {
  background: #fff; border-radius: 18px; border: 1px solid #e6ebf3;
  padding: 14px; box-shadow: 0 14px 34px -20px rgba(15,42,120,.28);
  display: flex; flex-direction: column; gap: 12px;
}
.detail-cover img { border-radius: 12px; width: 100%; display: block; }
.cover-placeholder {
  aspect-ratio: 4/5;
  border-radius: 12px;
  background: linear-gradient(160deg, #1E6BB8 0%, #0B3D91 60%, #072558 100%);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; font-weight: 600; letter-spacing: .5px;
}
.cover-placeholder svg { opacity: .95; }
.btn-block { width: 100%; justify-content: center; }

.detail-info h1 { margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(30,107,184,.08); color: var(--c-secondary);
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
}
.chip-on-dark {
  background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px);
}
.chip-on-dark:hover { background: rgba(255,255,255,.25); color: #fff; }
.detail-desc-title {
  font-weight: 700; color: #0B2447; font-size: 18px;
  margin: 24px 0 10px; padding-left: 12px;
  border-left: 4px solid var(--c-accent);
}
.empty-desc {
  color: #64748b !important;
  display: inline-flex; align-items: center; gap: 8px;
  background: #F8FAFC !important; border-style: dashed !important;
}

/* Paylaş butonları */
.share-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid #E6EBF3;
}
.share-label {
  font-weight: 700; color: #0B2447; font-size: 14px; margin-right: 2px;
}
.share-btn {
  width: 40px; height: 40px; border-radius: 10px; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.35);
  color: #fff;
}
.share-wa   { background: #25D366; }
.share-fb   { background: #1877F2; }
.share-tw   { background: #0F1419; }
.share-tg   { background: #0088CC; }
.share-copy { background: var(--c-secondary); font-size: 13px; white-space: nowrap; }
.stat-grid {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 20px;
}
.stat {
  background: #fff; border: 1px solid #e6ebf3; border-radius: 12px; padding: 12px 14px;
  display: flex; gap: 10px; align-items: center;
  flex: 1 1 0; min-width: 0;
}
.stat .stat-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-secondary), var(--c-accent));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.stat .stat-label { font-size: 12px; color: #64748b; white-space: nowrap; }
.stat .stat-value { font-weight: 600; color: #0B2447; word-break: break-word; }
@media (max-width: 640px) { .stat-grid { flex-direction: column; } .stat { flex: 1 1 auto; } }
.desc { background: #fff; border: 1px solid #e6ebf3; border-radius: 14px; padding: 18px 20px; }

.btn-big {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-primary); color: #fff;
  padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 16px;
  box-shadow: 0 12px 24px -12px rgba(11,61,145,.55);
}
.btn-big:hover { background: var(--c-secondary); color: #fff; }
.notice-warn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #FFF4E5; color: #8A5A00;
  padding: 12px 16px; border-radius: 10px; font-weight: 500;
  border: 1px solid #FFD9A6;
}
.notice-success {
  display: flex; align-items: flex-start; gap: 12px;
  background: #E7F8EF; color: #16643a;
  padding: 16px 18px; border-radius: 12px; border: 1px solid #B8E7CB;
  margin-bottom: 20px;
}
.notice-success svg { flex-shrink: 0; color: #16A34A; margin-top: 2px; }
.notice-err {
  display: flex; align-items: flex-start; gap: 12px;
  background: #FEE2E2; color: #991B1B;
  padding: 14px 18px; border-radius: 12px; border: 1px solid #FCA5A5;
  margin-bottom: 20px;
}
.notice-err svg { flex-shrink: 0; color: #DC2626; margin-top: 2px; }

/* İletişim formu */
.contact-form {
  background: #fff; border: 1px solid #E6EBF3; border-radius: 16px;
  padding: 24px; display: grid; gap: 16px;
  box-shadow: 0 8px 24px -18px rgba(15,42,120,.2);
}
.contact-form .field label {
  display: block; font-weight: 600; color: #0B2447; margin-bottom: 6px; font-size: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #D5DDE9;
  border-radius: 10px; font: inherit; font-size: 14.5px; color: #0B2447;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--c-secondary);
  box-shadow: 0 0 0 3px rgba(30,107,184,.15);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .help { display: block; color: #64748b; font-size: 12.5px; margin-top: 6px; }
.captcha-field label strong {
  color: var(--c-primary); background: #EEF4FC;
  padding: 3px 10px; border-radius: 8px; font-size: 15px; margin-left: 6px;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Sayfalayıcı -------------------------------------------------- */
.pagination {
  display: flex; gap: 6px; justify-content: center; margin: 30px 0 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e6ebf3; color: #23354d; font-weight: 500; padding: 0 10px;
}
.pagination a:hover { border-color: var(--c-secondary); color: var(--c-primary); }
.pagination .active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ---------- İçerik boş durumu ------------------------------------------- */
.empty {
  background: #fff; border: 1px dashed #cfd8ea; padding: 40px; border-radius: 16px;
  text-align: center; color: #64748b;
}

/* ---------- Alt bilgi (footer) ------------------------------------------ */
.site-footer {
  background: #0B2447;
  color: #cad4e7;
  margin-top: 60px;
  position: relative;
}
.site-footer::before{
  content:""; position:absolute; inset:0;
  background: url("/assets/img/hero-pattern.svg") repeat;
  background-size: 240px;
  opacity: .18;
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; padding: 44px 20px 20px; }
.footer-grid {
  display: grid; gap: 24px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin: 6px 0; }
.site-footer a { color: #cad4e7; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-desc { max-width: 320px; color: #b5c1d9; font-size: 14px; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.socials a:hover { background: var(--c-accent); color: #0B2447; }

.footer-notice {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 22px; padding-top: 16px;
  color: #c5d0e4; font-size: 12.5px; line-height: 1.55;
  max-width: 920px;
}
.footer-notice strong { color: #fff; font-weight: 700; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 26px; padding-top: 16px;
  display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap;
  color: #98a5c1; font-size: 13px;
}

/* ---------- Çerez bildirimi --------------------------------------------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  max-width: 720px; margin: 0 auto;
  background: #0B2447; color: #eef4ff;
  border-radius: 16px; padding: 18px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 22px 46px -16px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.08);
}
.cookie-bar[hidden] { display: none !important; }
.cookie-bar-text { flex: 1; min-width: 220px; }
.cookie-bar-text strong { display: block; font-size: 15px; margin-bottom: 4px; color: #fff; }
.cookie-bar p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #cad4e7; }
.cookie-bar .actions { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; }
.cookie-bar button {
  background: var(--c-accent); color: #0B2447; border: 0; padding: 10px 18px;
  border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.cookie-bar button:hover { filter: brightness(1.08); }
.cookie-bar .cookie-btn-ghost {
  background: transparent; color: #eef4ff;
  border: 1px solid rgba(255,255,255,.28);
  font-weight: 600;
}
.cookie-bar .cookie-btn-ghost:hover { background: rgba(255,255,255,.1); }
.cookie-bar a { color: #9ec9ff; text-decoration: underline; }
@media (max-width: 560px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .cookie-bar .actions { width: 100%; }
  .cookie-bar .actions button { flex: 1; }
}

/* ---------- Yardımcılar -------------------------------------------------- */
.badge {
  display: inline-flex; padding: 3px 8px; border-radius: 999px;
  background: rgba(38,198,218,.15); color: #087894; font-size: 12px; font-weight: 500;
}
.txt-mut { color: #64748b; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 14px; }
.prose h2 { margin: 20px 0 10px; }
.prose h3 { margin: 16px 0 8px; }
.prose ul { padding-left: 20px; }
.prose p, .prose li { color: #34435c; }

/* ---------- Kategori sayfa üstü -------------------------------------- */
.page-head {
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #fff; position: relative; overflow: hidden;
}
.page-head::before{ content:""; position:absolute; inset:0; background: url("/assets/img/hero-pattern.svg") repeat; background-size: 240px; opacity:.28; }
.page-head .container { position: relative; z-index: 1; padding: 44px 20px 32px; }
.page-head h1 { color: #fff; margin: 0 0 8px; font-size: clamp(24px, 2.5vw, 32px); }
.page-head p  { color: #e0eaff; margin: 0; max-width: 780px; }
.page-head .crumbs { color: rgba(255,255,255,.75); padding: 0 0 8px; }
.page-head .crumbs a { color: rgba(255,255,255,.9); }

/* ---------- Alt kategori (L3) çipleri ------------------------------- */
.subs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px;
}
.subs a {
  background: #fff; border: 1px solid #e6ebf3; border-radius: 999px;
  padding: 6px 14px; font-size: 13.5px; color: #23354d; font-weight: 500;
}
.subs a:hover, .subs a.active {
  background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}

/* ---------- Reklam alanı ------------------------------------------------ */
.ad-slot { display: block; margin: 26px auto; text-align: center; min-height: 90px; }

/* ---------- Dosya kartı badge (dosya türü) ------------------------------ */
.file-thumb .file-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(11,36,71,.85); color: #fff;
  padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase;
}

/* ---------- Mobil: içerik grid'i 2 sütun -------------------------------- */
@media (max-width: 720px) {
  .file-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .file-card { border-radius: 12px; }
  .file-body { padding: 10px 10px 12px; }
  .file-title {
    font-size: 13px; line-height: 1.35;
    display: block; -webkit-line-clamp: unset; -webkit-box-orient: unset;
    overflow: visible; min-height: 0;
    word-break: break-word; hyphens: auto;
  }
  .file-meta { font-size: 11px; gap: 4px 8px; flex-wrap: wrap; }
  .file-meta svg { width: 12px; height: 12px; }
}
@media (max-width: 380px) {
  .file-grid { gap: 10px; }
  .file-title { font-size: 12.5px; }
}

/* ---------- Sayaç barı (footer en altı) --------------------------------- */
.footer-stats {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 28px;
  padding-top: 20px;
}
.footer-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.footer-stats-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
}
.footer-stats-item svg { flex-shrink: 0; opacity: .7; }
.footer-stats-item > div { display: flex; flex-direction: column; }
.footer-stats-val { font-size: 17px; font-weight: 800; line-height: 1.1; }
.footer-stats-lbl { font-size: 11px; opacity: .65; margin-top: 1px; }
@media (max-width: 900px) { .footer-stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-stats-val { font-size: 15px; } }

/* ---------- Yeni içerik detay tasarımı (v2) ----------------------------- */
.detail-v2 {
  max-width: 860px; margin: 28px auto 40px;
  display: flex; flex-direction: column; gap: 18px;
}

/* Görsel — büyük, ortalı, çerçeveli */
.detail-hero {
  background: #fff; border: 1px solid #e6ebf3; border-radius: 18px;
  padding: 18px; box-shadow: 0 18px 36px -22px rgba(15,42,120,.22);
  display: flex; align-items: center; justify-content: center;
}
.detail-hero img {
  display: block; max-width: 100%; height: auto;
  max-height: 520px; border-radius: 12px; object-fit: contain;
}
.detail-hero-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 20px; color: var(--c-primary);
  background: linear-gradient(135deg, #EAF3FF, #F5FAFF);
  border-radius: 12px; width: 100%;
}
.detail-hero-empty span { font-weight: 700; letter-spacing: .5px; }

/* 5 kutulu stat satırı */
.stat-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.stat-box {
  background: #fff; border: 1px solid #e6ebf3; border-radius: 14px;
  padding: 12px; display: flex; align-items: center; gap: 10px;
  min-width: 0;
  transition: transform .15s, box-shadow .15s;
}
.stat-box:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -14px rgba(15,42,120,.35); }
.stat-box .stat-ic {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(135deg, #EAF3FF, #F5FAFF); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
}
.stat-box .stat-txt { min-width: 0; }
.stat-box .stat-lbl { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.stat-box .stat-val { font-size: 15px; font-weight: 700; color: #0B2447; word-break: break-word; margin-top: 2px; }

/* Dosya Türü kutusu — vurgulu (turuncu) */
.stat-box-accent {
  background: linear-gradient(135deg, #FF8C42, #FF6B1A);
  border-color: #FF6B1A;
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(255,107,26,.55);
}
.stat-box-accent .stat-ic {
  background: rgba(255,255,255,.22); color: #fff;
}
.stat-box-accent .stat-lbl { color: rgba(255,255,255,.9); }
.stat-box-accent .stat-val { color: #fff; }

@media (max-width: 780px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* Açıklama kutusu */
.detail-desc-box {
  background: #fff; border: 1px solid #e6ebf3; border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 10px 26px -20px rgba(15,42,120,.18);
}
.detail-desc-h {
  margin: 0 0 14px; font-size: 18px; color: #0B2447;
  padding-bottom: 10px; border-bottom: 2px solid #EEF3FA;
}
.detail-desc-box .desc { border: none; padding: 0; background: transparent; }
.detail-desc-box .desc.empty-desc {
  color: #64748b; font-style: italic;
  display: flex; align-items: center; gap: 8px;
}
.detail-desc-box .prose img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }

/* Dosyayı İndir — ortada, büyük */
.detail-cta {
  display: flex; justify-content: center; padding: 8px 0 4px;
}
.detail-cta .btn-big {
  padding: 16px 34px; font-size: 17px; border-radius: 14px;
  min-width: 260px; justify-content: center;
}

/* Yeni paylaş bar — kutu içinde */
.share-bar-v2 {
  background: #fff; border: 1px solid #e6ebf3; border-radius: 14px;
  padding: 14px 18px;
  border-top: 1px solid #e6ebf3; /* eski üst çizgiyi ez */
  margin-top: 4px;
  justify-content: center;
}

/* Alt Alan (reklam / adsense yeri) */
.detail-adslot {
  min-height: 90px;
  background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px;
  padding: 18px; text-align: center;
}
