/* ================================================
   Multi-Domain Blog Sistemi — Varsayılan Tema CSS
   ================================================ */

/* ---- CSS Değişkenleri ---- */
:root {
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37,99,235;
  --site-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --site-navbar-bg: #1e293b;
  --site-navbar-height: 64px;
  --site-footer-bg: #1e293b;
  --post-content-font: 'Georgia', 'Times New Roman', serif;
  --reading-bar-color: #2563eb;
  --border-radius-card: 0.75rem;
  --shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--site-font);
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.7;
  margin: 0;
}

a { color: var(--bs-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ---- Okuma İlerleme Çubuğu ---- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--reading-bar-color);
  z-index: 9999;
  transition: width .1s linear;
}

/* ---- Navbar ---- */
.site-navbar {
  background: var(--site-navbar-bg);
  height: var(--site-navbar-height);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 2px 8px rgba(0,0,0,.15);
}

.site-navbar .navbar-brand {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}
.site-navbar .navbar-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.site-navbar .navbar-brand:hover { color: #fff; text-decoration: none; }

.site-navbar .nav-link {
  color: #cbd5e1;
  font-size: .9rem;
  padding-left: .75rem !important;
  padding-right: .75rem !important;
  transition: color .2s;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active { color: #fff; }

.site-navbar .dropdown-menu {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  border-radius: .5rem;
  min-width: 180px;
}
.site-navbar .dropdown-item {
  font-size: .875rem;
  padding: .45rem 1rem;
}
.site-navbar .dropdown-item:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.site-navbar .search-form {
  position: relative;
}
.site-navbar .search-form input {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #f1f5f9;
  border-radius: 2rem;
  padding: .4rem 1rem .4rem 2.2rem;
  font-size: .85rem;
  width: 200px;
  transition: all .2s;
}
.site-navbar .search-form input::placeholder { color: #94a3b8; }
.site-navbar .search-form input:focus {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
  outline: none;
  width: 250px;
  color: #fff;
}
.site-navbar .search-form .search-icon {
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: .85rem;
  pointer-events: none;
}

/* ---- Hero Post ---- */
.hero-post {
  position: relative;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  min-height: 420px;
  background: #0f172a;
  box-shadow: var(--shadow-card);
}
.hero-post-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.hero-post-body {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-post-body .badge { font-weight: 600; letter-spacing: .02em; }
.hero-post-title {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin: .5rem 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-post-title a {
  color: #fff;
  text-decoration: none;
}
.hero-post-title a:hover { text-decoration: underline; }
.hero-post-meta { color: rgba(255,255,255,.75); font-size: .875rem; }
.hero-post-excerpt { color: rgba(255,255,255,.8); font-size: .95rem; margin-top: .5rem; }
.hero-post-no-img .hero-post-body { justify-content: flex-start; background: linear-gradient(135deg,#1e293b 0%,#0f172a 100%); }

/* ---- Post Card (vertical grid) ---- */
.post-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
}
.post-card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e2e8f0;
}
.post-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.post-card:hover .post-card-img-wrap img { transform: scale(1.04); }
.post-card-no-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg,#f1f5f9,#e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 3rem;
}
.post-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.post-category-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 2rem;
  padding: .2rem .65rem;
  text-decoration: none;
  margin-bottom: .4rem;
  transition: background .2s;
}
.post-category-badge:hover { background: #dbeafe; text-decoration: none; }
.post-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: .5rem;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: #2563eb; text-decoration: none; }
.post-excerpt { font-size: .875rem; color: #64748b; line-height: 1.6; margin-bottom: .75rem; flex: 1; }
.post-meta {
  font-size: .78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.post-meta a { color: #64748b; text-decoration: none; }
.post-meta a:hover { color: #2563eb; }
.post-meta-dot::before { content: '·'; margin: 0 .1rem; }

/* ---- Post Card Horizontal ---- */
.post-card-h {
  border-radius: var(--border-radius-card) !important;
  overflow: hidden;
  transition: box-shadow .2s;
}
.post-card-h:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1) !important; }
.post-card-h-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 130px;
  max-height: 160px;
}

/* ---- Sayfa Başlığı ---- */
.page-head h1 { font-weight: 700; color: #1e293b; }

/* ---- Tekil Makale ---- */
.post-single {
  background: #fff;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.post-single-header { padding: 2.5rem 2.5rem 1.5rem; }
.post-single-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.post-single-content {
  padding: 2rem 2.5rem 2.5rem;
  font-family: var(--post-content-font);
  font-size: 1.08rem;
  line-height: 1.85;
  color: #1e293b;
}
.post-single-content h2 { font-family: var(--site-font); font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; color: #0f172a; }
.post-single-content h3 { font-family: var(--site-font); font-size: 1.25rem; font-weight: 600; margin: 1.75rem 0 .6rem; color: #0f172a; }
.post-single-content h4 { font-family: var(--site-font); font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.post-single-content p { margin-bottom: 1.25rem; }
.post-single-content a { color: #2563eb; }
.post-single-content a:hover { text-decoration: underline; }
.post-single-content ul, .post-single-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-single-content li { margin-bottom: .4rem; }
.post-single-content blockquote {
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0 .5rem .5rem 0;
  font-style: italic;
  color: #334155;
}
.post-single-content code {
  background: #f1f5f9;
  padding: .15em .4em;
  border-radius: .25rem;
  font-size: .875em;
  color: #be185d;
  font-family: 'Courier New', monospace;
}
.post-single-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: .5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-single-content pre code { background: none; color: inherit; padding: 0; font-size: .9rem; }
.post-single-content img { border-radius: .5rem; margin: 1rem 0; }
.post-single-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post-single-content table th,
.post-single-content table td { border: 1px solid #e2e8f0; padding: .6rem .9rem; text-align: left; }
.post-single-content table th { background: #f8fafc; font-weight: 600; font-family: var(--site-font); }
.post-single-content table tr:nth-child(even) { background: #f8fafc; }
.post-single-content hr { border: none; border-top: 2px solid #f1f5f9; margin: 2rem 0; }

/* ---- Post Tags ---- */
.post-tags { padding: 0 2.5rem 1.5rem; }
.tag-pill {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  border-radius: 2rem;
  padding: .25rem .75rem;
  font-size: .8rem;
  text-decoration: none;
  margin: .15rem;
  transition: background .2s, color .2s;
}
.tag-pill:hover { background: #2563eb; color: #fff; text-decoration: none; }

/* ---- Yazar Kutusu ---- */
.author-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-card);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-box-name { font-weight: 700; font-size: 1.05rem; margin-bottom: .25rem; color: #0f172a; }
.author-box-bio { font-size: .875rem; color: #64748b; margin-bottom: .5rem; }
.author-avatar-lg { width: 80px; height: 80px; object-fit: cover; }

/* ---- Sosyal Paylaşım ---- */
.social-share { padding: 1rem 2.5rem 1.5rem; border-top: 1px solid #f1f5f9; }
.social-share .btn { border-radius: 2rem; font-size: .85rem; }

/* ---- İlgili Makaleler ---- */
.related-posts { padding: 1.5rem 2.5rem 2rem; border-top: 2px solid #f1f5f9; }
.related-posts h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }

/* ---- Sidebar ---- */
.sidebar-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.sidebar-widget-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  background: #f8fafc;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
}
.sidebar-widget-body { padding: 1rem 1.25rem; }

.category-widget-list { list-style: none; padding: 0; margin: 0; }
.category-widget-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .9rem;
}
.category-widget-list li:last-child { border-bottom: none; }
.category-widget-list a { color: #334155; text-decoration: none; }
.category-widget-list a:hover { color: #2563eb; }
.category-widget-list .count { font-size: .75rem; background: #f1f5f9; color: #64748b; border-radius: 2rem; padding: .1rem .5rem; }

.recent-posts-list { list-style: none; padding: 0; margin: 0; }
.recent-posts-list li {
  display: flex;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: flex-start;
}
.recent-posts-list li:last-child { border-bottom: none; }
.recent-posts-list .thumb {
  width: 60px;
  height: 50px;
  object-fit: cover;
  border-radius: .35rem;
  flex-shrink: 0;
}
.recent-posts-list .no-thumb {
  width: 60px;
  height: 50px;
  background: #e2e8f0;
  border-radius: .35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
}
.recent-posts-list .rp-title {
  font-size: .85rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-posts-list .rp-title a { color: inherit; text-decoration: none; }
.recent-posts-list .rp-title a:hover { color: #2563eb; }
.recent-posts-list .rp-date { font-size: .75rem; color: #94a3b8; margin-top: .2rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---- Sayfalama ---- */
.pagination .page-link { color: #2563eb; border-color: #e2e8f0; }
.pagination .page-item.active .page-link { background: #2563eb; border-color: #2563eb; }
.pagination .page-link:hover { background: #eff6ff; color: #1d4ed8; }

/* ---- Footer ---- */
.site-footer {
  background: var(--site-footer-bg);
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer h5, .site-footer h6 {
  color: #e2e8f0;
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.site-footer a { color: #94a3b8; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #f1f5f9; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { padding: .3rem 0; font-size: .875rem; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: .8rem;
  text-align: center;
}
.site-footer .social-links { display: flex; gap: .6rem; margin-top: .5rem; }
.site-footer .social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: background .2s;
}
.site-footer .social-links a:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ---- Genel Yardımcı Sınıflar ---- */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #2563eb;
  display: inline-block;
}
.text-gradient {
  background: linear-gradient(135deg,#2563eb,#7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.breadcrumb { font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: #94a3b8; }
.ai-badge {
  background: linear-gradient(135deg, #6d28d9, #4f46e5);
  color: #fff;
  font-size: .7rem;
  padding: .15rem .5rem;
  border-radius: 2rem;
  font-weight: 600;
  letter-spacing: .03em;
}

/* ---- Copy Success Toast ---- */
#copy-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(4rem);
  background: #1e293b;
  color: #fff;
  padding: .6rem 1.25rem;
  border-radius: 2rem;
  font-size: .875rem;
  z-index: 9990;
  opacity: 0;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
  white-space: nowrap;
}
#copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-post-title { font-size: 1.3rem; }
  .hero-post { min-height: 300px; }
  .hero-post-body { min-height: 300px; padding: 1.5rem; }
  .post-single-header { padding: 1.5rem 1.25rem 1rem; }
  .post-single-content { padding: 1.25rem 1.25rem 1.5rem; font-size: 1rem; }
  .post-tags, .social-share, .related-posts { padding-left: 1.25rem; padding-right: 1.25rem; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .site-navbar .search-form input { width: 140px; }
  .site-navbar .search-form input:focus { width: 160px; }
}

@media (max-width: 576px) {
  .hero-post-title { font-size: 1.1rem; }
  .post-single-content { font-size: .95rem; }
}
