/*
Theme Name: YGMR Theme
Theme URI: https://hukukdersnotlari.com
Author: hukukdersnotlari.com
Author URI: https://hukukdersnotlari.com
Description: Hukuk Ders Notları + Soru-Cevap için özel tema.
Version: 1.0.0
Text Domain: ygmrtheme
*/

/* Minimum reset + temel */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  background: #f3f5f7;
  color: #111827;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Topbar */
.yg-topbar{
  background:#0b4db7;
  color:#fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.yg-topbar__inner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.yg-brand{
  font-weight:800;
  letter-spacing:.2px;
  white-space:nowrap;
}

.yg-nav{ flex: 1; }
.yg-nav__menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.yg-nav__menu a{
  color:#eaf2ff;
  font-weight:600;
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
  text-decoration:none;
}

.yg-nav__menu a:hover{
  background: rgba(255,255,255,.12);
  text-decoration:none;
}

.yg-user{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}

.yg-user__hello{
  font-size:13px;
  color:#eaf2ff;
  opacity:.95;
}

/* Buttons */
.yg-btn{
  display:inline-block;
  padding:8px 1212px;
  border-radius:12px;
  font-weight:700;
  font-size:13px;
  text-decoration:none;
  border:1px solid transparent;
}

.yg-btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.22);
  color:#fff;
}

.yg-btn--ghost:hover{
  background: rgba(255,255,255,.12);
  text-decoration:none;
}

.yg-btn--primary{
  background:#10b981;
  border-color:#10b981;
  color:#fff;
}

.yg-btn--primary:hover{
  filter: brightness(0.96);
  text-decoration:none;
}

/* Layout */
.yg-layout{
  display:flex;
  min-height:100vh;
}

.yg-sidebar{
  width: 260px;
  background:#0f2a4a;
  color:#e5f0ff;
  padding:18px 14px;
  position: sticky;
  top:0;
  height:100vh;
  border-right: 1px solid rgba(255,255,255,.08);
}

.yg-sidebar__brand{
  display:block;
  padding:12px 12px;
  margin-bottom:12px;
  font-weight:900;
  letter-spacing:.2px;
  color:#fff;
  text-decoration:none;
}

.yg-sidebar__nav{
  margin-top:10px;
}

.yg-sidebar__menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.yg-sidebar__menu a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  color:#dbeafe;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
}

.yg-sidebar__menu a:hover{
  background: rgba(255,255,255,.10);
}

.yg-sidebar__cta{
  margin-top:auto;
  padding:12px;
}

/* Main */
.yg-main{
  flex:1;
  min-width:0;
}

.yg-topbar{
  background:#0b4db7;
  color:#fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.yg-topbar__inner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

/* Desktop search (mevcut düzen) */
.yg-topbar__search{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1;
  max-width:520px;
}

.yg-topbar__search input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color:#fff;
  outline:none;
}

.yg-topbar__search input::placeholder{
  color: rgba(255,255,255,.75);
}

.yg-topbar__search button{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
}

.yg-content{
  padding: 0; /* front-page kendi paddingini veriyor */
}

/* Buttons (önceden eklediysek aynen kalsın; burada full ekliyoruz) */
.yg-btn{
  display:inline-block;
  padding:8px 12px;
  border-radius:12px;
  font-weight:700;
  font-size:13px;
  text-decoration:none;
  border:1px solid transparent;
}

.yg-btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.22);
  color:#fff;
}

.yg-btn--ghost:hover{
  background: rgba(255,255,255,.12);
  text-decoration:none;
}

.yg-btn--primary{
  background:#10b981;
  border-color:#10b981;
  color:#fff;
}

.yg-btn--primary:hover{
  filter: brightness(0.96);
  text-decoration:none;
}

.yg-btn--full{
  width:100%;
  text-align:center;
}

/* Footer */
.yg-footer{
  background:#0f172a;
  color:#cbd5e1;
  margin-top:32px;
}

