/* =========================================================
   Yazicidan.com – Premium Light / Dark Tema
   - Layout (1320px)
   - Navbar: NORMAL (fixed değil), sayfayla birlikte akar
   - Theme switch: navbar içinde pill kutu
   ========================================================= */

/* ---------- ROOT / LIGHT PALET ---------- */
:root{
  --bg:#f4f4ff;
  --bg-soft:#eef2ff;
  --card:#ffffff;
  --card-soft:#f9fafb;

  --accent:#f97316;
  --accent-soft:rgba(248,171,88,.16);
  --accent-strong:#ea580c;

  --muted:#6b7280;
  --text:#0f172a;

  --border:#e2e8f0;

  --radius-lg:20px;
  --radius-xl:26px;

  --shadow-soft:0 18px 40px rgba(15,23,42,.18);

  /* Navbar ölçüleri (TEK KAYNAK) */
  --yd-nav-pad-y:14px;   /* .yd-nav__wrap dikey padding */
  --yd-nav-pad-x:16px;   /* .yd-nav__wrap yatay padding */
  --yd-nav-row:46px;     /* içerik satır yüksekliği (brand + menu line) */
  --yd-nav-h: calc(var(--yd-nav-row) + (var(--yd-nav-pad-y) * 2)); /* toplam */
}

