/*
Theme Name: Serhendyolu V26.5 Full Fix
Theme URI: https://serhendyolu.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Mobil uyumlu premium WordPress teması. Otomatik slider, kategori rehberi, video, galeri, yorum ve OG paylaşım desteği içerir.
Version: 26.5
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: serhendyolu-v265
*/

:root{
  --bg:#f5f0ea;
  --card:#ffffff;
  --text:#26191a;
  --muted:#7c706c;
  --brand:#a40000;
  --brand-dark:#6b0000;
  --gold:#dfbf84;
  --gold-dark:#c7a567;
  --line:rgba(71,38,26,.08);
  --shadow:0 12px 28px rgba(44,18,18,.08);
  --radius:26px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;max-width:100%;overflow-x:hidden}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:linear-gradient(180deg,#faf7f3 0%,#f4efea 100%);
  color:var(--text);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,textarea,select{font:inherit}
.site{max-width:100%;overflow:hidden}
.container{width:min(100%,1160px);margin:0 auto;padding:0 16px}
.section{padding:28px 0}
.section-head{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:16px}
.section-head h2{margin:0;font-size:clamp(28px,5vw,42px);line-height:1.05}
.section-head p{margin:0;color:var(--muted);font-size:14px}
.card{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius)}

/* Header */
.site-header{
  background:linear-gradient(135deg,var(--brand) 0%,var(--brand-dark) 100%);
  color:#fff;
  position:sticky;top:0;z-index:50;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.topbar{padding:14px 0}
.header-row{display:flex;align-items:center;gap:12px}
.brand-badge{
  width:56px;height:56px;border-radius:18px;display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.10);font-size:28px;flex:0 0 56px;
}
.brand-meta{min-width:0;flex:1}
.site-title{margin:0;font-size:clamp(22px,6vw,36px);line-height:1.05;font-weight:800;letter-spacing:-.02em}
.site-tagline{margin:4px 0 0;color:rgba(255,255,255,.85);font-size:14px}
.header-tools{display:flex;gap:10px;align-items:center}
.icon-btn,.menu-btn,.search-btn{
  border:none;cursor:pointer;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12);
  border-radius:18px;display:inline-flex;align-items:center;justify-content:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.menu-btn,.icon-btn{width:54px;height:54px;font-size:24px}