.yg-footer__inner{
  max-width:1100px;
  margin:0 auto;
  padding:20px 16px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.yg-footer__brand{ font-weight:800; }
.yg-footer__copy{ font-size:13px; }

/* Responsive: mobilde sidebar üstte (legacy) */
@media (max-width: 980px){
  .yg-layout{ display:block; }
  .yg-sidebar{
    width:auto;
    height:auto;
    position:relative;
  }
  .yg-sidebar__cta{ margin-top:10px; }
}

/* Article Layout */
.yg-article{
  padding: 24px 16px;
}
.yg-article__inner{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.yg-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
}
.yg-card--article{ padding:18px; }
.yg-card--section{ padding:16px; }

.yg-crumb{
  font-size:13px;
  color:#6b7280;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.yg-crumb a{ color:#0b4db7; text-decoration:none; }
.yg-crumb a:hover{ text-decoration:underline; }
.yg-crumb__current{ color:#111827; font-weight:700; }

.yg-article__title{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.2;
}
.yg-article__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:#6b7280;
  font-size:13px;
  margin-bottom:10px;
}
.yg-dot{ opacity:.7; }

.yg-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}
.yg-tag{
  display:inline-block;
  padding:7px 10px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  font-size:13px;
  background:#f9fafb;
  text-decoration:none;
}
.yg-tag:hover{ text-decoration:none; border-color:#d1d5db; }

.yg-disclaimer{
  font-size:13px;
  color:#1f2937;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  padding:10px 12px;
  border-radius:12px;
}

.yg-article__thumb{
  margin-top:12px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #e5e7eb;
}

.yg-article__content{
  margin-top:14px;
  color:#111827;
  font-size:16px;
  line-height:1.75;
}

/* İçerik tipografisi */
.yg-article__content h2{
  margin:26px 0 10px;
  font-size:22px;
}
.yg-article__content h3{
  margin:20px 0 8px;
  font-size:18px;
}
.yg-article__content p{ margin: 0 0 14px; }
.yg-article__content ul, .yg-article__content ol{
  margin: 0 0 14px 18px;
}
.yg-article__content blockquote{
  margin:16px 0;
  padding:12px 14px;
  border-left:4px solid #0b4db7;
  background:#f8fafc;
  border-radius:12px;
  color:#334155;
}

/* Section */
.yg-section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.yg-section__title{
  margin:0;
  font-size:16px;
}
.yg-section__sub{
  color:#6b7280;
  font-size:13px;
}

/* Related grid */
.yg-grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:12px;
}
.yg-mini{
  grid-column: span 6;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px;
}
.yg-mini__title{
  margin:0 0 8px;
  font-size:15px;
}
.yg-mini__meta{
  font-size:12px;
  color:#6b7280;
  margin-bottom:8px;
}
.yg-mini__excerpt{
  font-size:13px;
  color:#374151;
}

.yg-muted{ color:#6b7280; font-size:13px; }

.yg-article__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.yg-btn--ghost-dark{
  background:#fff;
  border:1px solid #d1d5db;
  color:#111827;
}
.yg-btn--ghost-dark:hover{
  background:#f9fafb;
  text-decoration:none;
}

/* CTA */
.yg-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#f9fafb;
}
.yg-cta__text{
  font-size:14px;
  color:#374151;
}

/* Mobile */
@media (max-width: 900px){
  .yg-mini{ grid-column: span 12; }
  .yg-article__title{ font-size:24px; }
}

/* TOC */
.yg-toc{
  margin: 6px 0 16px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 14px;
}

.yg-toc__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.yg-toc__title{
  font-weight:800;
  font-size:14px;
  color:#111827;
}

.yg-toc__toggle{
  background:#fff;
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:6px 10px;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
}

.yg-toc__list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px;
}

.yg-toc__item a{
  display:block;
  padding:8px 10px;
  border-radius:10px;
  text-decoration:none;
  border: 1px solid transparent;
  color:#111827;
  background:#fff;
}

.yg-toc__item--h3 a{
  padding-left: 18px;
  font-size: 13px;
  color:#374151;
}

.yg-toc__item a:hover{
  border-color:#d1d5db;
}

.yg-toc__item a.is-active{
  border-color:#0b4db7;
}

.yg-toc.is-collapsed .yg-toc__nav{
  display:none;
}

/* Category + Search layout */
.yg-two-col{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:12px;
  align-items:start;
}

.yg-filter{
  display:flex;
  align-items:center;
  gap:10px;
}
.yg-filter__label{
  font-size:13px;
  color:#6b7280;
  font-weight:700;
}
.yg-filter__select, .yg-filter__input{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #d1d5db;
  background:#fff;
  outline:none;
}

.yg-mini--big{
  grid-column: span 12;
}

@media (max-width: 980px){
  .yg-two-col{
    grid-template-columns: 1fr;
  }
}

/* Forum ana sayfasında genel soru sor butonunu gizle */
.ap-ask-btn { display: none !important; }

/* Soru formunda kategori seçimini gizle */
.ap-question-form .ap-category-select { display: none; }

/* Ders notu altı forum kutusu */
.hdn-forum-box{
  margin:24px 0 0;
  padding:18px 18px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fff;
}
.hdn-forum-box__head h3{
  margin:0 0 6px;
  font-size:18px;
}
.hdn-forum-box__head p{
  margin:0 0 12px;
  opacity:.8;
}
.hdn-forum-box__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.hdn-btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.12);
  font-weight:600;
}
.hdn-btn--primary{
  background:#16a34a;
  color:#fff;
  border-color:transparent;
}
.hdn-btn--secondary{
  background:#fff;
  color:#111;
}

/* Soru formunda kategori seçimini gizle (kategori URL ile gelir) */
.ap-question-form .ap-category-select,
.ap-question-form .ap-form-categories,
.ap-question-form .ap-category {
  display:none !important;
}

