/*
Theme Name: Mustafa Publisher Theme (v50)
Author: Mustafa Özdemir
Version: 72.0
Description: Premium yayın teması (Discover tarzı) - Bootstrap 5, SEO, hızlı ve mobil uyumlu
*/

/* Design tokens */
:root{
  --bg:#f3f5f8;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --brand:#0d6efd;
  --brand2:#4da3ff;
  --border:rgba(2,6,23,.08);
  --shadow:0 10px 30px rgba(2,6,23,.08);
  --radius:18px;
}

html{scroll-behavior:smooth}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  margin:0;
}

a{color:inherit}
a:hover{color:var(--brand)}

/* Layout */
.m-container{max-width:1200px;margin:auto;padding:18px}
@media (min-width:992px){ .m-container{padding:24px} }

/* CLS-safe media */
img, iframe, video{max-width:100%}
img{height:auto;display:block}
.mp-media-16x9{aspect-ratio:16/9;object-fit:cover;background:#e8eef7}

/* Top logo bar */
.mp-topbar{
  background:#fff;
  border-bottom:1px solid var(--border);
}
.custom-logo{max-height:70px;width:auto!important}

/* Navbar */
.navbar{
  background:#fff;
  border-bottom:1px solid var(--border);
}
.navbar-nav{list-style:none;margin:0;padding:0}
.navbar-nav .nav-link{
  font-weight:800;
  letter-spacing:.1px;
  padding:.9rem 1rem;
  color:#0b1220 !important;
}
.navbar-nav .nav-link:hover{color:var(--brand) !important}

/* Breaking bar */
.mp-breaking{
  background:linear-gradient(90deg, #111827 0%, #1f2937 50%, #111827 100%);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-weight:800;
  display:flex;
  gap:10px;
  align-items:center;
  overflow:hidden;
  white-space:nowrap;
}
.mp-breaking .badge{
  background:linear-gradient(90deg, #ff3b3b, #ff8a3b);
  border:0;
  font-weight:900;
}

/* Card */
.mp-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.mp-card + .mp-card{margin-top:18px}
.mp-card-body{padding:16px}
@media (min-width:992px){ .mp-card-body{padding:18px} }

/* Hero */
.mp-hero{
  display:grid;
  gap:16px;
}
@media (min-width:992px){
  .mp-hero{grid-template-columns:1.4fr .6fr}
}

.mp-hero-main{
  border-radius:var(--radius);
  overflow:hidden;
  position:relative;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.mp-hero-main .carousel-item{
  position:relative;
}
.mp-hero-main .mp-hero-img{
  width:100%;
  height:380px;
  object-fit:cover;
  background:#e8eef7;
}
@media (min-width:992px){
  .mp-hero-main .mp-hero-img{height:460px}
}
.mp-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(2,6,23,.10) 0%, rgba(2,6,23,.70) 70%, rgba(2,6,23,.85) 100%);
}
.mp-hero-content{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:18px;
  color:#fff;
}
.mp-hero-kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-weight:900;
  letter-spacing:.2px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.mp-hero-title{
  font-size:28px;
  line-height:1.15;
  font-weight:950;
  margin:10px 0 8px;
  letter-spacing:-.3px;
}
@media (min-width:992px){
  .mp-hero-title{font-size:36px}
}
.mp-hero-meta{
  color:rgba(255,255,255,.86);
  font-weight:700;
  font-size:13px;
}

/* Hero side cards */
.mp-hero-side{
  display:grid;
  gap:16px;
}
.mp-mini{
  display:grid;
  grid-template-columns: 92px 1fr;
  gap:12px;
  align-items:center;
}
.mp-mini img{
  width:92px;height:92px;border-radius:14px;object-fit:cover;background:#e8eef7;
}
.mp-mini h3{
  font-size:15px;
  font-weight:900;
  margin:0 0 6px;
  line-height:1.25;
}
.mp-mini .meta{font-size:12px;color:var(--muted);font-weight:700}

/* Section title */
.mp-section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:18px 0 10px;
}
.mp-section-title h2{
  margin:0;
  font-size:18px;
  font-weight:950;
  letter-spacing:-.2px;
}
.mp-section-title .mp-pill{
  font-size:12px;
  font-weight:900;
  color:#0b1220;
  background:#e8f0ff;
  border:1px solid rgba(13,110,253,.18);
  border-radius:999px;
  padding:6px 10px;
}

/* Reels strip */
.mp-reels{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:10px 2px 4px;
  scroll-snap-type:x mandatory;
}
.mp-reel{
  scroll-snap-align:start;
  min-width:220px;
  height:340px;
  background:#000;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
}
.mp-reel iframe, .mp-reel video{width:100%;height:100%;display:block}

/* Post grid */
.mp-grid{
  display:grid;
  gap:16px;
}
@media (min-width:768px){ .mp-grid{grid-template-columns:1fr 1fr} }
.mp-post{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.mp-post .thumb{width:100%;height:220px;object-fit:cover;background:#e8eef7}
.mp-post .body{padding:16px}
.mp-post .title{
  font-size:18px;
  font-weight:950;
  margin:0 0 8px;
  line-height:1.25;
  letter-spacing:-.2px;
}
.mp-post .meta{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.mp-post .excerpt{color:#334155;margin:0 0 12px}
.mp-post .btn{font-weight:900;border-radius:12px;padding:.55rem .9rem}

/* Single */
.mp-article h1{
  font-size:30px;
  font-weight:950;
  letter-spacing:-.4px;
  margin:0 0 10px;
}
.mp-article .meta{color:var(--muted);font-weight:800;font-size:13px;margin-bottom:14px}
.entry-content{font-size:18px;line-height:1.85}
.entry-content img{border-radius:16px;margin:18px 0}

/* Sidebar */
.mp-side .mp-card{margin-bottom:16px}
.mp-side-title{font-size:16px;font-weight:950;margin:0 0 10px}
.mp-side-post{
  display:flex;gap:10px;align-items:flex-start;
  padding:10px 0;border-bottom:1px solid rgba(2,6,23,.06);
}
.mp-side-post:last-child{border-bottom:0}
.mp-side-post img{width:74px;height:74px;border-radius:14px;object-fit:cover;background:#e8eef7}
.mp-side-post a{font-weight:950;text-decoration:none;line-height:1.2}
.mp-side-post .meta{font-size:12px;color:var(--muted);font-weight:800;margin-top:2px}

.mp-tagcloud a{
  display:inline-block;
  background:#f1f5ff;
  border:1px solid rgba(13,110,253,.18);
  color:#0b5ed7;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px !important;
  margin:6px 6px 0 0;
  text-decoration:none;
}
.mp-tagcloud a:hover{background:#e8f0ff}

/* Auth box */
.mp-auth{
  background:linear-gradient(135deg, #0d6efd 0%, #4da3ff 100%);
  color:#fff;
}
.mp-auth .btn{font-weight:950;border-radius:12px}
.mp-auth .btn-light{color:#0b1220}

/* Footer */
footer{
  background:#0b1220;
  color:#fff;
  padding:28px 18px;
  margin-top:24px;
}
footer a{color:#fff;text-decoration:none}
footer a:hover{text-decoration:underline}

/* Forms (comments/contact) */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.mp-form input,
.mp-form textarea{
  width:100%;
  max-width:100%;
  border-radius:12px;
  border:1px solid var(--border);
  padding:10px 12px;
}
.mp-form button{border-radius:12px;font-weight:950}

/* Pagination */
.nav-links{display:flex;gap:10px;flex-wrap:wrap}
.nav-links .page-numbers{
  background:#fff;
  border:1px solid var(--border);
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
}
.nav-links .current{background:var(--brand);color:#fff;border-color:var(--brand)}



/* TOC */
.mp-toc{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:var(--shadow);
  padding:14px 14px 10px;
  margin:0 0 16px;
}
.mp-toc .mp-toc-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:950;
  font-size:16px;
  margin:0 0 10px;
}
.mp-toc .mp-toc-title button{
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:6px 10px;
  font-weight:900;
  font-size:12px;
}
.mp-toc ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px;
}
.mp-toc a{
  text-decoration:none;
  color:#0b1220;
  font-weight:900;
  font-size:14px;
  display:block;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(2,6,23,.06);
  background:#fff;
}
.mp-toc a:hover{border-color:rgba(13,110,253,.35); color:var(--brand);}
.mp-toc .mp-toc-h3 a{font-weight:850; font-size:13px; padding-left:18px;}
.mp-toc .mp-toc-h4 a{font-weight:800; font-size:13px; padding-left:26px;}
.mp-toc.is-collapsed ul{display:none;}


/* Reading progress bar */
#mpProgress{
  position:fixed;
  top:0; left:0;
  height:3px;
  width:0%;
  background:linear-gradient(90deg, var(--brand), var(--brand2));
  z-index:9999;
}

/* Author box */
.mp-author{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.mp-author .avatar{
  width:64px;height:64px;
  border-radius:18px;
  overflow:hidden;
  background:#e8eef7;
  flex:0 0 auto;
}
.mp-author .avatar img{width:100%;height:100%;object-fit:cover}
.mp-author .name{font-weight:950;margin:0}
.mp-author .bio{color:var(--muted);font-weight:800;margin:6px 0 0;font-size:13px;line-height:1.6}
.mp-author .meta{color:var(--muted);font-weight:800;font-size:12px;margin-top:6px}

/* Mobile bottom nav */
.mp-bottom-nav{
  position:fixed;
  left:12px; right:12px; bottom:12px;
  z-index:9998;
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(10px);
  padding:10px 8px;
  display:none;
}
.mp-bottom-nav a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  text-decoration:none;
  color:#0b1220;
  font-weight:900;
  font-size:11px;
  width:25%;
}
.mp-bottom-nav a span.emo{font-size:18px;line-height:1}
.mp-bottom-nav a.active{color:var(--brand)}
@media (max-width: 768px){
  .mp-bottom-nav{display:flex}
  body{padding-bottom:90px}
}

/* Inline view count */
.mp-views{
  display:inline-flex;
  gap:6px;
  align-items:center;
}


/* Related posts */
.mp-related{
  margin-top:30px;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:14px;
}

.mp-related a{
  display:block;
  text-decoration:none;
  border:1px solid #eee;
  border-radius:12px;
  padding:10px;
  font-weight:700;
}

.mp-related a:hover{
  background:#f8f8f8;
}

/* simple rating */
.mp-rating{
  margin-top:15px;
  font-size:18px;
  color:#ff9800;
}



/* Live search */
.mp-search-wrap{position:relative}
.mp-search-input{
  width:260px;
  border-radius:999px;
  border:1px solid var(--border);
  padding:8px 12px;
  font-weight:800;
  outline:none;
  background:#fff;
}
.mp-search-results{
  position:absolute;
  top:44px;
  left:0;
  right:0;
  z-index:9999;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow);
  overflow:hidden;
  display:none;
}
.mp-search-results a{
  display:block;
  padding:10px 12px;
  text-decoration:none;
  border-bottom:1px solid rgba(2,6,23,.06);
  font-weight:900;
  color:#0b1220;
}
.mp-search-results a:hover{background:#f8fbff;color:var(--brand)}
.mp-search-results a:last-child{border-bottom:0}
.mp-search-results .mp-sr-meta{display:block;font-size:12px;color:var(--muted);font-weight:800;margin-top:2px}
@media (max-width: 768px){
  .mp-search-input{width:100%}
}



/* Live search results with thumbs + filters */
.mp-search-filters{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-right:10px;
}
.mp-search-select{
  border-radius:999px;
  border:1px solid var(--border);
  padding:7px 10px;
  font-weight:850;
  background:#fff;
  color:#0b1220;
  font-size:12px;
  max-width:160px;
}
.mp-search-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.mp-search-row img{
  width:44px;height:44px;
  border-radius:12px;
  object-fit:cover;
  background:#e8eef7;
  flex:0 0 auto;
}
.mp-search-row .mp-sr-text{min-width:0}
.mp-search-row .mp-sr-title{
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
