/* İçerik Paketi — sade & temiz tema */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg:#0e1118;
  --surface:#171b25;
  --surface-2:#1f2430;
  --accent:#4aa8ff;
  --accent-soft:#1d3650;
  --buy:#25d366;
  --text:#e9edf4;
  --muted:#97a1b2;
  --line:#272d3a;
  --radius:12px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:var(--bg);color:var(--text);line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
.container{width:min(1080px,92%);margin-inline:auto}

/* HEADER */
.header{
  position:sticky;top:0;z-index:40;
  background:rgba(14,17,24,.82);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header .bar{display:flex;align-items:center;justify-content:space-between;height:62px}
.logo{font-weight:700;font-size:1.2rem;letter-spacing:-.01em}
.logo span{color:var(--accent)}
.nav{display:flex;align-items:center;gap:1.5rem}
.nav a{color:var(--muted);font-size:.93rem;font-weight:500;transition:color .15s}
.nav a:hover{color:var(--text)}
.nav .cta{
  background:var(--text);color:#04203b;padding:.55rem 1rem;border-radius:8px;font-weight:600;
}
.nav .cta:hover{filter:brightness(1.08)}

/* INTRO */
.intro{text-align:center;padding:3.5rem 0 2.5rem}
.intro h1{font-size:clamp(1.9rem,4.5vw,3rem);font-weight:700;letter-spacing:-.02em;line-height:1.1}
.intro p{color:var(--muted);max-width:48ch;margin:1rem auto 0;font-size:1.05rem}

/* SECTION */
.section{padding:2.5rem 0}
.section-title{
  font-size:1.45rem;font-weight:700;margin-bottom:1.6rem;letter-spacing:-.01em;
  display:flex;align-items:center;gap:.6rem;
}
.section-title::before{content:"";width:5px;height:1.3rem;background:var(--accent);border-radius:3px}

/* PRODUCT CARDS */
.grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fill,minmax(255px,1fr))}
.card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.5rem;display:flex;flex-direction:column;position:relative;
  transition:transform .18s,border-color .18s;
}
.card:hover{transform:translateY(-4px);border-color:var(--accent)}
.card.popular{border-color:var(--accent)}
.card .tag{
  position:absolute;top:-.7rem;right:1.2rem;background:var(--accent);color:#04203b;
  font-size:.72rem;font-weight:700;padding:.25rem .6rem;border-radius:20px;
}
.card h3{font-size:1.2rem;font-weight:700;margin-bottom:1rem}
.features{list-style:none;display:flex;flex-direction:column;gap:.55rem;margin-bottom:1.3rem;flex-grow:1}
.features li{display:flex;gap:.55rem;color:var(--muted);font-size:.94rem}
.features li::before{content:"✓";color:var(--buy);font-weight:700}
.price{font-size:1.7rem;font-weight:700;margin-bottom:1.1rem;padding-top:1rem;border-top:1px solid var(--line)}
.price small{font-size:.8rem;color:var(--muted);font-weight:500}
.buy{
  display:flex;align-items:center;justify-content:center;gap:.5rem;
  background:var(--buy);color:#04240f;font-weight:600;font-size:.95rem;
  padding:.8rem;border-radius:9px;transition:filter .15s,transform .15s;
}
.buy:hover{filter:brightness(1.07);transform:translateY(-1px)}
.buy svg{width:18px;height:18px}
.card-image{width:100%;height:160px;object-fit:cover;border-radius:9px;margin-bottom:1.1rem;background:var(--surface-2)}
.card h3 a{color:inherit}
.card h3 a:hover{color:var(--accent)}
.detail-link{color:var(--accent);font-size:.87rem;font-weight:600;margin:-.6rem 0 1.1rem;display:inline-block}
.detail-link:hover{text-decoration:underline}

