/* Siyah Sayfa — koyu siyah + derin kırmızı */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --surface: #181818;
  --border: #2a1518;
  --text: #e8e4e2;
  --muted: #9a9290;
  --accent: #8b1538;
  --accent-bright: #c41e3a;
  --accent-dim: #5c0f26;
  --focus: #ff6b6b;
  --radius: 10px;
  --font: "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  /* Gothic arka plan görseli + koyu örtü (metin okunurluğu) */
  background-color: #050508;
  background-image:
    linear-gradient(
      165deg,
      rgba(5, 5, 12, 0.88) 0%,
      rgba(10, 6, 18, 0.78) 35%,
      rgba(5, 5, 14, 0.85) 100%
    ),
    radial-gradient(ellipse 90% 60% at 85% 45%, rgba(45, 0, 77, 0.15), transparent 55%),
    url("images/arkaplan.png");
  background-size: cover, cover, cover;
  background-position: center, center, center right;
  background-repeat: no-repeat;
  background-attachment: fixed, fixed, fixed;
}

@media (max-width: 900px) {
  body {
    /* Mobil Safari vb. fixed arka plan sorunları */
    background-attachment: scroll, scroll, scroll;
    background-position: center, center, 70% center;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover .logo__wordmark {
  color: #fff;
}

.logo__mark {
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 8px rgba(196, 30, 58, 0.22));
}

.logo__wordmark {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: 0.08em;
  color: var(--text);
  border-bottom: 2px solid var(--accent-bright);
  padding-bottom: 3px;
  line-height: 1.2;
  transition: color 0.15s ease;
}

.logo--admin .logo__wordmark {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.logo--admin .logo__mark {
  width: 28px;
  height: 28px;
}

.admin-brand-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent-bright);
}

.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.site-footer {
  margin: 0 auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 720px;
  background: linear-gradient(0deg, rgba(5, 5, 10, 0.72), rgba(5, 5, 10, 0.35));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer--has-player {
  max-width: 920px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.site-footer__copy {
  margin: 0;
  flex-shrink: 0;
}

.footer-player {
  flex: 1 1 260px;
  max-width: min(100%, 440px);
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(196, 30, 58, 0.12) inset,
    0 8px 28px rgba(0, 0, 0, 0.35);
}

.footer-player__chrome {
  padding: 0.85rem 1rem 0.75rem;
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--surface) 100%);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.footer-player__playlist-wrap {
  padding: 0.55rem 0.5rem 0.65rem;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.95), rgba(8, 8, 8, 0.98));
  border-top: 1px solid rgba(196, 30, 58, 0.2);
}

.footer-player__plist-head {
  margin: 0 0 0.45rem 0.35rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-player__playlist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 11rem;
  overflow-y: auto;
  scrollbar-color: var(--accent-dim) var(--bg);
  scrollbar-width: thin;
}

.footer-player__pl-item {
  margin: 0;
}

.footer-player__pl-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.42rem 0.45rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  line-height: 1.35;
  transition: background 0.12s ease, color 0.12s ease;
}

.footer-player__pl-btn:hover {
  background: rgba(196, 30, 58, 0.12);
  color: #fff;
}

.footer-player__pl-btn.is-active {
  background: rgba(196, 30, 58, 0.18);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent-bright);
}

.footer-player__pl-btn:focus-visible {
  outline: 1px solid var(--accent-bright);
  outline-offset: 1px;
}

