/*
Theme Name: DDiziTV
Theme URI: https://ddizitv.sbs/
Author: DDiziTV
Description: Hızlı, mobil uyumlu ve SEO dostu Türk dizi teması. 3 sütunlu düzen, küçük poster ızgarası, otomatik 24'lü sayfalama. Tüm renkler ve düzen ayarları Görünüm > Özelleştir > DDiziTV Ayarları bölümünden değiştirilir.
Version: 2.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ddizitv
*/

:root{--p:#7a2fa0;--pd:#4d1670;--bg:#dfe7e8;--hd:#a9bdbf;--ft:#8ea6a8;--cols:6;--cols-m:3;--ratio:3/4;
--pl:color-mix(in srgb,var(--p) 12%,#fff);--bd:#e3e3e8;--tx:#222;--mu:#666}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--tx);font:14px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
img{max-width:100%;height:auto}
a{color:var(--p)}
a:hover{color:var(--pd)}
:focus-visible{outline:3px solid #f5a623;outline-offset:2px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed!important;left:8px;top:8px;width:auto;height:auto;clip:auto;background:#fff;padding:8px 14px;z-index:99999}
.ddz-wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 10px}

/* üst şerit */
.ddz-topstrip{background:var(--hd)}
.ddz-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;padding-bottom:10px}
.ddz-brand{min-width:0}
.ddz-brand img,.ddz-brand .custom-logo{max-height:60px;width:auto;display:block}
.ddz-logo{color:var(--pd)!important;font-size:30px;font-weight:800;text-decoration:none;letter-spacing:-.5px;line-height:1.1}
.ddz-toplinks{list-style:none;margin:0;padding:0;display:flex;gap:14px;font-size:12px}
.ddz-toplinks a{color:var(--pd);text-decoration:none}
.ddz-toplinks a:hover{text-decoration:underline}
.ddz-burger{display:none;width:44px;height:40px;border:1px solid var(--pd);background:transparent;border-radius:6px;cursor:pointer;padding:0;position:relative;flex:0 0 auto}
.ddz-burger span,.ddz-burger span::before,.ddz-burger span::after{position:absolute;left:11px;width:20px;height:2px;background:var(--pd);content:"";transition:.2s}
.ddz-burger span{top:18px}.ddz-burger span::before{top:-7px;left:0}.ddz-burger span::after{top:7px;left:0}

/* ana menü */
.ddz-nav{background:var(--p);box-shadow:0 2px 6px rgba(0,0,0,.25)}
.ddz-navbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ddz-menu,.ddz-menu ul{list-style:none;margin:0;padding:0}
.ddz-menu{display:flex;flex-wrap:wrap}
.ddz-menu li{position:relative}
.ddz-menu a{display:block;padding:11px 15px;color:#fff;text-decoration:none;font-weight:600;font-size:13px}
.ddz-menu a:hover,.ddz-menu .current-menu-item>a,.ddz-menu .current-cat>a{background:rgba(0,0,0,.2);color:#fff}
.ddz-menu ul{display:none;position:absolute;left:0;top:100%;min-width:190px;background:var(--pd);z-index:50}
.ddz-menu li:hover>ul,.ddz-menu li:focus-within>ul{display:block}
.ddz-search{display:flex;flex:0 1 260px}
.ddz-search input[type=search]{flex:1;min-width:0;padding:7px 10px;border:0;border-radius:4px 0 0 4px;font-size:13px}
.ddz-search button{padding:7px 14px;border:0;border-radius:0 4px 4px 0;background:#f5a623;color:#222;font-weight:700;cursor:pointer}

/* düzen: sol | orta | sağ */
.ddz-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:12px;margin-bottom:20px;align-items:start}
.ddz-layout.has-left{grid-template-columns:190px minmax(0,1fr)}
.ddz-layout.has-right{grid-template-columns:minmax(0,1fr) 190px}
.ddz-layout.has-left.has-right{grid-template-columns:190px minmax(0,1fr) 190px}
.ddz-main,.ddz-side{min-width:0}
.ddz-box{background:#fff;border-radius:6px;box-shadow:0 1px 4px rgba(0,0,0,.12);overflow:hidden;margin-bottom:12px}
.ddz-boxhead{margin:0;padding:8px 12px;background:var(--p);color:#fff;font-size:13px;font-weight:700}
.ddz-h1{margin:0 0 8px;font-size:22px;line-height:1.3}

/* poster ızgarası */
.ddz-grid{display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:10px;padding:10px}
.ddz-card{display:block;text-decoration:none!important;text-align:center;border-radius:5px;transition:transform .2s}
.ddz-card:hover{transform:translateY(-3px)}
.ddz-poster{display:block;position:relative;aspect-ratio:var(--ratio);background:#e6e0ec;border-radius:5px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.ddz-poster img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
.ddz-card:hover .ddz-poster img{transform:scale(1.06)}
.ddz-poster::after{content:"\25B6";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--pd) 50%,transparent);color:#fff;font-size:26px;opacity:0;transition:opacity .2s}
.ddz-card:hover .ddz-poster::after{opacity:1}
.ddz-noimg{display:flex;align-items:center;justify-content:center;height:100%;font-size:40px;font-weight:800;color:var(--p)}
.ddz-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:5px 2px 2px;font-size:11.5px;font-weight:700;line-height:1.3;color:var(--p)}
.ddz-colorful .ddz-card:nth-child(6n+1) .ddz-title{color:#d6336c}
.ddz-colorful .ddz-card:nth-child(6n+2) .ddz-title{color:#7a2fa0}
.ddz-colorful .ddz-card:nth-child(6n+3) .ddz-title{color:#1c7ed6}
.ddz-colorful .ddz-card:nth-child(6n+4) .ddz-title{color:#e8590c}
.ddz-colorful .ddz-card:nth-child(6n+5) .ddz-title{color:#2f9e44}
.ddz-colorful .ddz-card:nth-child(6n)   .ddz-title{color:#c2255c}
.ddz-empty{padding:30px;text-align:center;color:var(--mu)}

/* sayfa numaraları */
.ddz-pages{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;padding:4px 10px 16px}
.ddz-pages .page-numbers{min-width:30px;padding:5px 8px;text-align:center;border-radius:4px;background:#eee;color:#333;font-size:12px;text-decoration:none;transition:.2s}
.ddz-pages .page-numbers:hover,.ddz-pages .page-numbers.current{background:var(--p);color:#fff}
.ddz-pages .dots{background:transparent}

/* yan listeler */
.ddz-list{list-style:none;margin:0;padding:0}
.ddz-list li a,.ddz-side .widget li a{display:block;padding:6px 12px;color:#333;text-decoration:none;font-size:12px;border-bottom:1px solid var(--bd)}
.ddz-list li a:hover,.ddz-side .widget li a:hover{background:var(--pl);color:var(--p)}
.ddz-side .widget ul{list-style:none;margin:0;padding:0}
.ddz-side .widget{padding:0}
.ddz-side .widget>*:not(.ddz-boxhead):not(ul){padding-left:12px;padding-right:12px}

/* yazı ve sayfa */
.ddz-article{background:#fff;border-radius:6px;box-shadow:0 1px 4px rgba(0,0,0,.12);padding:14px;margin-bottom:12px}
.ddz-crumbs{font-size:12px;color:var(--mu);margin-bottom:8px}
.ddz-crumbs a{text-decoration:none}
.ddz-meta{font-size:12px;color:var(--mu);margin-bottom:10px}
.ddz-single-poster{float:left;width:170px;max-width:38%;height:auto;border-radius:6px;margin:0 14px 10px 0;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.entry-content{overflow-wrap:anywhere}
.entry-content::after{content:"";display:block;clear:both}
.entry-content h2,.entry-content h3{line-height:1.3;color:var(--pd)}
.entry-content iframe,.entry-content video,.entry-content embed{display:block;width:100%;max-width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:6px;margin:12px 0;background:#000}
.entry-content table{display:block;overflow-x:auto;max-width:100%}
.ddz-comments{padding-bottom:12px}
.ddz-comments>*:not(.ddz-boxhead){margin-left:12px;margin-right:12px}
.ddz-comment-list{padding-left:0;list-style:none}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;padding:8px;border:1px solid var(--bd);border-radius:6px}
.comment-form .submit{background:var(--p);color:#fff;border:0;padding:9px 18px;border-radius:6px;cursor:pointer}

/* alt kısım */
.ddz-footer{background:var(--ft);color:#fff;padding:20px 0;text-align:center;font-size:12px}
.ddz-footer a{color:#fff}
.ddz-footer .custom-logo{max-height:46px;width:auto;margin:0 auto 8px;display:block}
.ddz-menu-foot{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px}
.ddz-menu-foot a{text-decoration:none;font-weight:600}
.ddz-footer p{margin:6px auto;max-width:900px}

/* tablet ve mobil */
@media(max-width:1000px){
  .ddz-layout,.ddz-layout.has-left,.ddz-layout.has-right,.ddz-layout.has-left.has-right{grid-template-columns:minmax(0,1fr)}
  .ddz-main{order:1}.ddz-right{order:2}.ddz-left{order:3}
  .ddz-grid{grid-template-columns:repeat(5,1fr)}
  .ddz-burger{display:block}
  .ddz-toplinks{display:none}
  .ddz-nav{display:none}
  .ddz-nav.open{display:block}
  .ddz-navbar{flex-direction:column;align-items:stretch;padding-bottom:10px}
  .ddz-menu{flex-direction:column}
  .ddz-menu ul{position:static;display:block;background:rgba(0,0,0,.2)}
  .ddz-menu ul a{padding-left:28px}
  .ddz-search{flex:1 1 auto}
}
@media(max-width:640px){
  .ddz-grid{grid-template-columns:repeat(var(--cols-m),1fr);gap:8px;padding:8px}
  .ddz-title{font-size:11px}
  .ddz-logo{font-size:24px}
  .ddz-single-poster{float:none;display:block;margin:0 auto 12px;max-width:55%}
  .ddz-h1{font-size:19px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
