/* Spor Sözlük — sade, ekşi sözlük esintili tasarım */

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f4f2;
  color: #222;
  line-height: 1.5;
}
a { color: #6b3fa0; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: #2e1b47; color: #fff; }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 12px 16px; flex-wrap: wrap; }
.logo { color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -0.5px; }
.search-form { display: flex; flex: 1; min-width: 180px; max-width: 420px; }
.search-form input { flex: 1; padding: 6px 10px; border: none; border-radius: 3px 0 0 3px; }
.search-form button { padding: 6px 12px; border: none; background: #6b3fa0; color: #fff; border-radius: 0 3px 3px 0; cursor: pointer; }
.header-nav { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.header-nav a { color: #d9c9ee; }
.header-nav a:hover { color: #fff; }

/* Layout */
.main-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; padding: 24px 16px; align-items: start; }
@media (max-width: 800px) { .main-layout { grid-template-columns: 1fr; } }

.content { background: #fff; border: 1px solid #e3e0e8; border-radius: 6px; padding: 20px 24px; }
.content-narrow { max-width: 420px; }
h1 { font-size: 22px; margin: 0 0 12px; color: #2e1b47; }
h2 { font-size: 17px; margin: 24px 0 10px; color: #2e1b47; }
.intro { color: #555; margin-bottom: 18px; }
.muted { color: #888; }
.muted-small { color: #999; font-size: 12px; margin: -6px 0 8px; }
.hata { background: #fdeaea; color: #a12727; padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; }
.basari { background: #e9f7ef; color: #1e7e42; padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; }

/* Topic list */
.topic-list { list-style: none; padding: 0; margin: 0; }
.topic-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eee; }
.topic-list .say { color: #999; font-size: 13px; white-space: nowrap; margin-left: 10px; }

/* Entry list */
.entry-list { list-style: none; padding: 0; margin: 0; counter-reset: entry-counter; }
.entry { padding: 16px 0; border-bottom: 1px solid #eee; }
.entry-content { white-space: pre-wrap; word-wrap: break-word; margin-bottom: 8px; }
.entry-topic-link { font-size: 13px; font-weight: 600; color: #6b3fa0; }
.entry-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #888; }
.entry-meta .yazar { color: #6b3fa0; font-weight: 600; }
.vote { display: inline-flex; align-items: center; gap: 6px; }
.oy-btn { border: 1px solid #ddd; background: #fafafa; border-radius: 3px; cursor: pointer; padding: 2px 7px; font-size: 12px; }
.oy-btn:hover:not(:disabled) { background: #efe6f7; }
.oy-btn.active { background: #6b3fa0; color: #fff; border-color: #6b3fa0; }
.oy-btn:disabled { opacity: .4; cursor: not-allowed; }
.puan { min-width: 18px; text-align: center; font-weight: 600; }
.sil-form { margin-left: auto; }
.sil-form button { border: none; background: none; color: #a12727; cursor: pointer; font-size: 12px; }
.sil-form button:hover { text-decoration: underline; }

/* Forms */
.form-box, .entry-form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.form-box label { font-size: 13px; color: #555; margin-top: 6px; }
.form-box input, .form-box textarea,
.entry-form textarea {
  padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 14px;
}
.form-box button, .entry-form button {
  margin-top: 8px; padding: 9px 16px; background: #6b3fa0; color: #fff; border: none;
  border-radius: 4px; cursor: pointer; font-size: 14px; align-self: flex-start;
}
.form-box button:hover, .entry-form button:hover { background: #56317f; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 16px; align-items: center; margin: 18px 0; font-size: 13px; color: #666; }

/* Sidebar */
.sidebar-box { background: #fff; border: 1px solid #e3e0e8; border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; }
.sidebar-box h3 { margin: 0 0 8px; font-size: 14px; color: #2e1b47; text-transform: lowercase; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { padding: 4px 0; font-size: 13px; border-bottom: 1px dashed #eee; }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box .say { color: #999; font-size: 11px; }

/* Admin */
.admin-stats { display: flex; gap: 14px; margin-bottom: 18px; }
.stat-box { flex: 1; background: #f7f3fb; border-radius: 6px; padding: 14px; text-align: center; }
.stat-box strong { display: block; font-size: 22px; color: #2e1b47; }
.stat-box span { font-size: 12px; color: #888; }
.admin-nav { display: flex; gap: 16px; margin-bottom: 20px; font-size: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eee; }
.admin-table button { border: none; background: #eee; padding: 4px 8px; border-radius: 3px; cursor: pointer; font-size: 12px; margin-right: 4px; }
.admin-table button:hover { background: #ddd; }

/* Footer */
.site-footer { text-align: center; padding: 20px 0; color: #999; font-size: 12px; }
