:root{
  --teal:#3aa6a4;
  --teal-dark:#2f8f8d;
  --purple:#7b2d83;

  --page:#ededed;
  --bg:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#d7d7d7;

  --card:#ffffff;
  --shadow: 0 1px 4px rgba(0,0,0,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

/* ====== LAYOUT ====== */
.wrap{
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
}
.muted{color:var(--muted)}

/* ====== TOP STRIP ====== */
.top-strip{
  background: var(--teal);
  color:#fff;
}
.strip-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 0;
}
.home-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:26px;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:16px;
  border-radius:2px;
}
.strip-right{
  display:flex;
  gap:10px;
  align-items:center;
}
.strip-link{
  color:#fff;
  text-decoration:none;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(255,255,255,.16);
}
.strip-link:hover{background: rgba(255,255,255,.24)}

/* ====== PURPLE LINE ====== */
.purple-line{
  height: 8px;
  background: var(--purple);
}

/* ====== HEADER ====== */
.header{
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner{
  padding: 18px 0 14px;
  display:flex;
  align-items:center;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:16px;
  width:100%;
}
.logo{
  width:78px;
  height:auto;
}
.brand-text{line-height:1.15}
.brand-top{
  font-size: 12px;
  letter-spacing:.4px;
  color:#374151;
  text-transform: uppercase;
}
.brand-main{
  font-size: 22px;
  font-weight: 800;
  color:#1f2b3a;
  margin-top: 2px;
  text-transform: uppercase;
}
.brand-sub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* right quote (Danıştay banner vibe) */
.head-quote{
  margin-left:auto;
  max-width: 420px;
  border-left: 4px solid #e6e6e6;
  padding-left: 14px;
}
.quote-text{
  font-size: 12px;
  color:#374151;
  line-height:1.35;
}
.quote-sub{
  margin-top: 6px;
  font-size: 11px;
  color:#9ca3af;
}

/* ====== NAV ====== */
.nav{
  background: #f6f6f6;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #dcdcdc;
}
.nav-inner{
  display:flex;
  justify-content:center;
  gap:22px;
  padding: 10px 0;
}
.navlink{
  text-decoration:none;
  color:#4b5563;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing:.3px;
}
.navlink:hover{
  background: rgba(58,166,164,.12);
}
.navlink.active{
  color:#111827;
  background: #fff;
  border: 1px solid #dcdcdc;
}

/* ====== MAIN ====== */
.main{
  padding: 18px 0 28px;
  display:grid;
  gap: 14px;
}

/* ====== PANELS ====== */
.panel{
  background: var(--card);
  border: 1px solid #dcdcdc;
  border-radius: 2px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.panel-title{
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  color:#111827;
}

/* ====== SEARCH ====== */
.searchrow{
  display:flex;
  gap:10px;
  align-items:center;
}
.search{
  width:100%;
  padding: 10px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  outline:none;
  font-size: 13px;
  background:#fff;
}
.search:focus{
  border-color: rgba(58,166,164,.85);
  box-shadow: 0 0 0 3px rgba(58,166,164,.16);
}
.btn{
  padding: 10px 14px;
  border-radius: 2px;
  border: 1px solid #cfcfcf;
  background: #f7f7f7;
  cursor:pointer;
  font-weight: 800;
  font-size: 12px;
  color:#374151;
  text-transform: uppercase;
}
.btn:hover{background:#f1f1f1}

.info{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ====== TOPICS ====== */
.topics-head{
  margin-top: 12px;
  border-top: 1px solid #e6e6e6;
  padding-top: 12px;
}
.topics-title{
  font-weight: 800;
  font-size: 12px;
  color:#111827;
  text-transform: uppercase;
}
.topics{margin-top: 10px;}
.topic{
  display:inline-block;
  margin: 6px 8px 0 0;
  padding: 7px 10px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background:#fff;
  cursor:pointer;
  font-size: 12px;
  font-weight: 700;
  color:#374151;
}
.topic:hover{border-color: rgba(58,166,164,.75);}
.topic.active{
  border-color: rgba(58,166,164,.95);
  background: rgba(58,166,164,.10);
}

/* ====== RESULTS ====== */
.results-panel{padding:0}
.panel-bar{
  background: var(--teal);
  color:#fff;
  padding: 10px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.bar-title{font-weight: 800; font-size: 13px;}
.bar-sub{font-size: 12px; opacity:.95;}
.results{padding: 12px;}

/* cards (eski) */
.card{
  background:#fff;
  border: 1px solid #dedede;
  border-radius: 2px;
  padding: 12px;
  margin-top: 10px;
}
.title{font-weight: 800; font-size: 14px; color:#111827;}
.meta{font-size: 12px; color: var(--muted); margin-top: 4px;}
.summary{font-size: 13px; line-height: 1.5; margin-top: 8px;}
.kws{font-size: 12px; color: var(--muted); margin-top: 8px;}
.link{
  display:inline-block;
  margin-top: 10px;
  font-weight: 800;
  font-size: 12px;
  color: #0f4c81;
  text-decoration:none;
  text-transform: uppercase;
}
.link:hover{text-decoration:underline}

/* ====== FOOTER ====== */
.footer{
  background:#fff;
  border-top: 1px solid #dcdcdc;
}
.footer-inner{
  padding: 14px 0;
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size: 12px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 880px){
  .head-quote{display:none;}
}
@media (max-width: 720px){
  .searchrow{flex-direction:column; align-items:stretch}
  .strip-inner{flex-direction:column; align-items:flex-start; gap:10px}
  .nav-inner{flex-wrap:wrap}
  .panel-bar{flex-direction:column; align-items:flex-start}
}

/* =========================================================
   ADMIN (TEK TASARIM) — DAR, KOMPAKT, HIZLI VERİ GİRİŞİ
   ========================================================= */
.admin-body{
  background:#f6f7f9;
}

/* admin’de üst şerit/menü yok */
.admin-body .top-strip,
.admin-body .purple-line,
.admin-body .nav{
  display:none;
}

/* admin header sade */
.admin-body .header{
  background: transparent;
  border: none;
}
.admin-body .header-inner{
  padding: 14px 0 8px;
}

/* admin sayfası dar */
.admin-body .wrap,
.admin-body .main{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 12px;
}

/* admin panel daha modern */
.admin-body .panel,
.admin-body .card{
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 10px rgba(0,0,0,.06);
}

/* admin başlık küçült */
.admin-body h1{
  font-size: 22px;
  margin: 10px 0 10px;
}

/* admin label/yardım metni */
.admin-body label{ font-size: 12px; font-weight: 700; }
.admin-body small{ font-size: 11px; color:#6b7280; }

/* inputlar kompakt */
.admin-body input,
.admin-body select,
.admin-body textarea{
  width: 100%;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background:#fff;
}
.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus{
  outline:none;
  border-color: rgba(58,166,164,.85);
  box-shadow: 0 0 0 3px rgba(58,166,164,.16);
}
.admin-body textarea{ min-height: 110px; }

/* butonlar: küçük + hızlı */
.admin-body .btn{
  text-transform:none;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 10px;
  background:#fff;
}

/* önizleme kutusu */
.admin-body pre{
  font-size: 12px;
  line-height: 1.35;
  max-height: 240px;
  overflow:auto;
  border-radius: 10px;
}

/* ultra hızlı giriş için iki kolon (opsiyonel class)
   admin.html'de ana form bloğuna class="admin-grid" verirsen çalışır */
.admin-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width: 900px){
  .admin-body .wrap,
  .admin-body .main{
    max-width: 940px; /* geniş ekranda az biraz aç */
  }
  .admin-grid{
    grid-template-columns: 1.1fr .9fr; /* sol form, sağ önizleme */
    align-items:start;
  }
}

/* sticky preview (opsiyonel class) */
.admin-sticky{
  position: sticky;
  top: 14px;
}

#loginGate{
  position:fixed;
  inset:0;
  background:#0f172a;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.gate-box{
  background:#fff;
  padding:40px;
  border-radius:12px;
  text-align:center;
  width:320px;
}

.gate-box input{
  width:100%;
  padding:12px;
  margin-top:10px;
  margin-bottom:10px;
}

.gate-box button{
  width:100%;
  padding:12px;
  background:#111827;
  color:#fff;
  border:none;
  cursor:pointer;
}

/* =========================================================
   ✅ YENİ: Minimal filtre + sıralama kontrolleri
   ✅ YENİ: Okunur kart tasarımı + pill + chip + clamp
   (Mevcut stilleri bozmaz; aşağıdakiler yeni render ile uyumlu)
   ========================================================= */

/* Kontroller */
.controls{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-end;
}
.control{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.control label{
  font-size:12px;
  color:#374151;
  font-weight:800;
  text-transform: uppercase;
  letter-spacing:.3px;
}
.control select{
  min-width:180px;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  outline:none;
  font-size:13px;
}
.control select:focus{
  border-color:#0f766e;
  box-shadow:0 0 0 3px rgba(15,118,110,.12);
}
.yearRange{
  display:flex;
  align-items:center;
  gap:8px;
}
.yearRange .sep{ color:#6b7280; }

/* Yeni kart görünümü (eski .card üstüne yazacak) */
.results .card{
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
  padding:14px 14px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  transition:transform .06s ease, box-shadow .12s ease, border-color .12s ease;
}
.results .card:hover{
  border-color:#d1d5db;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  transform:translateY(-1px);
}
.results .card .title{
  font-size:16px;
  font-weight:900;
  line-height:1.25;
  margin-bottom:8px;
}

/* Meta pill row */
.metaRow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  font-size:12px;
  color:#374151;
  font-weight:800;
}
.pill .dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:#0f766e;
  display:inline-block;
}

/* Özet 3 satır clamp */
.summary.clamp3{
  color:#111827;
  font-size:13.5px;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* “… devamı” linki */
.moreLink{
  margin-top:8px;
  display:inline-block;
  font-weight:900;
  font-size:13px;
  color:#0f766e;
  text-decoration:none;
}
.moreLink:hover{ text-decoration:underline; }

/* Chip’ler */
.kws{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color: var(--muted);
  font-size:12px;
}
.chip{
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  cursor:pointer;
  font-weight:900;
  color:#374151;
}
.chip:hover{
  border-color:#0f766e;
  box-shadow:0 0 0 3px rgba(15,118,110,.12);
  color:#0f766e;
}

/* mobilde kontroller daha rahat */
@media (max-width: 720px){
  .control select{ min-width: 100%; width: 100%; }
  .yearRange{ width: 100%; }
  .yearRange select{ width: 100%; }
}
