:root{
  --bg:#0b1220;
  --bg2:#070b14;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.10);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.72);
  --line: rgba(255,255,255,.12);
  --primary:#2563eb;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(37,99,235,.20), transparent 60%),
    radial-gradient(1000px 600px at 85% 20%, rgba(34,197,94,.10), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
  overflow-x:hidden;
}

/* LIGHT MODE */
body.light{
  --bg:#f4f6fb;
  --bg2:#ffffff;
  --card: rgba(17,24,39,.06);
  --card2: rgba(17,24,39,.10);
  --text:#0b1220;
  --muted: rgba(11,18,32,.72);
  --line: rgba(11,18,32,.12);
  --shadow: 0 12px 40px rgba(2,6,23,.12);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; height:auto; }
.container{ width:min(1120px, 92%); margin:0 auto; }

.announcement{
  background: linear-gradient(90deg, rgba(37,99,235,.95), rgba(34,197,94,.75));
  color:#fff;
  padding: 10px 0;
  font-size:14px;
}

/* HEADER */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10,16,30,.55);
  border-bottom: 1px solid var(--line);
}
body.light .site-header{ background: rgba(255,255,255,.70); }

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 0;
}

.logo-link img{ max-height:44px; width:auto; }

.desktop-nav .menu-list{
  list-style:none;
  margin:0; padding:0;
  display:flex;
  gap: 10px;
  align-items:center;
}
.desktop-nav .menu-list a{
  display:inline-flex;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  transition: .2s ease;
}
.desktop-nav .menu-list a:hover{
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.header-actions{ display:flex; gap:8px; align-items:center; }
.icon-btn{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  transition:.2s ease;
}
.icon-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
.burger{ display:none; }

/* SEARCH POPUP */
.search-popup{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  z-index: 70;
}
.search-popup.active{ display:flex; }
.search-box{
  width: min(560px, 92%);
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.search-form{ display:flex; gap: 10px; }
.search-field{
  width:100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline:none;
}
.search-submit{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(37,99,235,.95), rgba(34,197,94,.75));
  color:#fff;
  cursor:pointer;
}
.ghost-btn{
  margin-top: 10px;
  width:100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  cursor:pointer;
}

/* DRAWER */
.drawer-backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  z-index: 80;
}
.drawer-backdrop.active{ display:block; }

.mobile-drawer{
  position:fixed;
  top:0; right:0;
  height:100%;
  width: min(360px, 88%);
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform .25s ease;
  z-index: 90;
}
.mobile-drawer.active{ transform: translateX(0); }

.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.drawer-title{ font-weight:800; }
.drawer-body{ padding: 14px; }
.drawer-section{ margin-bottom: 16px; }
.drawer-sec-title{ font-weight: 700; margin-bottom: 10px; color: var(--muted); }

.mobile-menu-list{
  list-style:none;
  margin:0; padding:0;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.mobile-menu-list a{
  display:block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.cat-toggle{
  width:100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  text-align:left;
  font-weight:700;
}
.mobile-cats{
  display:none;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  padding: 10px 12px;
}
.mobile-cats.active{ display:block; }
.mobile-cats ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.mobile-cats a{ color: var(--muted); }
.mobile-cats a:hover{ color: var(--text); }

.social-mini{ display:flex; gap: 10px; flex-wrap: wrap; }
.social-mini a{ color: var(--muted); }
.social-mini a:hover{ color: var(--text); }

/* HOME */
.home-head{ padding: 18px 0 10px; }
.home-head h1{ margin:0 0 6px; font-size: 26px; }
.home-head p{ margin:0; color: var(--muted); }

.hero-grid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-big, .hero-small{
  position:relative;
  overflow:hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.hero-big img{ width:100%; height: 520px; object-fit: cover; transition:.35s ease; }
.hero-small img{ width:100%; height: 252px; object-fit: cover; transition:.35s ease; }
.hero-big:hover img, .hero-small:hover img{ transform: scale(1.03); }

.overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,.80), rgba(0,0,0,0));
  color:#fff;
}
.overlay h2{ margin: 10px 0 0; font-size: 32px; line-height:1.15; }
.overlay h3{ margin: 10px 0 0; font-size: 18px; line-height:1.25; }
.badge{
  display:inline-block;
  background: var(--primary);
  color:#fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 700;
}

