/*
Theme Name: Serhendyolu Nasihatler V2
Author: OpenAI
Version: 1.0.0
Description: Mobile-first WordPress theme inspired by the provided Nasihatler-style screenshots.
Text Domain: serhendyolu
*/
:root{
  --bg:#efefef;
  --card:#f7f7f7;
  --white:#fff;
  --text:#1f1f1f;
  --muted:#7f7f7f;
  --line:#dbdbdb;
  --accent:#dfa063;
  --accent-dark:#c98949;
  --dark:#171a23;
  --shadow:0 8px 18px rgba(0,0,0,.06);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.55;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
.site-wrap{overflow:hidden}
.container{width:min(100%, 760px);margin:0 auto;padding:0 14px}
.site-header{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:40;
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  min-height:68px;
}
.site-title{
  font-size:clamp(28px,7vw,42px);
  font-weight:800;
  letter-spacing:-.03em;
}
.top-actions{display:flex;gap:10px;align-items:center}
.icon-btn{
  width:44px;height:44px;border-radius:14px;border:1px solid var(--line);
  background:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow);cursor:pointer;
}
.icon-btn .bar{display:block;width:20px;height:2px;background:#444;position:relative}
.icon-btn .bar:before,.icon-btn .bar:after{
  content:"";position:absolute;left:0;width:20px;height:2px;background:#444;
}
.icon-btn .bar:before{top:-6px}.icon-btn .bar:after{top:6px}

.menu-drawer{
  display:none;background:#fff;border-top:1px solid var(--line);
  box-shadow:0 16px 32px rgba(0,0,0,.08);
}
.menu-drawer.open{display:block}
.menu-drawer .container{padding:14px}
.drawer-grid{display:grid;gap:18px}
.drawer-card{
  background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;
}
.drawer-card h3{margin:0 0 10px;font-size:18px}
.drawer-menu a{display:block;padding:8px 0;color:#333}
.drawer-socials{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.drawer-socials a{
  text-align:center;padding:12px 14px;border-radius:999px;
  background:linear-gradient(180deg,#d60808,#9c0000);color:#fff;font-weight:700;
  box-shadow:0 10px 20px rgba(170,0,0,.18);
}

.section-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:4px;
  padding:18px 12px;
  margin:14px 0;
}
.home-feature{
  display:grid;grid-template-columns:1fr;gap:18px;
}
.feature-main,.feature-side{
  display:grid;gap:18px;
}
.post-card{display:block}
.post-thumb{
  position:relative;overflow:hidden;background:#ddd;
}
.post-thumb img{width:100%;height:100%;object-fit:cover}
.post-badge{
  position:absolute;left:16px;top:16px;width:54px;height:54px;border-radius:50%;
  background:#ff5a5f;color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:24px;font-weight:800;box-shadow:0 8px 18px rgba(255,90,95,.3);
}
.post-chip{
  position:absolute;right:16px;bottom:16px;padding:10px 18px;border-radius:10px;
  background:#7f8cff;color:#fff;font-size:13px;font-weight:600;
}
.post-meta{
  margin-top:14px;color:#7a7a7a;font-size:17px;display:flex;align-items:center;gap:6px;
}
.clock{font-size:16px}
.post-title{
  margin:10px 0 10px;font-size:clamp(26px,7vw,44px);line-height:1.15;font-weight:700;
}
.post-title.small{font-size:20px;line-height:1.28;margin:4px 0}
.post-excerpt{color:#686868;font-size:18px}
.mini-list{display:grid;gap:14px}
.mini-item{
  display:grid;grid-template-columns:95px 1fr;gap:14px;align-items:start;
}
.mini-item .post-thumb{height:72px}
.mini-item .post-meta{margin-top:0;font-size:15px}
.mini-item .post-title.small{font-size:18px}

.section-title{
  font-size:26px;font-weight:700;margin:0 0 12px;
}
.section-title + .section-line{
  width:100%;height:4px;background:#dcdcdc;position:relative;margin-bottom:18px;
}
.section-title + .section-line:before{
  content:"";display:block;width:70px;height:4px;background:#444;
}
.category-select{
  width:100%;height:54px;border:1px solid var(--line);background:#fff;border-radius:4px;
  padding:0 16px;font-size:18px;color:#444;
}
.popular-list{display:grid;gap:18px}
.popular-item{display:grid;grid-template-columns:120px 1fr;gap:18px;align-items:start}
.popular-item .post-thumb{height:82px}
.popular-item .post-title.small{font-size:18px}
.load-more{
  width:100%;padding:18px;border:1px solid var(--line);background:#fff;
  color:var(--accent-dark);font-weight:600;font-size:18px;cursor:pointer;border-radius:2px;
}

.dark-panel{
  background:#171a23;color:#fff;border-top:8px solid var(--accent);padding:22px 14px 18px;
}
.dark-card{
  border:1px solid rgba(255,255,255,.08);border-radius:4px;padding:18px;background:rgba(255,255,255,.02);
}
.dark-title{
  margin:0 0 10px;font-size:24px;color:var(--accent);font-weight:700;
}
.dark-line{height:4px;background:rgba(255,255,255,.15);margin:8px 0 20px;position:relative}
.dark-line:before{content:"";display:block;width:72px;height:4px;background:var(--accent)}
.carousel{
  position:relative;overflow:hidden;
}
.carousel-track{
  display:flex;transition:transform .45s ease;
}
.carousel-slide{min-width:100%;padding:0 4px}
.carousel-dots{
  display:flex;justify-content:center;gap:8px;margin-top:16px;
}
.carousel-dots button{
  width:12px;height:12px;border-radius:50%;border:none;background:var(--accent);opacity:.4;cursor:pointer;
}
.carousel-dots button.active{opacity:1;transform:scale(1.2)}

.site-footer{
  background:#0d0d11;color:#fff;text-align:center;padding:28px 14px 96px;font-size:16px;
}
.site-footer .heart{color:#ff1d1d}

.single-card{
  background:var(--card);border:1px solid var(--line);padding:20px 14px;margin:14px 0;
}
.single-title{font-size:38px;line-height:1.15;margin:0 0 12px}
.single-content{font-size:20px;color:#555}
.single-content p{margin:0 0 18px}
.tag-cloud{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.tag-cloud a{
  display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border:1px solid var(--line);
  background:#fff;color:#d49a29;font-size:18px;border-radius:3px;
}
.related-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.related-grid .post-thumb{height:135px}
.related-grid .post-title.small{font-size:18px}
.comments-title{
  display:block;width:100%;text-align:center;background:var(--accent);color:#fff;border:none;
  font-size:26px;font-weight:700;padding:22px;border-radius:3px;margin:18px 0;
}
.comment-form-wrap{background:#f0f0f0;border-top:1px solid var(--line);padding:18px 0}
.comment-form-wrap input,.comment-form-wrap textarea{
  width:100%;border:1px solid var(--line);background:#fff;height:58px;padding:0 16px;border-radius:2px;
  font-size:18px;
}
.comment-form-wrap textarea{height:140px;padding-top:14px;resize:vertical}
.comment-grid{display:grid;grid-template-columns:1fr 160px;gap:14px}
.comment-submit{
  border:none;background:var(--accent);color:#fff;font-size:22px;font-weight:700;border-radius:2px;cursor:pointer;
}

.share-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:45;display:grid;grid-template-columns:repeat(6,1fr);
}
.share-bar a{
  min-height:58px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:28px;font-weight:800;
}
.share-facebook{background:#4a7de9}
.share-x{background:#000}
.share-pinterest{background:#e12d44}
.share-reddit{background:#ff5100}
.share-whatsapp{background:#42d45a}
.share-telegram{background:#158fcb}

.back-top{
  text-align:right;color:#d0a22a;font-size:18px;font-weight:500;margin-bottom:10px;
}

@media(min-width:760px){
  .container{width:min(100%, 980px)}
  .home-feature{grid-template-columns:1.45fr .95fr}
  .feature-main .post-thumb{height:330px}
  .feature-side .mini-item{grid-template-columns:120px 1fr}
  .popular-list{grid-template-columns:1fr 1fr}
}


/* V2 premium header */
.site-header{
  background:linear-gradient(180deg,#151923 0%, #0d1017 100%);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.header-inner{
  gap:14px;
}
.site-logo{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.site-logo-badge{
  width:58px;height:58px;border-radius:18px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#be1010,#7e0000);
  color:#fff;font-size:28px;font-weight:800;
  box-shadow:0 12px 24px rgba(126,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.10);
}
.site-logo-text{
  display:flex;flex-direction:column;line-height:1.02;
}
.site-logo-title{
  font-size:clamp(28px,7vw,40px);
  font-weight:900;
  letter-spacing:-.03em;
  color:#fff;
  text-shadow:0 2px 14px rgba(0,0,0,.18);
}
.site-logo-sub{
  color:#dcc18a;
  font-size:15px;
  font-weight:600;
  margin-top:4px;
}
.header-menu-btn{
  width:58px;height:58px;border-radius:18px;border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg,#2b2f38,#151922);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
  cursor:pointer;flex:0 0 auto;
}
.header-menu-btn .bar{display:block;width:22px;height:2px;background:#f2e5c3;position:relative}
.header-menu-btn .bar:before,.header-menu-btn .bar:after{
  content:"";position:absolute;left:0;width:22px;height:2px;background:#f2e5c3;
}
.header-menu-btn .bar:before{top:-7px}.header-menu-btn .bar:after{top:7px}
.menu-drawer{
  background:linear-gradient(180deg,#141821 0%, #0a0d14 100%);
  border-top:1px solid rgba(255,255,255,.05);
}
.drawer-card{
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.06);
  color:#fff;
}
.drawer-card h3{color:#f0d79b}
.drawer-menu a{color:#fff;border-bottom:1px solid rgba(255,255,255,.06)}
.drawer-menu a:last-child{border-bottom:none}
.drawer-cats{
  display:grid;
  gap:10px;
  grid-template-columns:1fr 1fr;
}
.drawer-cats a{
  display:block;
  background:linear-gradient(180deg,#fff,#f5f2ee);
  color:#2a2220;
  border:1px solid #e4ddd7;
  border-radius:12px;
  padding:12px 14px;
  font-size:15px;
  font-weight:700;
  box-shadow:0 8px 18px rgba(0,0,0,.05);
}

/* Original social SVG icons */
.share-bar a{
  font-size:0;
}
.share-bar a svg{
  width:24px;
  height:24px;
  display:block;
  color:#fff;
}