.yg-forumlist{
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fafafa;
}
.yg-forumlist__ul li a:hover{
  text-decoration:underline;
}

/* =========================================================
   AnsPress – Soru Listesi (questions) tema uyumu
   ========================================================= */
.ap-list,
.ap-questions,
.ap-q-list{
  background: transparent;
}

/* Tek tek soru satırlarını kart yap */
.ap-q-item,
.ap-list-item{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}

.ap-q-item:hover,
.ap-list-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* Soru başlığı */
.ap-q-title a{
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.ap-q-title a:hover{
  text-decoration: underline;
}

/* Meta satırı */
.ap-q-meta,
.ap-q-metas{
  font-size: 13px;
  opacity: .7;
  margin-top: 4px;
}

/* Oy / cevap kutuları */
.ap-q-right,
.ap-q-stats{
  display: flex;
  gap: 8px;
}

.ap-q-stat,
.ap-q-stat-box{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 12px;
  background: #f8fafc;
}

/* Arama alanı */
.ap-search-form input[type="text"]{
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.12);
}

/* Soru sor butonu */
.ap-btn-ask,
.ap-btn.ask-btn{
  border-radius: 14px !important;
  padding: 10px 16px !important;
  font-weight: 600;
}

/* === AnsPress soru kartı: ana kapsayıcıyı güçlendir === */
.ap-q-item,
.ap-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.ap-q-content { padding-right: 8px; }

.ap-q-right,
.ap-q-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ap-q-stat,
.ap-q-stat-box {
  min-width: 64px;
  text-align: center;
  font-weight: 600;
}

.ap-q-meta,
.ap-q-metas {
  font-size: 12px;
  color: #64748b;
}

.ap-q-meta a {
  color: #475569;
  text-decoration: none;
}

.ap-q-meta a:hover {
  text-decoration: underline;
}

.ap-questions-title::after {
  content: "Derslere göre filtrele, sorunu sor, tartışmaya katıl.";
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #64748b;
  font-weight: 400;
}

/* AnsPress tekil soru – içerik uyumu */
.yg-forum-q { line-height: 1.7; }
.yg-forum-actions { margin-top: 12px; }

/* AnsPress butonlarını biraz yuvarla */
.ap-btn, .ap-button, .ap-btn-primary, .ap-btn-submit {
  border-radius: 14px !important;
}

/* Search highlight */
mark.yg-highlight{
  background: #ffeb3b;
  padding: 0 .15em;
  border-radius: .2em;
}

/* =========================
   PRINT / PDF
   ========================= */

/* ekranda gizle */
.yg-print-signature { display: none; }