.section-head{ margin: 12px 0; }
.section-head h2{ margin:0; font-size: 20px; }

.post-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

/* POST CARD */
.post-card{
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  background: linear-gradient(180deg, var(--card2), var(--card));
  box-shadow: var(--shadow);
}
.post-card-link{ display:block; }
.post-thumb img{ width:100%; height: 180px; object-fit: cover; }
.post-card-body{ padding: 12px; }
.post-card-title{ margin:0 0 8px; font-size: 16px; }
.post-card-excerpt{ margin:0; color: var(--muted); font-size: 13px; line-height:1.5; }

/* SINGLE */
.single-wrap{ padding: 18px 0 30px; }
.single{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card2), var(--card));
  box-shadow: var(--shadow);
  padding: 16px;
}
.single-featured img{
  width:100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.single-title{ margin: 14px 0 10px; font-size: 28px; }
.single-content{ color: rgba(234,240,255,.92); }
body.light .single-content{ color: rgba(11,18,32,.92); }

.ad-slot{
  margin: 18px 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
  text-align:center;
  color: var(--muted);
}

/* COMMENTS */
.comments-area{ margin-top: 26px; }
.comments-title{ margin:0 0 10px; }
.comments-area input, .comments-area textarea{
  width:100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline:none;
  margin-bottom: 10px;
}
.comments-area textarea{ min-height: 120px; resize: vertical; }
.btn.primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  cursor:pointer;
  color:#fff;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(37,99,235,.95), rgba(34,197,94,.75));
}

/* FOOTER */
.site-footer{
  margin-top: 44px;
  padding: 36px 0 22px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.12);
}
body.light .site-footer{ background: rgba(17,24,39,.03); }
.footer-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.site-footer h3{ margin:0 0 10px; font-size: 14px; }
.footer-text{ color: var(--muted); font-size: 14px; line-height:1.6; }
.footer-menu{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.footer-menu a{ color: var(--muted); }
.footer-menu a:hover{ color: var(--text); }
.footer-social{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.footer-social a{ color: var(--muted); }
.footer-social a:hover{ color: var(--text); }
.footer-bottom{ margin-top: 18px; text-align:center; color: var(--muted); font-size: 13px; }

/* MOBILE */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-big img{ height: 320px; }
  .hero-small img{ height: 200px; }
  .overlay{ padding: 14px; }
  .overlay h2{ font-size: 22px; }
  .overlay h3{ font-size: 16px; }
  .badge{ font-size: 10px; padding: 4px 8px; }

  .desktop-nav{ display:none; }
  .burger{ display:inline-flex; }
  .footer-grid{ grid-template-columns: 1fr; }

  .single-featured img{ height: 260px; }
}
/* FORCE GLOBAL DARK */

html.dark body{
  background: #0b1220 !important;
  color: #eaf0ff !important;
}

/* FIX SINGLE DARK CARD */

.single{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)) !important;
}

.single-content{
  color: #eaf0ff !important;
}

.single-content p{
  color: rgba(234,240,255,.92) !important;
}

html.dark a{
  color: #eaf0ff;
}

html.dark p,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6{
  color: #eaf0ff;
}
/* MOBILE GRID FIX - 3 COLUMN */

@media (max-width: 900px){

  .post-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolon */
    gap: 10px;
  }

  .post-card{
    margin: 0;
    border-radius: 12px;
  }

  .post-thumb img{
    height: 110px;
    object-fit: cover;
  }

  .post-card-body{
    padding: 8px;
  }

  .post-card-title{
    font-size: 13px;
    line-height: 1.2;
  }

  .post-card-excerpt{
    display: none; /* mobilde sadece başlık */
  }

}
/* HARD DARK OVERRIDE */

body{
  background: #0b1220 !important;
  color: #eaf0ff !important;
}

body.light{
  background: #0b1220 !important;
  color: #eaf0ff !important;
}

.single-content,
.single-content p,
.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6{
  color: #eaf0ff !important;
}
.ad-footer-top{
  margin: 40px auto 20px;
  text-align:center;
}