.footer-player__pl-num {
  flex-shrink: 0;
  width: 1.35rem;
  text-align: right;
  font-size: 0.65rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.footer-player__pl-btn.is-active .footer-player__pl-num {
  color: var(--accent-bright);
  font-weight: 700;
}

.footer-player__pl-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-player__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.footer-player__label {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
}

.footer-player__index {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.footer-player__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.footer-player__btn {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-player__btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent-bright);
}

.footer-player__btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.footer-player__btn--skip {
  font-size: 1.35rem;
  font-weight: 300;
  padding-bottom: 2px;
}

.footer-player__btn--play {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  border-color: var(--accent-dim);
  background: linear-gradient(165deg, rgba(196, 30, 58, 0.25), rgba(24, 24, 24, 0.95));
  color: #fff;
  font-size: 0.95rem;
}

.footer-player__btn--play:hover {
  border-color: var(--accent-bright);
  color: #fff;
  filter: brightness(1.08);
}

.footer-player__track {
  flex: 1;
  min-width: 0;
  padding-left: 0.35rem;
}

.footer-player__title {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.footer-player__volbox {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.footer-player__vol-icon {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
}

.footer-player__vol {
  width: 4.25rem;
  height: 0.35rem;
  accent-color: var(--accent-bright);
  cursor: pointer;
}

.footer-player__seek-wrap {
  margin-top: 0.55rem;
}

.footer-player__seek {
  width: 100%;
  height: 0.28rem;
  accent-color: var(--accent-bright);
  cursor: pointer;
}

.footer-player__seek:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.footer-player--single .footer-player__btn--skip {
  display: none;
}

@media (max-width: 540px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-player {
    max-width: none;
  }

  .footer-player__controls {
    flex-wrap: wrap;
  }

  .footer-player__track {
    flex-basis: 100%;
    order: 10;
    padding-left: 0;
    padding-top: 0.35rem;
  }
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  margin-bottom: 1.75rem;
}

.post-card {
  display: block;
  padding: 1.25rem 1.35rem;
  background: rgba(18, 18, 24, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px rgba(196, 30, 58, 0.15);
}

.post-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: #fff;
}

.post-card time {
  font-size: 0.8rem;
  color: var(--muted);
}

.post-card-meta {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.post-card-meta time {
  font-size: inherit;
  color: inherit;
}

.post-card-cat {
  color: var(--muted);
}

.post-card p.excerpt {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  color: #fff;
}

.article-header time {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-meta time {
  color: inherit;
}

.article-meta-sep {
  opacity: 0.7;
}

.article-category {
  color: var(--muted);
}

.article-body {
  font-size: 1.05rem;
}

.article-body p {
  margin: 0 0 1.25rem;
}

.article-figure {
  margin: 0 0 2rem;
  text-align: center;
}

.article-figure img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.article-body--poem {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  line-height: 1.85;
}

.article-body--poem p {
  margin-left: auto;
  margin-right: auto;
  max-width: 42em;
}

.kan-damlat-heading {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  text-shadow: 0 0 24px rgba(196, 30, 58, 0.35);
}

.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comments-section h2 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--accent-bright);
}

.comment-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.comment-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.comment-list li:last-child {
  border-bottom: none;
}

.comment-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.comment-meta strong {
  color: var(--text);
}

.form-card label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-card input[type="text"],
.form-card input[type="password"],
.form-card input[type="email"],
.form-card textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-card textarea {
  min-height: 120px;
  resize: vertical;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-card button,
.btn {
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(165deg, var(--accent-bright), var(--accent));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

.form-card button:hover,
.btn:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flash {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.flash.ok {
  background: rgba(34, 139, 34, 0.2);
  border: 1px solid rgba(50, 205, 50, 0.35);
  color: #c8f0c8;
}

.flash.err {
  background: rgba(139, 21, 56, 0.35);
  border: 1px solid var(--accent-bright);
  color: #ffc9d4;
}

.notice {
  color: var(--muted);
}

.err {
  color: #ffb4c0;
}

.ok {
  color: #90ee90;
}

.install-page .shell,
.admin-wrap {
  max-width: 520px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  margin: 0;
  font-size: 1.35rem;
}

.admin-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-nav a:hover {
  color: var(--accent-bright);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
}

.admin-table a {
  color: var(--accent-bright);
}

.admin-table-check {
  width: 2.25rem;
  text-align: center;
  vertical-align: middle;
}

.posts-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffd666;
}

.badge-approved {
  background: rgba(50, 205, 50, 0.15);
  color: #90ee90;
}

.badge-rejected {
  background: rgba(128, 128, 128, 0.25);
  color: #bbb;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.admin-actions form {
  display: inline;
}

.empty-state {
  color: var(--muted);
  padding: 2rem 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

@media (max-width: 520px) {
  .admin-table {
    display: block;
    overflow-x: auto;
  }
}

/* Admin istatistikler */
.admin-stats-intro {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
  max-width: 42rem;
}

.admin-stats-period {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent-bright);
}

.admin-stat-card__value {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.admin-stat-card__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--text);
}

.admin-stat-card__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.admin-stats-h2 {
  font-size: 1.05rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent-bright);
  font-weight: 600;
}

.admin-stats-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  max-width: 100%;
}

.admin-stats-bar-row {
  display: grid;
  grid-template-columns: 3rem 1fr 2.5rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.admin-stats-bar-date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.admin-stats-bar-track {
  height: 0.45rem;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}

.admin-stats-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-bright));
  border-radius: 4px;
  min-width: 2px;
}

.admin-stats-bar-num {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.admin-stats-split {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 28rem;
}

.admin-stats-split li {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.admin-stats-split__label {
  color: var(--muted);
}

.admin-stats-split__bar-wrap {
  height: 0.4rem;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}

.admin-stats-split__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-bright));
  border-radius: 4px;
  min-width: 2px;
}

.admin-stats-split__pct {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