/* ---------- GLOBAL RESET & TYPO ---------- */
*{
  box-sizing:border-box;
  font-family:"Poppins",system-ui,-apple-system,BlinkMacSystemFont,
    "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

html,body{
  width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  min-height:100vh;

  /* FIXED navbar yok -> ekstra üst boşluk yok */
  padding:0 16px 24px;

  background:
    radial-gradient(circle at 0 0,#e0f2fe 0,transparent 55%),
    radial-gradient(circle at 100% 0,#fee2e2 0,transparent 55%),
    linear-gradient(135deg,#eef2ff 0,#f9fafb 50%,#fdf2e9 100%);

  color:var(--text);
  font-size:15px;
}

h1{
  margin:0 0 6px;
  font-size:30px;
  font-weight:600;
  letter-spacing:.01em;
  color:#0f172a;
}

p{margin:0;}
p.lead{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:3px;
}

small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}

/* =====================================================
   LAYOUT (Her sayfa aynı genişlik)
   ===================================================== */
.container,
.page,
main.container{
  width:100%;
  max-width:1320px;
  margin:0 auto;
}

.page{position:relative;}

.page::before{
  content:"";
  position:fixed;
  width:420px;
  height:420px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(248,171,88,.25),transparent 65%);
  top:-140px;
  right:-130px;
  z-index:-1;
}

.page-header{margin:16px 0 12px;}

/* =====================================================
   NAVBAR (yd-*) – NORMAL (fixed değil)
   ===================================================== */
.yd-nav{
  position:relative; /* fixed kaldırıldı */
  z-index:10;

  background:rgba(244,244,255,.55);
  border-bottom:1px solid rgba(15,23,42,.12);

  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

body.dark .yd-nav{
  background:rgba(2,6,23,.55);
  border-bottom:1px solid rgba(148,163,184,.25);
}

.yd-nav__wrap{
  max-width:1320px;
  margin:0 auto;
  padding: var(--yd-nav-pad-y) var(--yd-nav-pad-x);

  min-height: var(--yd-nav-h);

  display:flex;
  align-items:center;
  gap:14px;
}

.yd-brand{
  font-weight:800;
  text-decoration:none;
  color:inherit;
  white-space:nowrap;
  line-height:1;
}

.yd-nav__right{
  margin-left:auto;
  display:flex;
  gap:12px;
}

/* Menü */
.yd-menu{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* DOT ayırıcı (senin <span class="dot">•</span>) */
.dot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 4px;
  color:rgba(107,114,128,.65);
  font-weight:700;
  user-select:none;
}
body.dark .dot{color:rgba(148,163,184,.65);}

.yd-menu a{
  text-decoration:none;
  font-weight:700;
  color:inherit;
  padding:12px 12px;
  border-radius:12px;

  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.35);

  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease,
    transform .08s ease;
}

.yd-menu a:hover{
  background:rgba(255,255,255,.60);
  border-color:rgba(15,23,42,.18);
  transform:translateY(-1px);
      align-items: center;
    justify-content: center;
}

/* Active = hover gibi (light) */
.yd-menu a.active{
  background:rgba(248,171,88,.22);
  border-color:rgba(248,171,88,.55);
  color:#92400e;
      align-items: center;
    justify-content: center;
}

/* Active iken hover da çalışsın (light) */
.yd-menu a.active:hover{
  background:rgba(248,171,88,.30);
  border-color:rgba(248,171,88,.70);
  transform:translateY(-1px);
      align-items: center;
    justify-content: center;
}

/* Dark menü */
body.dark .yd-menu a{
  border-color:rgba(148,163,184,.22);
  background:rgba(2,6,23,.25);
  color:rgba(248,250,252,.86);
}

body.dark .yd-menu a:hover{
  background:rgba(2,6,23,.45);
  border-color:rgba(148,163,184,.35);
  transform:translateY(-1px);
}

body.dark .yd-menu a.active{
  background:rgba(248,171,88,.18);
  border-color:rgba(248,171,88,.55);
  color:#fde68a;
}

body.dark .yd-menu a.active:hover{
  background:rgba(248,171,88,.28);
  border-color:rgba(248,171,88,.75);
  transform:translateY(-1px);
}

/* Theme switch kutusu (menü butonu gibi) */
.yd-theme{
  display:inline-flex;
  align-items:center;
  gap:10px;

  padding:6px 10px;
  border-radius:12px;

  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.35);

  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

body.dark .yd-theme{
  border-color:rgba(148,163,184,.22);
  background:rgba(2,6,23,.25);
}

.yd-theme-label{
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
  color:inherit;
}

/* Switch component */
.theme-toggle-input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.theme-toggle-label{
  position:relative;
  display:inline-flex;
  align-items:center;
  width:52px;
  height:26px;
  border-radius:999px;
  background:#e5e7eb;
  cursor:pointer;
  transition: background-color .25s ease, box-shadow .25s ease;
  box-shadow:
    0 0 0 1px rgba(148,163,184,.5),
    0 4px 10px rgba(148,163,184,.55);
}

.theme-toggle-inner{
  position:absolute;
  inset:3px;
  border-radius:999px;
  background:linear-gradient(135deg,#38bdf8,#6366f1);
  opacity:.8;
  transition: opacity .25s ease;
}

.theme-toggle-circle{
  position:absolute;
  width:20px;
  height:20px;
  border-radius:999px;
  background:#ffffff;
  box-shadow:0 4px 8px rgba(148,163,184,.8);
  left:3px;
  top:3px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  transition: transform .25s ease;
}

.theme-toggle-circle::before{content:"☀️";}

.theme-toggle-input:checked + .theme-toggle-label{
  background:#020617;
  box-shadow:
    0 0 0 1px rgba(148,163,184,.4),
    0 8px 18px rgba(15,23,42,.85);
}

.theme-toggle-input:checked + .theme-toggle-label .theme-toggle-inner{
  opacity:1;
  background:linear-gradient(135deg,#facc15,#f97316);
}

.theme-toggle-input:checked + .theme-toggle-label .theme-toggle-circle{
  transform:translateX(26px);
}
.theme-toggle-input:checked + .theme-toggle-label .theme-toggle-circle::before{
  content:"🌙";
}

/* Mobile navbar */
@media (max-width: 980px){
  :root{
    --yd-nav-pad-y:12px;
    --yd-nav-row:74px; /* wrap olunca satır büyüyor */
  }


  .yd-nav__wrap{
    flex-wrap:wrap;
    row-gap:10px;
  }

  .yd-nav__right{
    width:100%;
    justify-content:flex-end;
    flex-wrap:wrap;
  }
}

/* =====================================================
   BADGE / HEADER
   ===================================================== */
.page-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(148,163,184,.35);
  color:var(--muted);
  font-size:11px;
  margin-bottom:8px;
}

.page-badge::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 5px rgba(34,197,94,.25);
}

body.dark .page-badge{
  background:rgba(15,23,42,.85);
  border-color:rgba(148,163,184,.5);
  color:#e5e7eb;
}

/* =====================================================
   PROMO
   ===================================================== */
.promo-row{
  width:100%;
  margin:18px 0;
  display:flex;
  justify-content:center;
  align-items:center;
}

.promo-row a{
  display:block;
  width:100%;
  max-width:820px;
}

.promo-row img{
  display:block;
  width:100%;
  height:auto;
  border-radius:18px;
  box-shadow:0 18px 35px rgba(15,23,42,.18);
}

/* =====================================================
   MAIN APP LAYOUT (index.php)
   ===================================================== */
.layout{
  display:flex;
  gap:20px;
  align-items:stretch;
  margin-top:18px;
}

.layout > .card:first-child{flex:1.15;}
.layout > .card.results{flex:1;}

.card{
  position:relative;
  background:linear-gradient(145deg,var(--card),var(--card-soft));
  border-radius:var(--radius-xl);
  padding: 20px;
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
}

.card.results{
  border-color:rgba(248,171,88,.4);
  overflow:hidden;
}

.card-inner{
  position:relative;
  z-index:1;
}

/* Form grid */
.grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 16px;
}

.full{grid-column:1 / -1;}

.row{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.btn-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* Section titles */
.section-title{
  font-size:14px;
  font-weight:600;
  color:var(--accent-strong);
  background:var(--accent-soft);
  padding:5px 10px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(248,171,88,.45);
}

.section-title::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--accent);
}

