/* Raporlar sayfası (raporlar.dc.html). site.css'in üstüne yüklenir; renkler
   ve yazı tipi oradakilerle aynı. Ayrı dosya, çünkü site.css tarayıcılarda
   saatlerce önbellekte kalabiliyor ve yeni sayfa eski kopyayla açılmamalı. */

.rp-main { padding-top: 84px; min-height: calc(100vh - 140px); background: #ffffff; }
.rp-wrap { max-width: 1200px; margin: 0 auto; padding-left: 56px; padding-right: 56px; }

.rp-preview-bar {
  background: #c2560a; color: #ffffff; text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; padding: 10px 16px;
}

/* ── Liste ── */
.rp-head { background: #f5f8fe; border-bottom: 1px solid #e2eaf6; padding: 72px 0 56px; }
.rp-list { padding-top: 56px; padding-bottom: 96px; }
.rp-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.rp-filter {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  border: 1px solid #cfdcee; background: #ffffff; color: #24364d;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.rp-filter:hover { border-color: #1a50a0; color: #1a50a0; }
.rp-filter:focus-visible { outline: 2px solid #1a50a0; outline-offset: 2px; }
.rp-filter.is-active { background: #1a50a0; border-color: #1a50a0; color: #ffffff; }
.rp-status { font-size: 16px; color: #6a7e90; padding: 24px 0; }
.rp-empty {
  text-align: center; padding: 64px 24px; border: 1px dashed #cfdcee; border-radius: 16px; background: #fafcff;
}
.rp-empty-mark { width: 40px; height: auto; opacity: 0.35; margin-bottom: 18px; }
.rp-empty-title { font-size: 20px; font-weight: 700; color: #0c1c33; margin-bottom: 8px; }
.rp-empty-text { font-size: 15px; color: #6a7e90; }

.rp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rp-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid #e2eaf6; border-radius: 14px; background: #ffffff;
  text-decoration: none; color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.rp-card:hover { border-color: #1a50a0; box-shadow: 0 14px 34px rgba(12,28,51,0.10); transform: translateY(-2px); }
.rp-card:focus-visible { outline: 2px solid #1a50a0; outline-offset: 3px; }
.rp-card-img {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; background: #eef3fb; overflow: hidden;
}
.rp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-card-img img.rp-card-mark { width: 64px; height: auto; opacity: 0.28; object-fit: contain; }
.rp-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.rp-meta { font-size: 12.5px; color: #6a7e90; letter-spacing: 0.02em; }
.rp-card-title { font-size: 19px; font-weight: 700; line-height: 1.3; color: #0c1c33; }
.rp-card-excerpt {
  font-size: 15px; line-height: 1.65; color: #5b6e82;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.rp-card-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: #1a50a0; }
.rp-card-more { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 600; color: #1a50a0; }

.rp-more { text-align: center; margin-top: 40px; }
.rp-btn {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 12px 26px; border-radius: 8px; border: 1px solid #1a50a0;
  background: transparent; color: #1a50a0; transition: background 0.2s, color 0.2s;
}
.rp-btn:hover { background: #1a50a0; color: #ffffff; }

/* ── Rapor ── */
.rp-article { max-width: 860px; padding-top: 48px; padding-bottom: 96px; }
.rp-back { display: inline-block; font-size: 14px; font-weight: 600; color: #1a50a0; text-decoration: none; margin-bottom: 32px; }
.rp-back:hover { text-decoration: underline; }
.rp-title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.15; color: #0c1c33; margin-bottom: 14px; text-wrap: balance; }
.rp-article .rp-meta { font-size: 14px; margin-bottom: 32px; }
.rp-author { font-weight: 600; color: #24364d; text-decoration: none; }
.rp-author:hover { color: #1a50a0; text-decoration: underline; }
.rp-head .rp-back { margin-bottom: 18px; }
.rp-cover { width: 100%; height: auto; display: block; border-radius: 14px; margin-bottom: 36px; background: #eef3fb; }
.rp-excerpt {
  font-size: 19px; line-height: 1.7; color: #24364d; font-weight: 500;
  border-left: 3px solid #1a50a0; padding-left: 20px; margin-bottom: 36px; white-space: pre-line;
}

.rp-rich { font-size: 17px; line-height: 1.8; color: #2c3e52; overflow-wrap: anywhere; }
.rp-rich p { margin: 0 0 1.1em; }
.rp-rich h2 { font-size: 26px; line-height: 1.3; color: #0c1c33; margin: 1.6em 0 0.6em; }
.rp-rich h3 { font-size: 21px; line-height: 1.35; color: #0c1c33; margin: 1.4em 0 0.5em; }
.rp-rich ul, .rp-rich ol { margin: 0 0 1.1em 1.4em; }
.rp-rich li { margin-bottom: 0.35em; }
.rp-rich a { color: #1a50a0; text-decoration: underline; text-underline-offset: 2px; }
.rp-rich img { max-width: 100%; height: auto; display: block; margin: 1.4em auto; border-radius: 10px; }
.rp-rich .rp-figure { display: block; margin: 1.4em 0 1.6em; }
.rp-rich .rp-figure img { margin: 0 auto; }
.rp-rich .rp-figcap { display: block; margin: 0.7em auto 0; max-width: 640px; font-size: 14px; line-height: 1.5; color: #5a6e87; text-align: center; text-wrap: balance; }
.rp-rich .rp-table { overflow-x: auto; margin: 1.4em 0 1.6em; }
.rp-rich table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.55; }
/* Panelde sürüklenerek verilen sütun genişlikleri (<col width>) editördeki gibi uygulansın. */
.rp-rich table:has(> colgroup) { table-layout: fixed; }
.rp-rich td, .rp-rich th { border: 1px solid #d5e0ef; padding: 9px 14px; vertical-align: top; overflow-wrap: break-word; min-width: 5em; text-align: left; }
.rp-rich th { font-weight: 600; background: #eef3fb; color: #0c1c33; }
.rp-rich td > p, .rp-rich th > p { margin: 0; }
.rp-rich td > p + p, .rp-rich th > p + p { margin-top: 0.5em; }
.rp-rich td ul, .rp-rich td ol, .rp-rich th ul, .rp-rich th ol { margin: 0 0 0 1.2em; }
.rp-rich tbody tr:nth-child(even) td:not([class]) { background: #f7f9fd; }
/* Panelde seçilen hücre rengi (admin.js > CELL_COLORS). */
.rp-rich :is(td, th).ql-cell-blue, .rp-rich :is(td, th).ql-cell-navy, .rp-rich :is(td, th).ql-cell-teal, .rp-rich :is(td, th).ql-cell-dgreen, .rp-rich :is(td, th).ql-cell-orange, .rp-rich :is(td, th).ql-cell-dred, .rp-rich :is(td, th).ql-cell-purple, .rp-rich :is(td, th).ql-cell-dgray { color: #fff; font-weight: 600; }
.rp-rich :is(td, th).ql-cell-blue a, .rp-rich :is(td, th).ql-cell-navy a, .rp-rich :is(td, th).ql-cell-teal a, .rp-rich :is(td, th).ql-cell-dgreen a, .rp-rich :is(td, th).ql-cell-orange a, .rp-rich :is(td, th).ql-cell-dred a, .rp-rich :is(td, th).ql-cell-purple a, .rp-rich :is(td, th).ql-cell-dgray a { color: #fff; }
.rp-rich :is(td, th).ql-cell-blue { background: #1a50a0; }
.rp-rich :is(td, th).ql-cell-navy { background: #0c1c33; }
.rp-rich :is(td, th).ql-cell-teal { background: #0f766e; }
.rp-rich :is(td, th).ql-cell-dgreen { background: #2e7d32; }
.rp-rich :is(td, th).ql-cell-orange { background: #c2410c; }
.rp-rich :is(td, th).ql-cell-dred { background: #b42318; }
.rp-rich :is(td, th).ql-cell-purple { background: #6b3fa0; }
.rp-rich :is(td, th).ql-cell-dgray { background: #4a5568; }
.rp-rich :is(td, th).ql-cell-light { background: #e3edfb; }
.rp-rich :is(td, th).ql-cell-lteal { background: #dcf3f0; }
.rp-rich :is(td, th).ql-cell-green { background: #e2f4e7; }
.rp-rich :is(td, th).ql-cell-yellow { background: #fdf3d3; }
.rp-rich :is(td, th).ql-cell-lorange { background: #fde8d7; }
.rp-rich :is(td, th).ql-cell-red { background: #fbe3e3; }
.rp-rich :is(td, th).ql-cell-lpurple { background: #efe6fa; }
.rp-rich :is(td, th).ql-cell-gray { background: #eef1f5; }
.rp-rich .ql-size-small { font-size: 0.85em; }
.rp-rich .ql-size-large { font-size: 1.3em; }
.rp-rich .ql-size-huge { font-size: 1.8em; }
.rp-rich .ql-align-center { text-align: center; }
.rp-rich .ql-align-right { text-align: right; }
.rp-rich .ql-align-justify { text-align: justify; }
/* Rapor başlığı ve özeti (panelde seçilen hiza). */
.rp-align-center { text-align: center; }
.rp-align-right { text-align: right; }
.rp-align-justify { text-align: justify; }

.rp-findings {
  margin: 40px 0; padding: 28px 32px; border-radius: 14px;
  background: #f5f8fe; border: 1px solid #e2eaf6;
}
.rp-findings h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #1a50a0; margin-bottom: 16px; }
.rp-findings ol { margin: 0 0 0 1.3em; padding: 0; }
.rp-findings li { margin-bottom: 0.6em; font-size: 16.5px; }
.rp-findings li > p:last-child { margin-bottom: 0; }
.rp-closing { border-top: 1px solid #e2eaf6; padding-top: 28px; margin-top: 8px; }

/* ── Koyu tema ── */
body.dark .rp-main { background: #0d1520; }
body.dark .rp-head { background: #111d2e; border-color: #1e2e42; }
body.dark .rp-card-cat { color: #7ab0e8; }
body.dark .rp-filter { background: #0d1520; border-color: #24364d; color: #c9d6e4; }
body.dark .rp-filter:hover { border-color: #7ab0e8; color: #7ab0e8; }
body.dark .rp-filter.is-active { background: #3a70c0; border-color: #3a70c0; color: #ffffff; }
body.dark .rp-card-excerpt, body.dark .rp-status, body.dark .rp-meta { color: #8fa3b8; }
body.dark .rp-author { color: #c9d6e4; }
body.dark .rp-author:hover { color: #7ab0e8; }
body.dark .rp-card { background: #111d2e; border-color: #1e2e42; }
body.dark .rp-card:hover { border-color: #7ab0e8; box-shadow: 0 14px 34px rgba(0,0,0,0.35); }
body.dark .rp-card-img, body.dark .rp-cover { background: #16243a; }
body.dark .rp-card-img img.rp-card-mark { filter: brightness(0) invert(1); opacity: 0.22; }
body.dark .rp-card-title, body.dark .rp-title, body.dark .rp-rich h2, body.dark .rp-rich h3 { color: #dde6f0; }
body.dark .rp-card-more, body.dark .rp-back, body.dark .rp-rich a, body.dark .rp-findings h2 { color: #7ab0e8; }
body.dark .rp-btn { border-color: #7ab0e8; color: #7ab0e8; }
body.dark .rp-btn:hover { background: #3a70c0; border-color: #3a70c0; color: #ffffff; }
body.dark .rp-excerpt { color: #c4d2e0; border-left-color: #7ab0e8; }
body.dark .rp-rich { color: #b8c7d6; }
body.dark .rp-rich td, body.dark .rp-rich th { border-color: #24364d; }
body.dark .rp-rich th { background: #16243a; color: #dde6f0; }
body.dark .rp-rich tbody tr:nth-child(even) td:not([class]) { background: #111d2e; }
body.dark .rp-rich :is(td, th).ql-cell-blue a, body.dark .rp-rich :is(td, th).ql-cell-navy a, body.dark .rp-rich :is(td, th).ql-cell-teal a, body.dark .rp-rich :is(td, th).ql-cell-dgreen a, body.dark .rp-rich :is(td, th).ql-cell-orange a, body.dark .rp-rich :is(td, th).ql-cell-dred a, body.dark .rp-rich :is(td, th).ql-cell-purple a, body.dark .rp-rich :is(td, th).ql-cell-dgray a { color: #fff; }
body.dark .rp-rich :is(td, th).ql-cell-blue { background: #2c5fa8; }
body.dark .rp-rich :is(td, th).ql-cell-navy { background: #1e3a5f; }
body.dark .rp-rich :is(td, th).ql-cell-teal { background: #0f766e; }
body.dark .rp-rich :is(td, th).ql-cell-dgreen { background: #2e7d32; }
body.dark .rp-rich :is(td, th).ql-cell-orange { background: #c2410c; }
body.dark .rp-rich :is(td, th).ql-cell-dred { background: #b42318; }
body.dark .rp-rich :is(td, th).ql-cell-purple { background: #7048a8; }
body.dark .rp-rich :is(td, th).ql-cell-dgray { background: #4a5568; }
body.dark .rp-rich :is(td, th).ql-cell-light { background: #16304f; }
body.dark .rp-rich :is(td, th).ql-cell-lteal { background: #123a37; }
body.dark .rp-rich :is(td, th).ql-cell-green { background: #15342a; }
body.dark .rp-rich :is(td, th).ql-cell-yellow { background: #3a3218; }
body.dark .rp-rich :is(td, th).ql-cell-lorange { background: #3f2a18; }
body.dark .rp-rich :is(td, th).ql-cell-red { background: #3f1d22; }
body.dark .rp-rich :is(td, th).ql-cell-lpurple { background: #2e2242; }
body.dark .rp-rich :is(td, th).ql-cell-gray { background: #1c2738; }
body.dark .rp-findings { background: #111d2e; border-color: #1e2e42; }
body.dark .rp-closing { border-top-color: #1e2e42; }
body.dark .rp-empty { background: #111d2e; border-color: #1e2e42; }
body.dark .rp-empty-mark { filter: brightness(0) invert(1); opacity: 0.25; }
body.dark .rp-empty-title { color: #dde6f0; }
body.dark .rp-empty-text { color: #8fa3b8; }

/* ── Dar ekran ── */
@media (max-width: 1024px) {
  .rp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .rp-wrap { padding-left: 20px; padding-right: 20px; }
  .rp-head { padding: 48px 0 40px; }
  .rp-list { padding-top: 36px; }
  .rp-filters { gap: 8px; margin-top: 22px; }
  .rp-filter { padding: 8px 14px; font-size: 13.5px; }
  .rp-grid { grid-template-columns: 1fr; gap: 20px; }
  .rp-article { padding-top: 32px; }
  .rp-rich { font-size: 16px; }
  .rp-excerpt { font-size: 17px; }
  .rp-findings { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-card { transition: none; }
  .rp-card:hover { transform: none; }
}
body.dark .rp-rich .rp-figcap { color: #8fa3b8; }