/* Ürün / sayfa detay */
.product-hero{width:100%;max-height:380px;overflow:hidden;border-radius:var(--radius);margin-bottom:1.8rem}
.product-hero img{width:100%;height:100%;object-fit:cover;display:block}
.product-detail-features{margin:1.5rem 0;max-width:520px}
.product-detail-cta{
  display:flex;align-items:center;justify-content:space-between;gap:1.2rem;flex-wrap:wrap;
  margin-top:2.2rem;padding-top:1.8rem;border-top:1px solid var(--line);
}
.product-detail-cta .buy{padding:.85rem 1.7rem}
.card-link-wrap{color:inherit;text-decoration:none;display:flex;flex-direction:column;height:100%}

/* FAQ */
.faq{max-width:780px;display:flex;flex-direction:column;gap:.6rem}
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.faq summary{
  cursor:pointer;list-style:none;padding:1.05rem 1.2rem;font-weight:600;font-size:1rem;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;transition:background .15s;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--accent);font-size:1.3rem;font-weight:400;transition:transform .2s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq summary:hover{background:var(--surface-2)}
.faq p{padding:0 1.2rem 1.15rem;color:var(--muted)}

/* BLOG */
.blog{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fill,minmax(290px,1fr))}
.post{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.5rem;transition:transform .18s,border-color .18s;
}
.post:hover{transform:translateY(-3px);border-color:var(--accent)}
.post .date{color:var(--accent);font-size:.82rem;font-weight:600}
.post h3{font-size:1.18rem;font-weight:700;margin:.5rem 0 .6rem;line-height:1.25}
.post .sum{font-weight:500;margin-bottom:.6rem}
.post .body{color:var(--muted);font-size:.92rem}

/* FOOTER */
.footer{border-top:1px solid var(--line);margin-top:2rem;padding:2.6rem 0 2.2rem;color:var(--muted)}
.footer .logo{color:var(--text)}
.footer-grid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:2rem 1.6rem;margin-bottom:1.8rem}
.footer-col h4{color:var(--text);font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:1rem}
.footer-col nav{display:flex;flex-direction:column;gap:.65rem}
.footer-col nav a{font-size:.92rem}
.footer-col nav a:hover{color:var(--accent)}
.footer-tagline{font-size:.85rem;line-height:1.65;margin-top:.7rem;max-width:34ch;color:var(--muted)}
.footer .copy{font-size:.85rem;padding-top:1.4rem;border-top:1px solid var(--line)}
@media(max-width:820px){.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.footer-grid{grid-template-columns:1fr;gap:1.6rem}}

/* WHATSAPP FLOAT */
.wa{
  position:fixed;right:18px;bottom:18px;z-index:50;
  display:flex;align-items:center;gap:.5rem;
  background:var(--buy);color:#04240f;font-weight:700;font-size:.9rem;
  padding:.75rem 1.05rem;border-radius:30px;box-shadow:0 8px 24px -6px rgba(0,0,0,.5);
  transition:transform .15s;
}
.wa:hover{transform:translateY(-2px)}
.wa svg{width:19px;height:19px}