/* Inputs */
input{
  width:100%;
  padding:9px 11px;
  border-radius:12px;
  border:1px solid #e2e8f0;
  background:#f9fafb;
  color:var(--text);
  font-size:14px;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    transform .08s ease;
}

input::placeholder{color:#9ca3af;}

input:focus{
  outline:none;
  border-color:#f6c75c;
  box-shadow:
    0 0 0 1px rgba(246,199,92,.8),
    0 0 0 8px rgba(246,199,92,.18);
  background:#ffffff;
  transform:translateY(-1px);
}

.grid small{
  font-size:11px;
  color:#9ca3af;
  opacity:.9;
}

/* Buttons */
button{
  border:none;
  border-radius:999px;
  padding:9px 18px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  letter-spacing:.02em;
  transition:
    transform .08s ease,
    box-shadow .15s ease,
    background .15s ease,
    opacity .12s ease;
}

button:disabled{
  opacity:.6;
  cursor:default;
  transform:none;
  box-shadow:none;
}

#calcBtn{
  background:linear-gradient(135deg,var(--accent),var(--accent-strong));
  color:#ffffff;
  box-shadow:0 8px 20px rgba(248,171,88,.45);
}

#calcBtn:hover:not(:disabled){
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(248,171,88,.55);
}

#resetBtn{
  background: #fff;
  color: #6b7280;
  border:1px solid #d1d5db;
}

#resetBtn:hover:not(:disabled){
  background:#f3f4f6;
}

/* Results header & badge */
.results-header-title{
  font-size:20px;
  font-weight:600;
  color:#111827;
  margin:0;
}

.results-header-sub{
  font-size:12px;
  color:#6b7280;
  margin-top:4px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  background:#fefce8;
  color:#854d0e;
  border:1px solid rgba(250,204,21,.7);
  margin-top:8px;
}

.badge-dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.25);
}

/* KPI */
.kpi-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}