/* Yazdır/PDF görünümü */
@media print {
  #wpadminbar { display: none !important; }
  html { margin-top: 0 !important; }

  .yg-sidebar,
  .yg-topbar,
  .yg-share,
  .yg-toc,
  .yg-cta,
  .yg-grid,
  .yg-card--section,
  .yg-crumb,
  .yg-article__actions,
  footer,
  .comments-area,
  #comments,
  .comment-respond,
  .navigation,
  .wp-block-buttons {
    display: none !important;
  }

  .yg-layout,
  .yg-main,
  .yg-content,
  .yg-article,
  .yg-article__inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .yg-card,
  .yg-card--article {
    box-shadow: none !important;
    border: none !important;
  }

  .yg-article__header { margin-bottom: 12px !important; }
  .yg-article__title { font-size: 20pt !important; }
  .yg-article__meta { font-size: 10.5pt !important; color: #333 !important; }

  .yg-article__content {
    font-size: 12pt !important;
    line-height: 1.55 !important;
  }

  a, a:visited { color: #000 !important; text-decoration: none !important; }

  .yg-print-signature{
    display:block !important;
    margin-top: 18pt !important;
    padding-top: 10pt !important;
    border-top: 1px solid #bbb !important;
    font-size: 11pt !important;
    line-height: 1.35 !important;
  }

  h2, h3 { page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  img { max-width: 100% !important; page-break-inside: avoid; }
}

/* PRINT/PDF - ÇAPRAZ FİLİGRAN (2 SATIR) */
@media print {
  body { position: relative !important; }
  body::before{
    content: "Avukat Gökhan Yağmur\A www.gokhanyagmur.com";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    white-space: pre;
    text-align: center;
    font-size: 34pt;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .5px;
    color: rgba(0,0,0,0.08);
    z-index: 9999;
    pointer-events: none;
  }
  .yg-layout, .yg-main, .yg-content, .yg-article {
    position: relative;
    z-index: 1;
  }
}

/* =========================
   MOBIL MENU (OFF-CANVAS)
   ========================= */

/* Overlay (mobile) */
.yg-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index: 9998;
}

/* Hamburger (default hidden; mobile’da açılacak) */
.yg-burger{
  display:none;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  border-radius:12px;
  position:relative;
  cursor:pointer;
}
.yg-burger span{
  display:block;
  height:2px;
  width:22px;
  background:rgba(255,255,255,.95);
  margin:5px auto;
  border-radius:2px;
}

/* Mobilde sidebar off-canvas */
@media (max-width: 1024px){
  .yg-burger{ display:inline-flex; align-items:center; justify-content:center; }

  body.yg-menu-open .yg-overlay{ display:block; }

  .yg-sidebar{
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    width: 84vw;
    max-width: 360px;
    transform: translateX(-105%);
    transition: transform .22s ease;
    z-index: 9999;
  }
  body.yg-menu-open .yg-sidebar{
    transform: translateX(0);
  }

  /* Main full width */
  .yg-layout{ display:block; }
  .yg-main{ margin-left:0 !important; }

  /* Topbar sticky kalsın */
  .yg-topbar{
    position:sticky;
    top:0;
    z-index: 50;
  }
}

/* =========================
   MOBIL / TABLET HEADER (FINAL - TEK KAYNAK)
   ÜST: Logo solda, sağ: Profil/Çıkış + Arama ikon + Burger
   ALT: Arama paneli (ikonla aç/kapa) - Scisco benzeri
   Desktop’a dokunmaz
   ========================= */

@media (max-width: 1024px){

  /* Desktop arama kutusu mobilde kapalı */
  .yg-topbar__search{ display:none !important; }

  /* Topbar temel */
  .yg-topbar{
    position: sticky;
    top: 0;
    z-index: 9997;
  }

  /* Üst satır: tek sıra */
  .yg-topbar__inner{
    max-width:1100px;
    margin:0 auto;
    padding:12px 14px;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
  }

  /* Sol: logo */
  .yg-topbar__left{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex:1 1 auto !important;
    min-width:0 !important;
  }

  .yg-topbar__brand{
    display:inline-flex !important;
    align-items:center !important;
    margin:0 !important;
    text-decoration:none !important;
  }

  .yg-topbar__logo{
    height:28px !important;
    width:auto !important;
    display:block !important;
  }

  /* Sağ: butonlar + ikonlar */
  .yg-topbar__right{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
    flex:0 0 auto !important;
  }

  /* Mobilde “Merhaba” kapalı */
  .yg-user__hello{ display:none !important; }

  /* Profil/Çıkış butonları kompakt */
  .yg-user .yg-btn{
    padding:10px 12px !important;
    border-radius:14px !important;
    font-weight:700 !important;
    white-space:nowrap !important;
    line-height:1 !important;
  }

  /* İkon butonları */
  #ygMSearchBtn,
  #ygBurger{
    width:44px !important;
    height:44px !important;
    border-radius:14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  /* Mobil arama paneli: ikinci satır */
  #ygMSearch{
    padding:0 14px 14px !important;
  }

  #ygMSearch[hidden]{ display:none !important; }

  .yg-msearch__panel{
    margin-top:10px;
  }

  .yg-msearch__form{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    border-radius:18px !important;
    padding:12px 14px !important;
    background:rgba(0,0,0,0.18) !important;
    border:1px solid rgba(255,255,255,0.14) !important;
    backdrop-filter: blur(6px);
  }

  .yg-msearch__glass{
    font-size:18px !important;
    line-height:1 !important;
    opacity:.9 !important;
  }

  .yg-msearch__input{
    flex:1 !important;
    min-width:0 !important;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    color:#fff !important;
    font-size:18px !important;
  }

  .yg-msearch__input::placeholder{
    color:rgba(255,255,255,.75) !important;
  }

  .yg-msearch__close{
    border:0 !important;
    background:transparent !important;
    color:#fff !important;
    font-size:22px !important;
    line-height:1 !important;
    padding:6px 8px !important;
    border-radius:12px !important;
    opacity:.9 !important;
  }
}

/* Çok küçük ekran: Profil/Çıkış sığmazsa ufalt */
@media (max-width: 420px){
  .yg-user .yg-btn{
    padding:9px 10px !important;
    font-size:14px !important;
  }
  .yg-topbar__logo{ height:26px !important; }
}
/* ==============================
   MOBILE/TABLET HEADER (SAFE OVERRIDE)
   Desktop'a dokunmaz
============================== */
@media (max-width: 1024px){

  /* 1) Desktop arama çubuğunu mobilde kapat */
  .yg-topbar__search{
    display:none !important;
  }

  /* 2) Header satırı: logo solda, aksiyonlar sağda */
  .yg-topbar{
    position: sticky;
    top: 0;
    z-index: 9997;
  }

  .yg-topbar__inner{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    padding:12px 14px !important;
  }

  .yg-topbar__left{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex: 1 1 auto !important;
    min-width:0 !important;
  }

  .yg-topbar__brand{
    display:inline-flex !important;
    align-items:center !important;
    margin:0 !important;
  }

  /* LOGO: büyüyüp ortalamaya çalışmasın */
  .yg-topbar__logo{
    height:30px !important;
    width:auto !important;
    display:block !important;
  }

  .yg-topbar__right{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
    flex: 0 0 auto !important;
  }

  /* 3) "Merhaba ..." mobilde gizlensin */
  .yg-user__hello{ display:none !important; }

  /* 4) Profil/Çıkış + ikonlar = aynı boy, aynı radius */
  .yg-user{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    white-space:nowrap !important;
  }

  .yg-user .yg-btn{
    height:44px !important;
    padding:0 14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:14px !important;
    line-height:1 !important;
    font-size:14px !important;
    font-weight:700 !important;
  }

  /* ikon butonlar */
  #ygMSearchBtn,
  #ygBurger{
    width:44px !important;
    height:44px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:14px !important;
    border:1px solid rgba(255,255,255,.22) !important;
    background: rgba(255,255,255,.10) !important;
    color:#fff !important;
    cursor:pointer !important;
  }

  /* Burger çizgileri */
  #ygBurger span{
    width:18px !important;
    height:2px !important;
    background:rgba(255,255,255,.95) !important;
    border-radius:2px !important;
    display:block !important;
    margin:4px 0 !important;
  }

  /* 5) Mobil arama paneli (ikon -> açılır bar) */
  #ygMSearch{
    padding:10px 14px 14px !important;
  }
  #ygMSearch[hidden]{
    display:none !important;
  }

  .yg-msearch__form{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    padding:12px 14px !important;
    border-radius:18px !important;
    background: rgba(0,0,0,.18) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    backdrop-filter: blur(6px);
  }

  .yg-msearch__glass{
    font-size:18px !important;
    opacity:.9 !important;
    line-height:1 !important;
  }

  .yg-msearch__input{
    flex:1 !important;
    min-width:0 !important;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    color:#fff !important;
    font-size:18px !important;
  }
  .yg-msearch__input::placeholder{
    color: rgba(255,255,255,.75) !important;
  }

  .yg-msearch__close{
    border:0 !important;
    background:transparent !important;
    color:#fff !important;
    font-size:22px !important;
    line-height:1 !important;
    padding:6px 8px !important;
    border-radius:12px !important;
    cursor:pointer !important;
    opacity:.9 !important;
  }
}
/* =========================================================
   HEADER OVERRIDE (SADECE TOPBAR + MOBIL SEARCH + BURGER)
   Mevcut siteyi bozmaz; sadece header davranisini duzeltir.
   ========================================================= */

