
/* ---- Global Reset-ish ---- */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji"; color:#0f172a; background:#f8fafc; line-height:1.6}

/* ---- Topbar ---- */
.site-topbar{position:sticky; top:0; z-index:50; backdrop-filter:saturate(180%) blur(10px); background:rgba(255,255,255,0.85); border-bottom:1px solid #e5e7eb}
.site-topbar .container{max-width:1100px; margin:0 auto; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:16px}
.logo{font-weight:800; letter-spacing:0.2px; text-decoration:none; color:#0f172a; font-size:18px}
.logo span{color:#3b82f6}
.nav a{margin-left:14px; text-decoration:none; color:#1f2937; font-weight:600; padding:6px 10px; border-radius:10px; transition:all .2s}
.nav a:hover{background:#eef2ff; color:#1d4ed8}

/* ---- Containers ---- */
.container{max-width:1100px;margin:0 auto;padding:0 16px}

/* ---- Hero ---- */
.blog-hero{padding:44px 0 18px; background:linear-gradient(180deg,#eff6ff,transparent); border-bottom:1px solid #e5e7eb}
.blog-hero h1{font-size:34px;margin:0 0 10px 0; color:#0f172a}
.blog-hero p{margin:0;color:#475569}

/* ---- Blog Grid ---- */
.blog-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:18px; padding:24px 0 40px}
.blog-card{background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:18px; box-shadow:0 4px 20px rgba(2,6,23,0.04); transition:transform .15s, box-shadow .15s}
.blog-card:hover{transform:translateY(-3px); box-shadow:0 8px 30px rgba(2,6,23,0.08)}
.blog-card h3{margin:0 0 8px 0; font-size:18px; color:#0f172a}
.blog-card p{margin:0 0 12px 0; color:#475569}
.blog-card a.more{display:inline-block; font-weight:700; color:#1d4ed8; text-decoration:none}
.blog-card a.more:hover{text-decoration:underline}

/* ---- Article ---- */
.article{padding:26px 0 50px}
.breadcrumb{font-size:13px; color:#64748b; margin:14px 0}
.breadcrumb a{color:#1d4ed8; text-decoration:none}
.article h1{font-size:30px; margin:10px 0 12px}
.article .meta{color:#64748b; font-size:13px; margin-bottom:18px}
.article p{margin:12px 0}
.article a{color:#1d4ed8}
.article .back{margin-top:20px; display:inline-block}

/* ---- Footer ---- */
.site-footer{border-top:1px solid #e5e7eb; padding:24px 0; color:#64748b; background:#fff}
.site-footer .row{display:flex; justify-content:space-between; align-items:center; gap:12px}
.site-footer a{color:#1d4ed8; text-decoration:none}

/* Small screen */
@media (max-width:640px){
  .blog-hero h1{font-size:26px}
  .nav{display:flex; gap:8px; flex-wrap:wrap}
  .nav a{margin:0}
}

/* ---- Mobile Fix for Nav Blog Link ---- */
@media (max-width: 640px) {
  .site-topbar .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .site-topbar .nav a {
    flex: 1 1 auto;
    text-align: center;
    min-width: 45%;
  }
}

/* ---- Overlap fix: cart button vs nav ---- */
.site-topbar{ z-index: 99999; } /* Navbar her şeyin üstünde */
@media (max-width: 640px){
  .site-topbar .container{ padding-right: 120px; } /* Sağda sepet için alan bırak */
  .site-topbar .nav{ justify-content:flex-start; }
  .site-topbar .nav a{ flex: 0 1 auto; min-width: auto; }
}