.kpi-card{
  background:radial-gradient(circle at top left,rgba(248,171,88,.18),#fff);
  border-radius:16px;
  padding:9px 11px;
  border:1px solid rgba(248,171,88,.4);
  box-shadow:0 10px 24px rgba(15,23,42,.12);
}

.kpi-label{
  font-size:11px;
  color:#b45309;
  margin-bottom:4px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.kpi-value{
  font-size:20px;
  font-weight:700;
  color:#111827;
}

.kpi-sub{
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}

/* Detail section & table */
.result-section{
  margin-top:14px;
  background:#f9fafb;
  border-radius:16px;
  padding:12px 12px 10px;
  border:1px solid #e5e7eb;
  box-shadow:0 12px 28px rgba(15,23,42,.1);
}

.result-section h4{
  margin:0 0 6px;
  font-size:13px;
  font-weight:600;
  color:#92400e;
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

th,td{
  padding:6px 8px;
  border-bottom:1px solid #e5e7eb;
  text-align:left;
}

th{
  background:#fffbeb;
  font-weight:600;
  color:#374151;
}

tr:nth-child(even) td{background:#fefce8;}

tr:last-child td,
tr:last-child th{border-bottom:none;}

.mono{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,
    "Liberation Mono","Courier New",monospace;
  text-align:right;
  white-space:nowrap;
}

.row-highlight{
  background:#fef3c7 !important;
  font-weight:600;
}

.row-highlight-strong{
  background:#fde68a !important;
  font-weight:700;
}

/* Foot formulas */
.foot{
  margin-top:10px;
  color:var(--muted);
  font-size:11px;
  padding-bottom:6px;
}

.foot ul{
  margin:4px 0 0 18px;
  padding:0;
}

.foot li{margin-bottom:2px;}

/* Empty state */
.empty-state{
  background:#fefce8;
  border-radius:16px;
  padding:16px 14px;
  border:1px dashed rgba(251,191,36,.9);
  font-size:13px;
  color:#854d0e;
  margin-top:14px;
}

.empty-state span{
  display:block;
  font-size:12px;
  color:#a16207;
  margin-top:3px;
}

/* PDF button */
.btn-pdf{
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#ffffff;
  padding:6px 12px;
  font-size:11px;
  font-weight:500;
  color:#6b7280;
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  transition:
    background .15s ease,
    box-shadow .15s ease,
    transform .08s ease,
    color .15s ease;
}

.btn-pdf::before{
  content:"⬇";
  font-size:12px;
}

.btn-pdf:hover{
  background:#f3f4f6;
  box-shadow:0 4px 12px rgba(148,163,184,.45);
  transform:translateY(-1px);
}

.result-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}

.result-header-row h4{margin:0;}

/* Responsive */
@media (max-width: 980px){
  .layout{flex-direction:column;}
}

@media (max-width: 720px){
  .grid{grid-template-columns:1fr;}
  .kpi-grid{grid-template-columns:1fr;}
}

@media (max-width: 640px){
  .result-header-row{flex-wrap:wrap; row-gap:8px;}
}

/* =====================================================
   DARK MODE
   ===================================================== */
body.dark{
  background:
    radial-gradient(circle at 0 0,#1f2937 0,transparent 55%),
    radial-gradient(circle at 100% 0,#1e293b 0,transparent 50%),
    radial-gradient(circle at 0 100%,#020617 0,transparent 50%),
    linear-gradient(135deg,#020617 0,#020617 60%,#020617 100%) !important;
  color:#e5e7eb;
}

body.dark h1{color:#f9fafb;}

body.dark .card,
body.dark .card.results{
  background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(15,23,42,.9));
  border-color:rgba(148,163,184,.5);
  box-shadow:0 18px 45px rgba(15,23,42,.9);
  color:#e5e7eb;
}

body.dark input{
  background:#020617;
  border-color:#334155;
  color:#e5e7eb;
}

body.dark input::placeholder{color:#64748b;}

body.dark .section-title{
  background:rgba(248,171,88,.1);
  color:#fbbf24;
  border-color:rgba(248,171,88,.5);
}

body.dark .grid small{color:#c7c9cc;}

body.dark .kpi-card{
  background:radial-gradient(circle at top left,rgba(248,171,88,.2),#020617);
  border-color:rgba(248,171,88,.45);
  box-shadow:0 10px 26px rgba(15,23,42,.9);
}

body.dark .kpi-value{color:#fef3c7;}
body.dark .kpi-label{color:#fde68a;}
body.dark .kpi-sub{color:#e5e7eb;}

body.dark .results-header-title{color:#fefce8;}
body.dark .results-header-sub{color:rgba(248,250,252,.75);}

body.dark .badge{
  background:rgba(15,23,42,.9);
  color:#fef9c3;
  border-color:rgba(250,204,21,.8);
}

body.dark .result-section{
  background:#020617;
  border-color:#1f2937;
  box-shadow:0 12px 28px rgba(15,23,42,.95);
  color:#e5e7eb;
}

body.dark .result-section h4{color:#facc15;}

body.dark table th{
  background:#222839;
  color:#f8fafc;
  border-bottom:1px solid #374151;
}

body.dark table tr:nth-child(odd) td{background:#151a21;}
body.dark table tr:nth-child(even) td{background:#10141a;}

body.dark .row-highlight,
body.dark .row-highlight-strong{
  background:#262f3f !important;
  color:#ffffff;
  font-weight:700;
}

body.dark .foot,
body.dark .foot p,
body.dark .foot li{color:#e5e7eb;}

body.dark .foot strong{color:#facc15;}

body.dark .empty-state{
  background:rgba(15,23,42,.96);
  border-color:rgba(251,191,36,.9);
  color:#facc15;
}

body.dark .empty-state span{color:rgba(248,250,252,.75);}

body.dark .btn-pdf{
  border-color:#374151;
  background:#020617;
  color:#e5e7eb;
}

body.dark .btn-pdf:hover{
  background:#111827;
  box-shadow:0 4px 16px rgba(15,23,42,.8);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer{
  margin-top:26px;
  padding:18px 0 8px;
  border-top:1px solid rgba(148,163,184,.35);
  background:transparent;
}

.footer-inner{
  max-width:1320px;
  margin:0 auto;
  padding:0 16px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.footer-left{
  font-size:12px;
  color:var(--muted);
  font-weight:500;
}

.footer-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
}

.footer-right a{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.25);
  background:rgba(15,23,42,.03);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.footer-right a:hover{
  background:rgba(248,171,88,.14);
  border-color:rgba(248,171,88,.55);
  color:#92400e;
}

body.dark .site-footer{
  border-top:1px solid rgba(148,163,184,.25);
}

body.dark .footer-left{
  color:rgba(248,250,252,.75);
}

body.dark .footer-right a{
  color:rgba(248,250,252,.82);
  background:rgba(248,250,252,.05);
  border-color:rgba(148,163,184,.22);
}

body.dark .footer-right a:hover{
  background:rgba(248,171,88,.14);
  border-color:rgba(248,171,88,.55);
  color:#fde68a;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}
/* ================= BLOG GRID ================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

/* CARD */
.blog-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
    border: 1px solid rgba(248, 171, 88, .4);
    box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15,23,42,.12);
}

.blog-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
      padding: 10px;
}

/* IMAGE */
.blog-image img {
  width: 256px;
  height: 256px;
  object-fit: cover;
  display: block;
   object-fit: contain;
}

/* CONTENT */
.blog-content {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center; 
  height: 100%;
}

.blog-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
  text-align: center;
}

.blog-excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  flex-grow: 1;
  text-align: center;
}

/* BUTTON */
.blog-readmore {
    display: inline-flex
;
    align-items: center;
    justify-content: center;
    margin: 20px auto 20px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .6);
    transition: transform .15s ease, box-shadow .15s ease;
}
}

.blog-readmore:hover {
  background: #ea580c;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-detail-cover {
  margin-bottom: 20px;
}

.blog-detail-cover img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

.blog-detail-date {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 14px;
  text-align: center;
}

.blog-detail-content {
  font-size: 15px;
  line-height: 1.75;
    padding: 30px;
}

.blog-detail-content h2,
.blog-detail-content h3 {
  margin-top: 22px;
}


/* ================= FAQ ================= */

.faq-category {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.faq-item {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
    border: 1px solid rgba(248, 171, 88, .4);
    box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 20px;
  transition: transform .25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 12px 18px 18px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.yd-mobile-toggle {
  display: none;
}

@media (max-width: 900px) {

  /* Header düzeni */
  .yd-nav__wrap {
    position: relative;
  }

  /* Hamburger */
  .yd-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
  }

  body.dark .yd-mobile-toggle {
    background: #020617;
    border-color: #334155;
    color: #f8fafc;
  }

  /* Desktop menüyü kapat */
  .yd-menu,
  .yd-theme {
    display: none;
  }

  /* Açılır alan */
  .yd-nav.mobile-open .yd-nav__right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(0,0,0,.15);
  }

  body.dark .yd-nav.mobile-open .yd-nav__right {
    background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(15,23,42,.9));
    box-shadow: 0 30px 80px rgba(0,0,0,.8);
  }

  /* Menü – ADMIN GİBİ */
  .yd-nav.mobile-open .yd-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .yd-nav.mobile-open .yd-menu a {
    padding: 16px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1f2937;
  }

  body.dark .yd-nav.mobile-open .yd-menu a {
    background: rgba(15,23,42,.96);
    border-color: #334155;
    color: #f8fafc;
  }

  .yd-nav.mobile-open .yd-menu a.active {
    background: #fdebd3;
    border-color: #f59e0b;
    color: #92400e;
  }

  body.dark .yd-nav.mobile-open .yd-menu a.active {
    background: rgba(250,204,21,.15);
    border-color: #facc15;
    color: #fde68a;
  }

  /* Tema butonu da admin gibi kart */
  .yd-nav.mobile-open .yd-theme {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
  }

  body.dark .yd-nav.mobile-open .yd-theme {
    background: rgba(15,23,42,.96);
    border-color: #334155;
  }
}

.yd-nav {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

/* İç sarmalayıcı normal container gibi kalsın */
.yd-nav__wrap {
  max-width: 1200px; /* senin container genişliğin neyse */
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* Mobil */
@media (max-width: 900px) {
  .yd-nav__wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ===============================
   CALCULATOR – PRINTER & ELECTRICITY
=============================== */

/* Select alanları input gibi göster */
.grid select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--card, #fff);
  color: var(--text, #111827);
  font-size: 14px;
  outline: none;
}

.grid select:focus {
  border-color: var(--accent, #f97316);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* Readonly inputlar (otomatik gelen değerler) */
.grid input[readonly] {
  background: rgba(0, 0, 0, 0.04);
  cursor: not-allowed;
  opacity: 0.85;
}

/* Disabled manuel alanlar */
.grid input:disabled {
  background: rgba(0, 0, 0, 0.03);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Checkbox satırı */
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent, #f97316);
  cursor: pointer;
}

/* Enerji & Makine alt açıklamalar */
.grid small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted, #6b7280);
}

/* Mobilde select + inputlar taşmasın */
@media (max-width: 768px) {
  .grid select,
  .grid input {
    font-size: 15px;
  }
}


.input-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}


input,
select {
  line-height: 1.4;
  white-space: nowrap;
}

/* ===============================
   TABLO BLOK AYRIMLARI
================================ */


/* BLOK BAŞLIKLARI */
.result-section .block-title th {
  background: #fff4dc;
  color: #9a5b00;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 14px 14px;
  border-top: 3px solid #f59e0b;
  border-bottom: 2px solid #fde68a;
}

/* BLOKLAR ARASI BOŞLUK */
.result-section .block-title:not(:first-child) th {
  padding-top: 18px;
}
.logo-dark {
  display: none;
}

body.dark .logo-light {
  display: none;
}

body.dark .logo-dark {
  display: block;
}