/**
 * Kamu Atama TR — İçerik ve Tipografi Stilleri (content.css)
 * Blog, Haberler, Kategori, Danışmanlık ve Yasal sayfaları için ortak tasarım sistemi.
 */

/* ==========================================================================
   1. Tipografi & Okuma Genişliği (.prose)
   ========================================================================== */
.prose {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem; /* ~17px */
  line-height: 1.78;
  color: #1e293b;
  word-wrap: break-word;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.prose h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.32;
  margin-top: 2.75rem;
  margin-bottom: 1.125rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  scroll-margin-top: 5rem;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
  scroll-margin-top: 5rem;
}

.prose h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #334155;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose ul,
.prose ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.625rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: #3479e4;
}

.prose blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.375rem;
  background: #f8fafc;
  border-left: 4px solid #3479e4;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #334155;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.prose a:hover {
  color: #1e40af;
}

.prose strong {
  font-weight: 600;
  color: #0f172a;
}

.prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

/* Tablolar (.prose table) */
.prose .table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.prose th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: top;
}

.prose tr:nth-child(even) td {
  background: #fafbfc;
}

.prose tr:hover td {
  background: #f1f5f9;
}

/* ==========================================================================
   2. Sayfa Başlığı ve Meta Alanı (Hero)
   ========================================================================== */
.post-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.post-header .badge-cat {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e40af;
  background: #dbeafe;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: background 0.15s;
}

.post-header .badge-cat:hover {
  background: #bfdbfe;
}

.post-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  color: #0a193c;
  margin-top: 0;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #64748b;
}

.post-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-avatar-mini {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 16px;
}

.post-meta-author-info {
  display: flex;
  flex-direction: column;
}

.post-author-name {
  font-weight: 600;
  color: #1e293b;
}

.post-author-title {
  font-size: 0.775rem;
  color: #64748b;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   3. İçindekiler Tablosu (TOC)
   ========================================================================== */
.post-toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.post-toc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 0.875rem;
}

.post-toc-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-toc-list li a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #334155;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: color 0.15s, transform 0.15s;
}

.post-toc-list li a:hover {
  color: #3479e4;
  transform: translateX(4px);
}

.post-toc-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #3479e4;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   4. Yazar Kutusu (E-E-A-T)
   ========================================================================== */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  margin: 3rem 0 2rem;
}

.author-box-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #3479e4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.author-box-content {
  flex: 1;
}

.author-box-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.author-box-title {
  font-size: 0.875rem;
  color: #3479e4;
  font-weight: 600;
  margin-bottom: 8px;
}

.author-box-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   5. Kaynakça & Doğruluk Kutusu
   ========================================================================== */
.sources-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}

.sources-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sources-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
}

.sources-list a {
  color: #2563eb;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   6. Sosyal Paylaşım Butonları
   ========================================================================== */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.share-bar-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.15s, opacity 0.15s;
  cursor: pointer;
  border: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  color: #ffffff;
}

.share-btn.btn-whatsapp { background: #25d366; }
.share-btn.btn-x { background: #000000; }
.share-btn.btn-linkedin { background: #0a66c2; }
.share-btn.btn-copy { background: #475569; }

/* ==========================================================================
   7. Kart Izgarası (.card-grid & .content-card)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 2rem 0;
}

.content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(10, 25, 60, 0.12);
  color: inherit;
}

.content-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
}

.content-card-cover-icon {
  font-size: 40px;
  opacity: 0.85;
}

.content-card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.content-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.775rem;
  color: #64748b;
}

.content-card-cat {
  font-weight: 700;
  text-transform: uppercase;
  color: #3479e4;
  letter-spacing: 0.04em;
}

.content-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.content-card-summary {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 1.25rem;
  flex: 1;
}

.content-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.875rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.content-card-readmore {
  font-weight: 600;
  color: #3479e4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   8. Kategori Çipleri (.cat-chips)
   ========================================================================== */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.5rem 0 2rem;
}

.cat-chip {
  padding: 7px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.15s;
}

.cat-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cat-chip.active {
  background: #3479e4;
  color: #ffffff;
}

/* ==========================================================================
   9. Sayfalama (.pagination-nav)
   ========================================================================== */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 3rem 0 2rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.page-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.page-btn.active {
  background: #3479e4;
  border-color: #3479e4;
  color: #ffffff;
}

.page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================================================
   10. Yasal Taslak Uyarısı (.legal-draft-banner)
   ========================================================================== */
.legal-draft-banner {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #92400e;
  font-size: 0.9rem;
}

.legal-draft-banner i {
  font-size: 1.15rem;
}

/* ==========================================================================
   11. Sticky Araç CTA Kutusu (.post-sticky-cta)
   ========================================================================== */
.post-sticky-cta {
  background: linear-gradient(135deg, #0a193c, #1e3a8a);
  color: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.post-sticky-cta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #ffffff;
}

.post-sticky-cta p {
  font-size: 0.875rem;
  color: #93c5fd;
  margin: 0;
}

.post-sticky-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #38bdf8;
  color: #0a193c;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.post-sticky-cta .btn-cta:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
}