.social-mini{display:flex;gap:8px}
.social-mini a{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.12);font-size:14px;font-weight:700}
.search-wrap{padding:0 0 16px}
.search-form{display:flex;gap:10px;align-items:center;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12);border-radius:28px;padding:10px 10px 10px 18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.search-form input[type="search"]{background:transparent;border:none;outline:none;color:#fff;width:100%;font-size:20px}
.search-form input[type="search"]::placeholder{color:rgba(255,255,255,.72)}
.search-btn{width:58px;height:58px;font-size:22px;flex:0 0 58px}

/* Drawer */
.drawer-backdrop{position:fixed;inset:0;background:rgba(24,18,16,.45);opacity:0;pointer-events:none;transition:.25s;z-index:79}
.drawer-backdrop.active{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;right:0;width:min(92vw,420px);height:100vh;background:#fbf8f4;color:var(--text);transform:translateX(100%);transition:.28s;z-index:80;padding:18px 18px 24px;overflow:auto;box-shadow:-20px 0 40px rgba(0,0,0,.18)}
.drawer.active{transform:none}
.drawer-close{width:54px;height:54px;border-radius:18px;border:none;background:#f2ebe4;font-size:28px;cursor:pointer}
.drawer h3{font-size:26px;margin:18px 0 14px}
.accordion{display:flex;flex-direction:column;gap:12px}
.acc-item{border:1px solid var(--line);background:#fff;border-radius:22px;overflow:hidden}
.acc-trigger{width:100%;padding:18px 18px;border:none;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:700;font-size:20px;cursor:pointer;color:var(--text)}
.acc-trigger span.meta{display:block;font-size:13px;font-weight:500;color:var(--muted);margin-top:2px}
.acc-body{display:none;padding:0 18px 18px}
.acc-item.open .acc-body{display:block}
.acc-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.acc-list a{display:flex;justify-content:space-between;align-items:center;padding:14px 14px;border-radius:16px;background:#faf6f1;border:1px solid var(--line)}
.acc-list small{color:var(--muted)}

/* Slider */
.hero{padding:18px 0 8px}
.hero-slider{position:relative}
.hero-track{display:flex;transition:transform .45s ease}
.hero-slide{min-width:100%}
.hero-card{position:relative;min-height:500px;overflow:hidden;border-radius:34px;background:#2a120f;color:#fff;box-shadow:0 18px 36px rgba(46,20,12,.16)}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;transform:scale(1.02)}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(18,12,10,.16) 0%,rgba(18,12,10,.5) 44%,rgba(18,12,10,.82) 100%)}
.hero-content{position:relative;z-index:1;padding:36px 28px 110px;max-width:720px}
.hero-chip{display:inline-flex;align-items:center;padding:14px 22px;border-radius:999px;background:rgba(223,191,132,.98);color:#fff;font-weight:800;font-size:clamp(16px,4.2vw,24px);margin-bottom:18px}
.hero-title{font-size:clamp(42px,10vw,76px);line-height:.95;font-weight:900;letter-spacing:-.04em;margin:0 0 16px;text-wrap:balance}
.hero-meta{font-size:clamp(14px,3.7vw,22px);opacity:.94;margin-bottom:14px}
.hero-excerpt{font-size:clamp(18px,4.8vw,30px);max-width:30ch;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;color:rgba(255,255,255,.92)}
.hero-cta{display:inline-flex;align-items:center;justify-content:center;min-width:240px;padding:20px 30px;border-radius:999px;background:var(--gold);color:#fff;font-weight:800;font-size:clamp(18px,4.6vw,28px);margin-top:18px;box-shadow:0 12px 28px rgba(0,0,0,.16)}
.hero-nav{position:absolute;right:20px;bottom:24px;display:flex;gap:12px;z-index:2}
.hero-nav button{width:62px;height:62px;border:none;border-radius:50%;background:rgba(255,255,255,.17);color:#fff;font-size:28px;cursor:pointer;backdrop-filter:blur(4px)}
.hero-dots{position:absolute;left:24px;top:22px;display:flex;gap:8px;z-index:2}
.hero-dots button{width:12px;height:12px;border-radius:999px;border:none;background:rgba(255,255,255,.45);padding:0;cursor:pointer}
.hero-dots button.active{width:34px;background:#fff}

/* Category guide */
.category-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px;border-radius:28px;background:linear-gradient(135deg,var(--brand),var(--brand-dark));color:#fff;box-shadow:0 18px 36px rgba(131,0,0,.14);cursor:pointer;border:none;width:100%;text-align:left}
.category-toggle-left{display:flex;align-items:center;gap:14px}
.category-icon{width:54px;height:54px;border-radius:18px;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;font-size:28px}
.category-toggle strong{display:block;font-size:clamp(24px,5vw,34px);line-height:1.05}
.category-toggle small{display:block;color:rgba(255,255,255,.82);font-size:14px;margin-top:2px}
.category-plus{width:54px;height:54px;border-radius:50%;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;font-size:30px}
.category-panel{display:none;margin-top:14px}
.category-panel.open{display:block}
.category-list{display:flex;flex-direction:column;gap:12px}
.category-row{display:flex;align-items:center;gap:14px;padding:16px 16px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.category-row-icon{width:48px;height:48px;border-radius:16px;background:#f7efe8;color:var(--brand);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px;flex:0 0 48px}
.category-row-title{font-size:clamp(18px,4.6vw,28px);font-weight:800;line-height:1.15;flex:1}
.category-row-count{white-space:nowrap;color:var(--muted);font-size:clamp(13px,3.6vw,18px)}
.category-row-arrow{font-size:28px;color:#b68080}

/* Cards */
.simple-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.post-card,.media-card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:28px;overflow:hidden}
.post-thumb,.media-thumb{aspect-ratio:16/10;background:#efe7de}
.post-body,.media-body{padding:18px}
.post-date{color:var(--muted);font-size:14px;margin-bottom:8px}
.post-title,.media-title{font-size:24px;line-height:1.1;font-weight:800;margin:0 0 10px}
.post-excerpt,.media-excerpt{color:#5f5654;font-size:16px}
.empty-note{padding:22px;border-radius:26px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);font-size:20px}

/* Single */
.single-wrap{padding:18px 0 44px}
.article-card{padding:20px;border-radius:30px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.article-featured{border-radius:26px;overflow:hidden;margin-bottom:18px}
.entry-title{font-size:clamp(34px,8vw,64px);line-height:.98;margin:0 0 10px;letter-spacing:-.04em}
.entry-meta{color:var(--muted);margin-bottom:18px}
.entry-content{font-size:20px;color:#2f2626}
.entry-content p{margin:0 0 1.1em}
.share-wrap{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px;padding-top:18px;border-top:1px solid var(--line)}
.share-wrap a,.share-wrap button{border:none;cursor:pointer;border-radius:15px;padding:11px 16px;font-weight:800;font-size:14px}
.share-wa{background:#e9f7ee;color:#137a38}.share-fb{background:#eef3ff;color:#1f4db8}.share-x{background:#f3f3f3;color:#111}.share-tg{background:#eef8ff;color:#1572b6}.share-copy{background:#f8efe3;color:#7a4b11}

/* Comments */
.comments-area{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
.comments-title{font-size:28px;margin:0 0 16px}
.comment-list{list-style:none;padding:0;margin:0 0 24px;display:flex;flex-direction:column;gap:14px}
.comment-body{padding:16px;border-radius:18px;background:#faf6f1;border:1px solid var(--line)}
.comment-meta{font-size:14px;color:var(--muted);margin-bottom:8px}
.comment-form input,.comment-form textarea{width:100%;padding:14px 16px;border-radius:16px;border:1px solid var(--line);background:#fff}
.comment-form .submit{background:linear-gradient(135deg,var(--brand),var(--brand-dark));color:#fff;border:none;border-radius:18px;padding:14px 22px;font-weight:800}

/* Gallery lightbox */
.lightbox{position:fixed;inset:0;background:rgba(16,12,10,.92);display:none;align-items:center;justify-content:center;z-index:95;padding:20px}
.lightbox.active{display:flex}
.lightbox-img{max-width:min(100%,1100px);max-height:74vh;border-radius:22px;box-shadow:0 20px 44px rgba(0,0,0,.32)}
.lightbox-close,.lightbox-prev,.lightbox-next{position:absolute;border:none;cursor:pointer;background:rgba(255,255,255,.14);color:#fff;width:58px;height:58px;border-radius:50%;font-size:28px}
.lightbox-close{top:18px;right:18px}.lightbox-prev{left:18px;top:50%;transform:translateY(-50%)}.lightbox-next{right:18px;top:50%;transform:translateY(-50%)}

/* Footer + radio */
.site-footer{padding:26px 0 110px;color:#6b605d}
.footer-card{padding:20px;border-radius:26px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);text-align:center;font-weight:700}
.radio-bar{position:fixed;left:16px;right:16px;bottom:14px;z-index:70;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:30px;background:linear-gradient(135deg,var(--brand),var(--brand-dark));color:#fff;box-shadow:0 20px 34px rgba(108,0,0,.22)}
.radio-meta strong{display:block;font-size:clamp(18px,4.8vw,24px);line-height:1.05}.radio-meta span{display:block;font-size:clamp(12px,3.2vw,14px);color:rgba(255,255,255,.82)}
.radio-btn{display:inline-flex;align-items:center;justify-content:center;min-width:150px;padding:16px 24px;background:var(--gold);color:#fff;border-radius:999px;font-size:clamp(18px,4.6vw,24px);font-weight:900;border:none;cursor:pointer}

/* Utility */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media (max-width: 980px){
  .simple-grid{grid-template-columns:1fr 1fr}
  .social-mini{display:none}
}
@media (max-width: 768px){
  .container{padding:0 14px}
  .brand-badge{width:48px;height:48px;flex-basis:48px;font-size:24px;border-radius:16px}
  .menu-btn,.icon-btn{width:48px;height:48px;font-size:22px}
  .search-form{padding:8px 8px 8px 16px;border-radius:26px}
  .search-form input[type="search"]{font-size:18px}
  .search-btn{width:52px;height:52px;flex-basis:52px}
  .hero-card{min-height:430px;border-radius:30px}
  .hero-content{padding:24px 20px 98px}
  .hero-title{font-size:clamp(34px,14vw,58px)}
  .hero-excerpt{font-size:clamp(15px,5vw,22px);-webkit-line-clamp:3}
  .hero-cta{min-width:200px;padding:16px 22px;font-size:22px}
  .hero-nav{right:14px;bottom:16px}.hero-nav button{width:52px;height:52px}
  .category-toggle{padding:16px}
  .category-toggle strong{font-size:clamp(22px,6vw,28px)}
  .simple-grid{grid-template-columns:1fr}
  .post-title,.media-title{font-size:22px}
  .entry-content{font-size:18px}
  .radio-bar{padding:12px 14px;gap:10px}
  .radio-btn{min-width:126px;padding:14px 18px}
}


/* V26.7 drawer premium categories */
.acc-item{border:none;background:transparent;box-shadow:none}
.acc-item:first-child{
  background:linear-gradient(180deg,#b50a0a 0%,#8f0000 58%,#6f0000 100%);
  border-radius:28px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.16), 0 18px 34px rgba(122,0,0,.20);
  padding:0;
}
.acc-item:first-child .acc-trigger{
  background:transparent;
  color:#fff8eb;
  padding:20px 18px;
  border-radius:28px;
  position:relative;
}
.acc-item:first-child .acc-trigger::before{
  content:"";
  position:absolute;inset:1px;border-radius:27px;
  background:linear-gradient(180deg,rgba(255,255,255,.13) 0%,rgba(255,255,255,.04) 24%,rgba(255,255,255,0) 48%);
  pointer-events:none;
}
.acc-item:first-child .acc-trigger > span:first-child{position:relative;z-index:1;display:flex;align-items:center;gap:14px;min-width:0;flex:1}
.acc-item:first-child .acc-trigger > span:first-child::before{
  content:"☰";
  width:56px;height:56px;min-width:56px;border-radius:18px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.14);
  color:#fff4df;font-size:26px;font-weight:800;
}
.acc-item:first-child .acc-trigger strong{display:block;font-size:clamp(28px,7vw,36px);line-height:1.05;letter-spacing:-.03em}
.acc-item:first-child .acc-trigger .meta{color:rgba(255,244,226,.92)!important;font-size:14px;margin-top:4px}
.acc-item:first-child .acc-trigger > span:last-child{
  width:52px;height:52px;min-width:52px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.14);
  font-size:30px;position:relative;z-index:1;
}
.acc-item:first-child .acc-body{padding:0 16px 16px}
.acc-item:first-child .acc-list a{
  background:#fbf7f2;
  border:1px solid rgba(110,68,34,.10);
  border-radius:18px;
  box-shadow:0 8px 18px rgba(45,18,18,.05);
}
.acc-item:first-child.open .acc-trigger > span:last-child{transform:rotate(45deg)}

/* Video slider */
.video-slider{position:relative}
.video-viewport{overflow:hidden}
.video-track{display:flex;gap:16px;transition:transform .45s ease;will-change:transform}
.video-card{min-width:calc(33.333% - 11px);flex:0 0 calc(33.333% - 11px)}
.video-nav{
  position:absolute;top:42%;transform:translateY(-50%);z-index:2;
  width:52px;height:52px;border-radius:50%;border:none;cursor:pointer;
  background:rgba(38,25,26,.16);backdrop-filter:blur(6px);color:#fff;font-size:28px;
  box-shadow:0 10px 24px rgba(26,14,14,.14)
}
.video-prev{left:10px}.video-next{right:10px}
.video-dots{display:flex;justify-content:center;gap:8px;margin-top:14px}
.video-dots button{width:10px;height:10px;border:none;border-radius:999px;background:rgba(122,112,108,.35);padding:0;cursor:pointer}
.video-dots button.active{width:26px;background:var(--brand)}
@media (max-width: 980px){
  .video-card{min-width:calc(50% - 8px);flex-basis:calc(50% - 8px)}
}
@media (max-width: 768px){
  .acc-item:first-child .acc-trigger{padding:18px 16px}
  .acc-item:first-child .acc-trigger > span:first-child::before{width:50px;height:50px;min-width:50px;border-radius:16px;font-size:24px}
  .acc-item:first-child .acc-trigger strong{font-size:clamp(24px,8vw,30px)}
  .acc-item:first-child .acc-trigger > span:last-child{width:48px;height:48px;min-width:48px;font-size:26px}
  .video-card{min-width:100%;flex-basis:100%}
  .video-nav{width:46px;height:46px;font-size:24px;top:36%}
}
