/**
 * Sadece CKEditor / makale & sayfa gövdesi (.page-content, .article-content).
 * Navbar, mega menü, .row, .container için kural YOK — global grid’i etkilemez.
 */

.page-content,
.article-content {
  --prose-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --prose-heading: "Plus Jakarta Sans", var(--prose-body);
  --prose-quote-border: var(--bs-primary, #2563eb);
  --prose-quote-bg: #f8fafc;
  --prose-muted: #64748b;
  --prose-text: #1f2937;
  font-family: var(--prose-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--prose-text);
  letter-spacing: 0.01em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-content > *:first-child,
.article-content > *:first-child {
  margin-top: 0 !important;
}

.page-content > *:last-child,
.article-content > *:last-child {
  margin-bottom: 0 !important;
}

.page-content p,
.article-content p {
  margin-bottom: 1.35rem;
}

.page-content h1,
.article-content h1 {
  font-family: var(--prose-heading);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #111827;
  margin-top: 1.85rem;
  margin-bottom: 0.9rem;
}

.page-content h2,
.article-content h2 {
  font-family: var(--prose-heading);
  font-size: clamp(1.32rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #111827;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}

.page-content h3,
.article-content h3 {
  font-family: var(--prose-heading);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2937;
  margin-top: 1.75rem;
  margin-bottom: 0.55rem;
}

.page-content h4,
.article-content h4 {
  font-family: var(--prose-heading);
  font-size: 1.12rem;
  font-weight: 600;
  margin-top: 1.45rem;
  margin-bottom: 0.5rem;
  color: #374151;
}

.page-content h5,
.page-content h6,
.article-content h5,
.article-content h6 {
  font-family: var(--prose-heading);
  font-size: 1.02rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.45rem;
  color: #4b5563;
}

/* Alıntı / vurgu kutusu — sol kalın çizgi, açık arka plan, italik (örnek tasarıma uyum) */
.page-content blockquote,
.article-content blockquote,
.page-content blockquote.blockquote,
.article-content blockquote.blockquote {
  margin: 1.65rem 0 1.85rem !important;
  margin-left: 0 !important;
  padding: 1.25rem 1.4rem 1.3rem 1.35rem !important;
  border: none !important;
  border-left: 5px solid var(--prose-quote-border) !important;
  border-radius: 0 0.4rem 0.4rem 0;
  background-color: var(--prose-quote-bg) !important;
  font-family: var(--prose-body) !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: #334155 !important;
  line-height: 1.68 !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.page-content blockquote strong,
.article-content blockquote strong {
  font-weight: 700 !important;
  font-style: italic;
  color: #1e293b;
}

.page-content blockquote p,
.article-content blockquote p {
  margin-bottom: 0.7rem;
  font-style: inherit;
  color: inherit;
}

.page-content blockquote p:last-child,
.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.page-content blockquote cite,
.article-content blockquote cite {
  font-size: 0.9em;
  font-style: normal;
  color: var(--prose-muted);
}

/* Paragraf: tek satırda "Anahtar: açıklama" (strong ile başlayan) — sol ince çizgi */
.page-content p:has(> strong:first-child),
.article-content p:has(> strong:first-child) {
  padding-left: 0.85rem;
  margin-left: 0.15rem;
  border-left: 3px solid #e2e8f0;
}

.page-content p:has(> strong:first-child) strong,
.article-content p:has(> strong:first-child) strong {
  font-weight: 700;
  color: #111827;
}

/* Liste: her satır <li><strong>Kelime:</strong> metin — dikey çizgi hizası */
.page-content ul:has(> li > strong:first-child),
.article-content ul:has(> li > strong:first-child) {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5rem;
}

.page-content ul:has(> li > strong:first-child) > li,
.article-content ul:has(> li > strong:first-child) > li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.9rem;
  border-left: 3px solid #e2e8f0;
  line-height: 1.65;
}

.page-content ul:has(> li > strong:first-child) > li > strong:first-child,
.article-content ul:has(> li > strong:first-child) > li > strong:first-child {
  font-weight: 700;
  color: #111827;
}

.page-content ol:has(> li > strong:first-child),
.article-content ol:has(> li > strong:first-child) {
  padding-left: 0;
  list-style: none;
  counter-reset: prose-ol;
  margin: 0 0 1.5rem;
}

.page-content ol:has(> li > strong:first-child) > li,
.article-content ol:has(> li > strong:first-child) > li {
  counter-increment: prose-ol;
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.9rem;
  border-left: 3px solid #e2e8f0;
  line-height: 1.65;
}

.page-content strong,
.article-content strong {
  font-weight: 600;
  color: #111827;
}

.page-content a:not(.btn),
.article-content a:not(.btn) {
  color: var(--bs-primary, #2563eb);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.page-content a:not(.btn):hover,
.article-content a:not(.btn):hover {
  color: #1e40af;
}

/* Normal madde işaretli listeler (strong kalıbı olmayan) */
.page-content ul:not(:has(> li > strong:first-child)),
.article-content ul:not(:has(> li > strong:first-child)) {
  margin: 0 0 1.35rem;
  padding-left: 1.35rem;
}

.page-content ol:not(:has(> li > strong:first-child)),
.article-content ol:not(:has(> li > strong:first-child)) {
  margin: 0 0 1.35rem;
  padding-left: 1.35rem;
}

.page-content ul:not(:has(> li > strong:first-child)) li,
.article-content ul:not(:has(> li > strong:first-child)) li,
.page-content ol:not(:has(> li > strong:first-child)) li,
.article-content ol:not(:has(> li > strong:first-child)) li {
  margin-bottom: 0.5rem;
}

.page-content li::marker,
.article-content li::marker {
  color: #94a3b8;
}

.page-content hr,
.article-content hr {
  margin: 2.25rem 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.page-content img,
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.35rem 0;
}

.page-content figure,
.article-content figure {
  margin: 1.6rem 0;
}

.page-content figcaption,
.article-content figcaption {
  font-size: 0.9rem;
  color: var(--prose-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.page-content table,
.article-content table {
  width: 100%;
  margin: 1.6rem 0;
  border-collapse: collapse;
  font-size: 0.95em;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.page-content th,
.page-content td,
.article-content th,
.article-content td {
  padding: 0.65rem 0.9rem;
  border: 1px solid #e2e8f0;
}

.page-content thead th,
.article-content thead th {
  background: #f8fafc;
  font-weight: 600;
  color: #1e293b;
}

.page-content tbody tr:nth-child(even),
.article-content tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.page-content pre,
.page-content code,
.article-content pre,
.article-content code {
  font-family: var(--bs-font-monospace, ui-monospace, monospace);
  font-size: 0.9em;
}

.page-content pre,
.article-content pre {
  padding: 1rem;
  border-radius: 0.5rem;
  background: #1e293b;
  color: #e2e8f0;
  overflow-x: auto;
  margin: 1.35rem 0;
}

.page-content code,
.article-content code {
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  background: #f1f5f9;
  color: #0f172a;
}

.page-content pre code,
.article-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}