/* ---- Varsayilan: DESKTOP (>=1025) ---- */
@media (min-width: 1025px){

  /* topbar her zaman normal görünür */
  .yg-topbar{ display:block !important; }

  /* desktop düzeni */
  .yg-topbar__inner{
    max-width:1100px;
    margin:0 auto;
    padding:10px 16px;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    flex-direction:row !important;
  }

  /* logo */
  .yg-topbar__left{ display:flex !important; align-items:center !important; }
  .yg-topbar__logo{ height:34px !important; width:auto !important; }

  /* desktop arama ACIK */
  .yg-topbar__search{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    flex:1 !important;
    max-width:520px !important;
  }

  /* mobil search paneli desktopta KAPALI */
  #ygMSearch{ display:none !important; }
  #ygMSearchBtn{ display:none !important; }

  /* burger desktopta KAPALI */
  #ygBurger{ display:none !important; }

  /* merhaba masaüstünde kalsın */
  .yg-user__hello{ display:inline-block !important; }
}


/* ---- MOBIL / TABLET (<=1024) ---- */
@media (max-width: 1024px){

  /* desktop arama mobilde kapanacak */
  .yg-topbar__search{ display:none !important; }

  /* üst satır: logo solda + aksiyonlar sağda */
  .yg-topbar__inner{
    max-width:1100px;
    margin:0 auto;
    padding:12px 14px;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    flex-direction:row !important;
  }

  .yg-topbar__left{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex:1 1 auto !important;
    min-width:0 !important;
  }

  .yg-topbar__logo{
    height:28px !important;
    width:auto !important;
    display:block !important;
  }

  .yg-topbar__right{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
    flex:0 0 auto !important;
  }

  /* merhaba yazisi mobilde gizli */
  .yg-user__hello{ display:none !important; }

  /* Profil/Cikis butonlari: ayni yukseklik, ayni radius */
  .yg-user .yg-btn{
    height:44px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 14px !important;
    border-radius:14px !important;
    font-weight:700 !important;
    white-space:nowrap !important;
  }

  /* ikon butonlar: aynı kare boy */
  #ygMSearchBtn,
  #ygBurger{
    width:44px !important;
    height:44px !important;
    border-radius:14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:1px solid rgba(255,255,255,.22) !important;
    background:rgba(255,255,255,.10) !important;
    color:#fff !important;
  }

  /* burger çizgileri */
  #ygBurger span{
    display:block;
    width:18px;
    height:2px;
    background:rgba(255,255,255,.92);
    margin:4px 0;
    border-radius:2px;
  }

  /* mobil search panel (Scisco gibi altta açılan bar) */
  #ygMSearch{
    padding:10px 14px 14px;
  }
  #ygMSearch[hidden]{ display:none !important; }

  .yg-msearch__form{
    display:flex;
    align-items:center;
    gap:10px;
    border-radius:18px;
    padding:12px 14px;
    background:rgba(0,0,0,0.18);
    border:1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
  }

  .yg-msearch__glass{
    font-size:18px;
    line-height:1;
    opacity:.9;
  }

  .yg-msearch__input{
    flex:1;
    min-width:0;
    border:0;
    outline:0;
    background:transparent;
    color:#fff;
    font-size:18px;
  }
  .yg-msearch__input::placeholder{
    color:rgba(255,255,255,.75);
  }

  .yg-msearch__close{
    border:0;
    background:transparent;
    color:#fff;
    font-size:22px;
    line-height:1;
    padding:6px 8px;
    border-radius:12px;
    opacity:.9;
  }
}
/* =========================
   STICKY FOOTER (footer .yg-content icinde)
   ========================= */