@media(max-width:640px){
  .nav a:not(.cta){display:none}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ============ ADMIN — sade ============ */
.admin{background:var(--bg);min-height:100vh}
.admin-top{background:var(--surface);border-bottom:1px solid var(--line)}
.admin-top .bar{display:flex;align-items:center;justify-content:space-between;height:58px}
.admin-top .out{color:#ff7a7a;font-size:.9rem;font-weight:500}
.admin-top .out:hover{color:#ff9a9a}
.admin-tabs{background:var(--surface);border-bottom:1px solid var(--line)}
.admin-tabs .bar{display:flex;gap:.3rem;overflow-x:auto}
.admin-tabs a{padding:.85rem 1rem;color:var(--muted);font-size:.9rem;font-weight:500;border-bottom:2px solid transparent;white-space:nowrap}
.admin-tabs a:hover{color:var(--text)}
.admin-tabs a.active{color:var(--accent);border-bottom-color:var(--accent)}
.admin-wrap{padding:2rem 0 3.5rem}
.admin-grid{display:grid;grid-template-columns:1fr;gap:1.3rem;align-items:start}
@media(max-width:820px){.admin-grid{grid-template-columns:1fr}}

.card-panel,.list-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.card-panel{padding:1.4rem}
.card-panel h2,.list-panel .head{font-size:1.15rem;font-weight:700;margin-bottom:1.1rem}
.list-panel .head{padding:1.1rem 1.3rem;margin:0;border-bottom:1px solid var(--line)}

.field{margin-bottom:.95rem}
.field label{display:block;font-size:.82rem;font-weight:600;color:var(--muted);margin-bottom:.35rem}
.field input,.field textarea{
  width:100%;padding:.65rem .75rem;background:var(--surface-2);border:1px solid var(--line);
  border-radius:8px;color:var(--text);font-family:inherit;font-size:.94rem;transition:border-color .15s;
}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--accent)}
.field textarea{resize:vertical;min-height:84px;line-height:1.5}
.field .hint{font-size:.78rem;color:var(--muted);margin-top:.3rem}

.row-actions{display:flex;gap:.55rem;align-items:center;margin-top:.3rem}
.a-btn{font-family:inherit;font-weight:600;font-size:.88rem;padding:.6rem 1.05rem;border-radius:8px;border:none;cursor:pointer;background:var(--accent);color:#04203b;transition:filter .15s,transform .15s}
.a-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.a-btn--ghost{background:var(--surface-2);color:var(--text);border:1px solid var(--line)}
.a-btn--ghost:hover{filter:none;background:var(--line)}
.a-btn--danger{background:transparent;border:1px solid #ff7a7a;color:#ff7a7a}
.a-btn--danger:hover{filter:none;background:#ff7a7a;color:#2a0606}
.a-btn--sm{padding:.4rem .7rem;font-size:.82rem}

.rec{display:flex;align-items:center;gap:.9rem;padding:.9rem 1.3rem;border-bottom:1px solid var(--line)}
.rec:last-child{border-bottom:none}
.rec__no{font-size:.85rem;color:var(--accent);font-weight:700;min-width:1.8rem}
.rec__main{flex-grow:1;min-width:0}
.rec__title{font-weight:600;font-size:.96rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rec__sub{font-size:.82rem;color:var(--muted);margin-top:.1rem}
.rec__tag{font-size:.68rem;font-weight:700;background:var(--accent);color:#04203b;padding:.1rem .4rem;border-radius:10px}
.rec__acts{display:flex;gap:.45rem;flex-shrink:0}
.rec__acts form{display:inline}
.rec__thumb{width:42px;height:42px;object-fit:cover;border-radius:7px;flex-shrink:0;background:var(--surface-2)}
.current-image{display:flex;align-items:center;gap:.8rem;margin-bottom:.7rem}
.current-image img{width:64px;height:64px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.current-image .hint{margin:0}

.flash{display:flex;align-items:center;gap:.5rem;background:#10331c;border:1px solid var(--buy);color:#8ff0b0;padding:.8rem 1rem;border-radius:8px;margin-bottom:1.3rem;font-size:.92rem}
.flash::before{content:"✓";font-weight:700}

.login{min-height:100vh;display:grid;place-items:center;padding:1.5rem}
.login-card{width:min(370px,100%);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:2.2rem 1.9rem}
.login-card .logo{text-align:center;font-size:1.5rem;margin-bottom:.3rem}
.login-card .sub{text-align:center;color:var(--muted);font-size:.88rem;margin-bottom:1.6rem}
.login-err{background:#3a1414;border:1px solid #ff7a7a;color:#ffb3b3;padding:.65rem .85rem;border-radius:8px;font-size:.86rem;margin-bottom:1rem;text-align:center}

/* ===== Blog liste başlığı + "tüm yazılar" ===== */
.section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.6rem}
.section-head .section-title{margin-bottom:0}
.see-all{color:var(--accent);font-weight:600;font-size:.92rem;white-space:nowrap}
.see-all:hover{text-decoration:underline}

/* post kartı artık link */
a.post{color:inherit;display:flex;flex-direction:column}
.post .readmore{color:var(--accent);font-weight:600;font-size:.9rem;margin-top:.7rem}
.post:hover .readmore{text-decoration:underline}

/* ===== Tekil yazı sayfası ===== */
.article-wrap{max-width:760px;padding:2.2rem 0 1rem}
.breadcrumb{font-size:.85rem;color:var(--muted);margin-bottom:1.6rem;display:flex;gap:.4rem;flex-wrap:wrap;align-items:center}
.breadcrumb a{color:var(--accent)}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb span{color:var(--muted)}

.article-head h1{font-size:clamp(1.8rem,4vw,2.6rem);font-weight:700;line-height:1.15;letter-spacing:-.02em;margin-bottom:.8rem}
.article-meta{display:flex;gap:.5rem;flex-wrap:wrap;color:var(--muted);font-size:.9rem;align-items:center;padding-bottom:1.6rem;margin-bottom:1.8rem;border-bottom:1px solid var(--line)}
.article-body p{font-size:1.08rem;line-height:1.8;margin-bottom:1.3rem;color:#d7dde7}
.article-body p:first-child::first-letter{font-size:1.05em}

.more-posts{margin-top:3rem;padding-top:2rem;border-top:1px solid var(--line)}
.more-posts .section-title{font-size:1.25rem}

@media(max-width:640px){.article-body p{font-size:1.02rem}}
:root {
  --accent: var(--accent, #22a7f0);
  --muted: var(--muted, #64748b);
}

/* Kategori rozeti */
.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 999px;
  border: 1px solid;
  text-decoration: none;
  margin-bottom: .6rem;
  transition: opacity .15s ease;
}
.badge:hover { opacity: .8; }

/* Kategori filtre çubuğu (blog.php) */
.category-bar {
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: .9rem 0;
}
.category-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.cat-chip {
  --chip-color: var(--accent);
  display: inline-block;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--chip-color);
  background: color-mix(in srgb, var(--chip-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--chip-color) 30%, transparent);
}
.cat-chip.active {
  color: #fff;
  background: var(--chip-color);
}

.filter-info {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: .9rem;
}
.clear-filter {
  margin-left: .5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Etiket pilleri */
.tag-list, .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.tag-cloud { margin-top: 2.5rem; }
.tag-pill {
  font-size: .8rem;
  color: var(--muted);
  background: rgba(0,0,0,.05);
  border-radius: 999px;
  padding: .3rem .75rem;
  text-decoration: none;
}
.tag-pill:hover { color: var(--accent); }

/* İçindekiler (TOC) */
.article-layout { display: block; }
.toc {
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  margin: 1.5rem 0 2rem;
}
.toc-title {
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .5rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}
.toc li { margin: .25rem 0; }
.toc a {
  color: inherit;
  text-decoration: none;
}
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* Makale başlıkları — CKEditor'dan gelen ham <h2>/<h3> etiketleri */
.article-body h2 {
  margin: 2.2rem 0 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  scroll-margin-top: 90px;
  position: relative;
}
.article-body h3 {
  margin: 1.8rem 0 .8rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  scroll-margin-top: 90px;
}
.h-anchor {
  color: rgba(0,0,0,.15);
  text-decoration: none;
  margin-right: .3rem;
  font-weight: 400;
}
.article-body h2:hover .h-anchor,
.article-body h3:hover .h-anchor { color: var(--accent); }

/* Paragraf ve listeler */
.article-body p {
  margin: 0 0 1.1rem;
  line-height: 1.75;
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}
.article-body li {
  margin: .4rem 0;
  line-height: 1.6;
}
.article-body ul li::marker { color: var(--accent); }

/* Linkler */
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.article-body a:hover { text-decoration-color: var(--accent); }

/* CKEditor'da "Blok Alıntı" (blockquote) — CTA/vurgu kutusu olarak kullanılabilir */
.article-body blockquote {
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin: 1.8rem 0;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote a { font-weight: 700; }

/* Tablo (CKEditor "insertTable") */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
}
.article-body table td,
.article-body table th {
  border: 1px solid rgba(0,0,0,.1);
  padding: .55rem .7rem;
  text-align: left;
}
.article-body table th { background: rgba(0,0,0,.03); }

/* Blog kartlarında rozet konumu */
.blog .post .badge { margin-bottom: .5rem; }
