/*
Theme Name: MangaDunyasi Explorer
Theme URI: https://mangadunyasi.org
Author: NeedSEO
Description: Açık dergi/keşif teması — hero slider, tür dünyaları ve trend listesi.
Version: 1.0.0
Text Domain: mangadunyasi
*/

:root{
  --paper:#faf7f2; --card:#fff; --line:#e7e0d4; --ink:#23201b; --mut:#7d7568;
  --acc:#059669; --acc2:#ea580c; --soft:#ecf7f2; --radius:16px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--paper);color:var(--ink);font-family:'Inter',system-ui,sans-serif;font-size:16px;line-height:1.65}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
.md-wrap{max-width:1180px;margin:0 auto;padding:0 22px}
.md-sronly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* HEADER */
.md-top{background:#1f3d33;color:#e8f3ee}
.md-top-in{display:flex;justify-content:space-between;align-items:center;height:40px;gap:16px}
.md-tagline{font-size:12px;letter-spacing:.12em;text-transform:uppercase;opacity:.75}
.md-search{display:flex;background:#ffffff14;border-radius:999px;padding:3px 4px 3px 14px}
.md-search input{background:none;border:0;color:#fff;outline:0;width:170px;font-size:13px}
.md-search button{background:var(--acc);border:0;border-radius:999px;width:26px;height:26px;cursor:pointer;font-size:12px}
.md-h-in{display:flex;align-items:center;gap:26px;height:76px}
.md-logo{display:flex;align-items:center;gap:10px}
.md-logo-i{width:36px;height:36px;border-radius:50%;background:var(--acc);color:#fff;display:grid;place-items:center;font-family:'Lora',serif;font-weight:600;font-size:20px}
.md-logo-t{font-family:'Lora',serif;font-size:21px;font-weight:600}
.md-logo-t em{font-style:normal;color:var(--acc2)}
.md-nav{margin-left:auto}
.md-nav ul{display:flex;gap:2px}
.md-nav li a{padding:9px 13px;border-radius:9px;font-weight:600;font-size:14.5px;color:#4a453d}
.md-nav li a:hover,.md-nav li.current-menu-item a{background:var(--soft);color:var(--acc)}
.md-burger{display:none;margin-left:auto;background:none;border:1px solid var(--line);border-radius:8px;width:38px;height:34px;cursor:pointer}
.md-burger span{display:block;height:2px;background:var(--ink);margin:5px auto;width:16px}

/* SLIDER */
.md-slider{position:relative;margin:26px 0 10px;border-radius:var(--radius);overflow:hidden;box-shadow:0 18px 40px #23201b14}
.md-slides{position:relative;height:440px}
.md-slide{position:absolute;inset:0;opacity:0;transition:opacity .7s ease;pointer-events:none}
.md-slide.active{opacity:1;pointer-events:auto}
.md-slide-in{display:block;height:100%;position:relative}
.md-slide-in img{width:100%;height:100%;object-fit:cover}
.md-slide-no{width:100%;height:100%;display:grid;place-items:center;font-size:90px;background:linear-gradient(120deg,#0f4c3a,#062e23)}
.md-slide-shade{position:absolute;inset:0;background:linear-gradient(10deg,#000c 0%,transparent 55%)}
.md-slide-txt{position:absolute;left:0;right:0;bottom:0;padding:34px;color:#fff}
.md-slide-cat{display:inline-block;background:var(--acc2);color:#fff;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;padding:5px 13px;border-radius:999px;margin-bottom:12px}
.md-slide-title{font-family:'Lora',serif;font-size:33px;line-height:1.2;margin-bottom:8px;text-shadow:0 2px 18px #0008}
.md-slide-txt p{color:#e8eef0;max-width:560px;font-size:14.5px}
.md-slider-nav{position:absolute;right:22px;bottom:18px;display:flex;gap:8px}
.md-dot{width:9px;height:9px;border-radius:50%;border:0;background:#ffffff66;cursor:pointer;padding:0;transition:.2s}
.md-dot.on{background:var(--acc2);width:22px;border-radius:999px}

/* TÜR DÜNYALARI */
.md-worlds{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:34px 0}
.md-world{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.md-world-h h2{font-family:'Lora',serif;font-size:19px;margin-bottom:3px}
.md-world-h p{color:var(--mut);font-size:13px;margin-bottom:14px}
.md-more{display:inline-block;font-size:13px;font-weight:700;color:var(--acc);margin-bottom:16px}
.md-more:hover{color:var(--acc2)}
.md-mini{display:flex;gap:13px;padding:10px 0;border-top:1px dashed var(--line)}
.md-mini-art img{width:52px;height:74px;object-fit:cover;border-radius:8px}
.md-mini-no{display:grid;place-items:center;width:52px;height:74px;background:var(--soft);border-radius:8px;font-size:22px;flex:none}
.md-mini-b h3{font-size:14.5px;line-height:1.35;margin-bottom:5px}
.md-mini-b h3 a:hover{color:var(--acc)}
.md-meta{display:flex;flex-wrap:wrap;gap:6px}
.md-meta span{font-size:11.5px;color:var(--mut);background:var(--paper);border:1px solid var(--line);padding:2px 8px;border-radius:999px}
.md-meta span.on{color:#047857;background:#ecfdf5;border-color:#a7f3d0}
.md-meta span.star{color:#b45309;background:#fffbeb;border-color:#fde68a}

/* SPLIT: yeni + trend */
.md-split{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:26px;align-items:start;margin-top:26px}
.md-sec-h{margin-bottom:16px;display:flex;align-items:center;gap:12px}
.md-sec-h::after{content:"";height:1px;background:var(--line);flex:1}
.md-sec-h h2{font-family:'Lora',serif;font-size:21px;white-space:nowrap}
.md-entry{display:grid;grid-template-columns:150px 1fr;gap:16px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:15px;margin-bottom:14px;transition:.2s}
.md-entry:hover{border-color:var(--acc);transform:translateY(-2px);box-shadow:0 10px 26px #23201b10}
.md-entry.lead{grid-template-columns:210px 1fr}
.md-entry-art img{width:150px;height:212px;object-fit:cover;border-radius:10px}
.md-entry.lead .md-entry-art img{width:210px;height:auto;aspect-ratio:2/3}
.md-entry-b h3{font-family:'Lora',serif;font-size:16.5px;line-height:1.35;margin:5px 0 6px}
.md-entry-b h3 a:hover{color:var(--acc)}
.md-entry-b p{color:var(--mut);font-size:13.5px;margin-bottom:8px}
.md-tag{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--acc);background:var(--soft);padding:3px 10px;border-radius:999px}
.md-trend{position:sticky;top:20px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.md-trend-list{counter-reset:tr}
.md-trend-list li{border-bottom:1px dashed var(--line);padding:11px 0}
.md-trend-list li:last-child{border-bottom:0}
.md-trend-list a{display:flex;align-items:center;gap:13px}
.md-tr-no{font-family:'Lora',serif;font-size:22px;color:#d6cdbf;font-weight:600;min-width:28px}
.md-trend-list li:nth-child(-n+3) .md-tr-no{color:var(--acc2)}
.md-tr-b{display:flex;flex-direction:column;min-width:0}
.md-tr-b strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.md-tr-b strong:hover{color:var(--acc)}
.md-tr-b small{color:var(--mut);font-size:12px}

/* KATEGORİ */
.md-cat-h{padding:34px 0 22px}
.md-cat-h h1{font-family:'Lora',serif;font-size:30px;margin:10px 0 8px}
.md-cat-h p{color:var(--mut);max-width:640px;font-size:14.5px}
.md-catgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:22px;margin-bottom:26px}
.md-catcard{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:.22s}
.md-catcard:hover{transform:translateY(-4px);box-shadow:0 16px 34px #23201b14;border-color:#d3c9b8}
.md-catcard-art img{width:100%;aspect-ratio:2/3;object-fit:cover}
.md-catcard-art .md-mini-no{width:100%;height:auto;aspect-ratio:2/3;border-radius:0;font-size:44px}
.md-catcard-b{padding:14px 16px 16px}
.md-catcard-b h2{font-size:16.5px;font-family:'Lora',serif;line-height:1.35;margin-bottom:7px}
.md-catcard-b h2 a:hover{color:var(--acc)}
.md-catcard-b p{color:var(--mut);font-size:13px;margin-top:8px}
.md-pager{margin:30px 0}
.md-pager .nav-links{display:flex;gap:8px;justify-content:center}
.md-pager .page-numbers{padding:8px 15px;border:1px solid var(--line);border-radius:9px;background:var(--card);font-weight:600;color:#4a453d}
.md-pager .page-numbers.current{background:var(--acc);border-color:var(--acc);color:#fff}

/* SINGLE */
.md-single{margin-top:30px;max-width:760px}
.md-article{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.md-art-h{padding:30px 36px 18px}
.md-art-title{font-family:'Lora',serif;font-size:35px;line-height:1.18;margin:10px 0 12px}
.md-art-fig img{width:100%;max-height:480px;object-fit:cover}
.md-art-body{padding:24px 36px 14px}
.md-art-body p{margin-bottom:1.1em;font-size:16.5px}
.md-art-body h2,.md-art-body h3{font-family:'Lora',serif;margin:1.4em 0 .5em}
.md-art-body h2{font-size:23px}.md-art-body h3{font-size:19px}
.md-art-body ul{margin:0 0 1.1em 1.4em;list-style:disc}
.md-art-body a{color:var(--acc);border-bottom:1px solid #99f6e4}
.md-inlink{background:var(--soft);border-radius:12px;padding:20px 22px;margin-top:26px}
.md-inlink h3{font-family:'Lora',serif;font-size:16px;margin-bottom:14px}
.md-similar{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.md-similar a{background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.md-similar img{width:100%;aspect-ratio:2/3;object-fit:cover}
.md-similar strong{display:block;padding:9px 10px;font-size:12.5px;line-height:1.35}

/* FOOTER */
.md-f{margin-top:64px;background:#23201b;color:#d8d2c6}
.md-f-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:30px;padding:46px 22px 28px}
.md-f-c .md-logo-t{color:#fff}.md-f-c .md-logo-t em{color:#34d399}
.md-f-c p{color:#a89f8f;font-size:13.5px;margin-top:12px;max-width:280px}
.md-f-c h4{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#8d8474;margin-bottom:14px}
.md-f-c li{margin-bottom:8px}
.md-f-c li a{color:#cfc7b8;font-size:14px}
.md-f-c li a:hover{color:#34d399}
.md-f-bot{border-top:1px solid #38332b;padding:16px;text-align:center}
.md-f-bot p{color:#8d8474;font-size:12.5px}

/* RESPONSIVE */
@media(max-width:1020px){
  .md-worlds{grid-template-columns:1fr 1fr}
  .md-world:last-child{grid-column:1/-1}
  .md-split{grid-template-columns:1fr}
  .md-trend{position:static}
}
@media(max-width:760px){
  .md-worlds{grid-template-columns:1fr}
  .md-nav{position:fixed;top:0;right:-260px;width:250px;height:100vh;background:#fff;z-index:60;padding:80px 20px;box-shadow:-14px 0 34px #0003;transition:right .3s;border-left:1px solid var(--line)}
  body.md-open .md-nav{right:0}
  .md-nav ul{flex-direction:column}
  .md-burger{display:block;z-index:70}
  .md-slides{height:360px}
  .md-slide-title{font-size:24px}
  .md-tagline{display:none}
  .md-entry,.md-entry.lead{grid-template-columns:1fr}
  .md-entry-art img,.md-entry.lead .md-entry-art img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
  .md-art-h,.md-art-body{padding-left:22px;padding-right:22px}
  .md-similar{grid-template-columns:1fr 1fr}
}

@keyframes mdFade{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.md-entry,.md-mini,.md-catcard{animation:mdFade .5s ease both}