html, body { height: 100% !important; }

.yg-layout { min-height: 100vh !important; }

/* yg-main zaten sidebar yaninda; dikeyde esnesin */
.yg-main{
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

/* footer burada: .yg-content'in icinde */
.yg-content{
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

/* footer'i en alta it */
.yg-footer{
  margin-top: auto !important;
}
/* =========================================
   FOOTER STICKY FIX (sayfa kısa olsa da altta)
   Bozmadan: mevcut layout'u korur
   ========================================= */

/* Esas taşıyıcı: sidebar + main bütün yüksekliği doldursun */
.yg-layout{
  min-height: 100vh;      /* zaten var ama garanti */
}

/* Main kolon: footer'ı aşağı itmek için flex kolon yap */
.yg-main{
  display: flex;
  flex-direction: column;
  min-height: 100vh;      /* sidebar fixed/sticky olsa bile main kendi yüksekliğini korur */
}

/* İçerik alanı büyüyerek footer'ı iter */
.yg-content{
  flex: 1 0 auto;
}

/* Footer en sonda kalsın */
.yg-footer{
  margin-top: auto;
}
/* =========================================
   LOGIN / REGISTER / RESET sayfaları (Theme My Login) düzeni
   ========================================= */
.tml, .login, .tml-login, .tml-register, .tml-lostpassword{
  max-width: 980px;
  margin: 0 auto;
}

.tml form,
.login form{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:18px;
}

.tml input[type="text"],
.tml input[type="password"],
.tml input[type="email"],
.login input[type="text"],
.login input[type="password"],
.login input[type="email"]{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #d1d5db;
  outline:none;
}

.tml input[type="submit"],
.login input[type="submit"]{
  padding:10px 14px;
  border-radius:12px;
  border:0;
  background:#10b981;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
/* =========================================
   LOGIN / REGISTER / LOST PASSWORD: submit butonlarını tema butonu gibi yap
   (Güvenli: sadece bu sayfalardaki formlar)
   ========================================= */

.tml input[type="submit"],
.tml button[type="submit"],
.login input[type="submit"],
.login button[type="submit"]{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  background: #10b981;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.tml input[type="submit"]:hover,
.tml button[type="submit"]:hover,
.login input[type="submit"]:hover,
.login button[type="submit"]:hover{
  filter: brightness(0.96);
}

.tml input[type="submit"]:focus,
.tml button[type="submit"]:focus,
.login input[type="submit"]:focus,
.login button[type="submit"]:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(16,185,129,.25);
}
/* =========================
   COMMENTS – TEMA UYUMLU
   ========================= */

.comments-area{
  margin-top: 24px;
}

/* Ana yorum kartı */
.comments-area,
.comment-respond{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:18px;
}

/* Başlıklar */
.comments-title,
.comment-reply-title{
  font-size:18px;
  font-weight:800;
  margin-bottom:12px;
}

/* Bilgilendirme metni */
.comments-area .comment-notes,
.comments-area .logged-in-as{
  font-size:13px;
  color:#6b7280;
  margin-bottom:12px;
}

/* Tekil yorum */
.comment-list{
  list-style:none;
  margin:0 0 18px;
  padding:0;
}

.comment{
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px;
  margin-bottom:12px;
  background:#f9fafb;
}

/* Avatar */
.comment-author img{
  border-radius:999px;
}

/* Yorum üst bilgisi */
.comment-author,
.comment-metadata{
  font-size:13px;
  color:#374151;
}

.comment-metadata a{
  color:#0b4db7;
  text-decoration:none;
}
.comment-metadata a:hover{
  text-decoration:underline;
}

/* Onay bekliyor uyarısı */
.comment-awaiting-moderation{
  margin-top:8px;
  padding:8px 10px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:10px;
  font-size:13px;
  color:#92400e;
}

/* Yorum metni */
.comment-content{
  margin-top:8px;
  font-size:15px;
  line-height:1.6;
  color:#111827;
}

/* === FORM === */

/* Label */
.comment-form label{
  display:block;
  font-size:13px;
  font-weight:700;
  margin-bottom:6px;
}

/* Textarea & input */
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"]{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #d1d5db;
  font-size:14px;
  outline:none;
  background:#fff;
}

.comment-form textarea{
  min-height:120px;
  resize:vertical;
}

/* Focus */
.comment-form textarea:focus,
.comment-form input:focus{
  border-color:#0b4db7;
  box-shadow:0 0 0 3px rgba(11,77,183,.15);
}

/* Submit butonu */
.comment-form input[type="submit"]{
  margin-top:12px;
  background:#10b981;
  color:#fff;
  border:0;
  border-radius:14px;
  padding:10px 16px;
  font-weight:700;
  cursor:pointer;
}

.comment-form input[type="submit"]:hover{
  filter:brightness(.95);
}

/* Küçük linkler (Oturum aç / Şifre vs.) */
.comment-form a{
  color:#0b4db7;
  text-decoration:none;
  font-weight:600;
}

.comment-form a:hover{
  text-decoration:underline;
}

/* Mobil uyum */
@media (max-width: 600px){
  .comments-area,
  .comment-respond{
    padding:14px;
  }
}
/* =========================
   TIPOGRAFI – MODERN (INTER)
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Genel */
body{
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.15px;
  color:#111827;
}

/* Başlıklar */
h1, h2, h3, h4, h5, h6{
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
  color:#0f172a;
}

/* Ana makale başlığı */
.yg-article__title{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* İçerik metni */
.yg-article__content{
  font-size: 16.5px;
  line-height: 1.8;
  color:#111827;
}

/* Paragraflar biraz nefes alsın */
.yg-article__content p{
  margin-bottom: 16px;
}

/* Küçük meta yazılar */
.yg-article__meta,
.yg-muted,
.yg-section__sub{
  font-size: 13px;
  color:#64748b;
  letter-spacing: 0;
}

/* Kart başlıkları */
.yg-mini__title,
.yg-section__title{
  font-weight: 700;
  letter-spacing: -0.25px;
}

/* Buton yazıları daha net */
.yg-btn{
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.1px;
}

/* Linkler – hukuk sitesine yakışır sakin mavi */
a{
  color:#1e40af;
}
a:hover{
  color:#1d4ed8;
}
/* AnsPress "powered by" yazısını gizle */
.ap-credit,
.ap-footer,
.ap-footer-link,
.ap-poweredby,
.ap-copyright {
  display: none !important;
}
/* içinde anspress.net geçen linki gizle */
a[href*="anspress.net"]{
  display:none !important;
}
/* HEADER + SIDEBAR: hover olunca maviye dönmesin, beyaz kalsın */
.yg-topbar a,
.yg-topbar a:visited,
.yg-topbar a:hover,
.yg-topbar a:focus,
.yg-topbar a:active,
.yg-sidebar a,
.yg-sidebar a:visited,
.yg-sidebar a:hover,
.yg-sidebar a:focus,
.yg-sidebar a:active{
  color:#fff !important;
  text-decoration:none; /* istersen underline kalsın diye bunu silebilirsin */
}

/* Menü linklerinde underline istemiyorsan kesin kapat */
.yg-sidebar__menu a:hover,
.yg-nav__menu a:hover{
  text-decoration:none !important;
}
/* ===== Footer: header rengiyle aynı olsun ===== */
.yg-footer{
  background:#0b4db7; /* header ile aynı */
  color: rgba(255,255,255,.90);
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.yg-footer__brand{
  color: rgba(255,255,255,.95);
}

.yg-footer__copy{
  color: rgba(255,255,255,.80);
}
/* Topbar: yazı brand */
.yg-topbar__brand--text{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 16px;
  color:#fff;
  text-decoration:none;
  white-space: nowrap;
}

/* Sidebar: logo */
.yg-sidebar__logo{
  display:block;
  max-width: 210px;
  height: auto;
}
/* Sidebar: logo (kucult) */
.yg-sidebar__brand{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px 12px; /* biraz nefes */
}

.yg-sidebar__logo{
  display:block;
  height: 64px;      /* <-- bunu 56-72 arasi istedigin gibi oynat */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
/* Sidebar brand: menü yazılarıyla aynı hizaya getir */
.yg-sidebar__brand{
  display:flex;
  align-items:center;
  justify-content:flex-start; /* solda dursun */
  padding: 18px 14px;         /* <-- menü padding'i neyse buna eşitle */
}

/* Logo */
.yg-sidebar__logo{
  display:block;
  height: 48px;   /* biraz daha kompakt */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Eğer menü linklerinde ikon/boşluk varsa logo da aynı “indent” alsın */
.yg-sidebar__brand .yg-sidebar__logo{
  margin-left: 0; /* gerekirse 4-8px verilebilir */
}
/* Footer link renkleri - maviye kaçmasın */
.yg-footer,
.yg-footer *{
  color: rgba(255,255,255,.92);
}

.yg-footer a,
.yg-footer a:visited{
  color: rgba(255,255,255,.92) !important;
  text-decoration: none;
}

.yg-footer a:hover,
.yg-footer a:focus{
  color: #fff !important;
  text-decoration: underline;
}

/* Linklerin bulunduğu orta alan biraz daha okunaklı olsun */
.yg-footer__links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 6px 0;
}

.yg-footer__links a{
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  opacity: .95;
}
/* FOOTER - düzenli layout */
.yg-footer{
  background: #1f4fbf; /* header mavisi ile uyumlu */
  color: rgba(255,255,255,.92);
  border-top: 1px solid rgba(255,255,255,.12);
}

.yg-footer__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 16px 22px;
  align-items: center;
}

.yg-footer__brand{
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
}

.yg-footer__author{
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 13px;
  opacity: .95;
  color: rgba(255,255,255,.92) !important;
  text-decoration: none;
}

.yg-footer__author:hover{ text-decoration: underline; }

.yg-footer__links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;     /* masaüstünde ortalı */
  align-items: center;
}

.yg-footer__links a,
.yg-footer__links a:visited{
  color: rgba(255,255,255,.92) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  opacity: .95;
}

.yg-footer__links a:hover,
.yg-footer__links a:focus{
  color: #fff !important;
  text-decoration: underline;
}

.yg-footer__copy{
  font-size: 13px;
  opacity: .92;
  white-space: nowrap;
  text-align: right;
}

/* Mobil düzen */
@media (max-width: 900px){
  .yg-footer__inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .yg-footer__copy{
    text-align: center;
    white-space: normal;
  }
  .yg-footer__links{
    justify-content: center;
  }
}
.yg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}

.yg-btn--primary {
  background: #22b573; /* sitedeki yeşil ton */
  color: #fff;
}

.yg-btn--primary:hover {
  background: #1e9e64;
  color: #fff;
}
.yg-sidebar__cta {
  display: grid;
  gap: 12px;
}

.yg-btn--full {
  width: 100%;
  justify-content: center;
}

.yg-btn--ghost {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
}

.yg-btn--ghost:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}
/* Paylaş / Yazdır / PDF bloğunu hafif gri "callout" yap */
.yg-sharebox,
.share-box,
.yg-content .share,
.yg-content .share-wrap,
.yg-content .sharedaddy,
.yg-content .ssbp-wrap {
  background: rgba(0,0,0,.035);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
}

/* Başlık satırı gibi duran kısım varsa onu daha belirgin yap */
.yg-sharebox h3,
.share-box h3,
.yg-content .share h3,
.yg-content .share-wrap h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

/* Butonların olduğu satır biraz daha derli toplu */
.yg-sharebox a,
.yg-sharebox button,
.share-box a,
.share-box button,
.yg-content .ssbp-wrap a {
  border-radius: 12px;
}

/* Hover’da yazı rengi sapıtmasın */
.yg-sharebox a:hover,
.share-box a:hover,
.yg-content .ssbp-wrap a:hover {
  color: inherit;
}
/* Paylaş / Yazdır / PDF kutusunu: içindeki sosyal linklerden yakala (modern yöntem) */
.yg-content div:has(a[href*="whatsapp"]):has(a[href*="facebook"]),
.yg-content section:has(a[href*="whatsapp"]):has(a[href*="facebook"]),
.yg-content article div:has(a[href*="whatsapp"]):has(a[href*="facebook"]) {
  background: #f4f6fb !important;        /* kırık beyaz-gri */
  border: 1px solid #e3e7f2 !important;
  border-radius: 18px !important;
  padding: 18px !important;
}

/* İçindeki butonlar biraz daha “premium” dursun */
.yg-content div:has(a[href*="whatsapp"]):has(a[href*="facebook"]) a,
.yg-content section:has(a[href*="whatsapp"]):has(a[href*="facebook"]) a {
  background: #ffffff !important;
  border: 1px solid #d8deee !important;
  border-radius: 14px !important;
}

/* Sağdaki açıklama metni biraz daha sakin */
.yg-content div:has(a[href*="whatsapp"]):has(a[href*="facebook"]) p,
.yg-content section:has(a[href*="whatsapp"]):has(a[href*="facebook"]) p {
  color: #64748b !important;
}