@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --cream: #F4F0E9;
  --cream-deep: #E7E0D2;
  --surface: #ffffff;
  --ink: #17140F;
  --ink-soft: #6B6355;
  --gold: #BDAD7B;
  --gold-deep: #86713C;
  --border: #E3DDD0;
  --good: #3F6B42;
  --bad: #A5433A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px 60px; }

/* ---- Hero (közös a weboldallal) ---- */
.hero {
  position: relative;
  height: 260px;
  background: #000 center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  color: #fff;
  margin-bottom: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,20,15,.15), rgba(23,20,15,.82));
}
.hero-inner { position: relative; z-index: 1; padding: 28px 20px; max-width: 980px; margin: 0 auto; width: 100%; }
.hero-nav { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 60px; opacity: .9; }
.hero-nav a { text-decoration: none; }
.hero h1 { font-size: 30px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.hero p { margin: 0; opacity: .85; font-size: 14px; }

/* ---- Szakaszcím ---- */
.section-title {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.section-title h2 { font-size: 22px; font-weight: 700; margin: 0; }
.section-title .count { font-size: 13px; color: var(--ink-soft); font-weight: 500; }

/* ---- Szűrő sáv ---- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 24px;
}
.filters .field { display: flex; flex-direction: column; gap: 4px; }
.filters label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 600; }
.filters select, .filters input[type=text], .filters input[type=email], .filters input[type=password] {
  font-family: inherit; font-size: 13px; padding: 8px 10px; border-radius: 7px;
  border: 1px solid var(--border); background: #fff; color: var(--ink); min-width: 150px;
}
.btn {
  font-family: inherit; font-weight: 600; font-size: 13px; letter-spacing: .02em;
  padding: 9px 16px; border-radius: 7px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.good { background: transparent; color: var(--good); border-color: var(--good); }
.btn:hover { opacity: .85; }

/* ---- Publikus lista (nemzetisport-stílus) ---- */
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-row {
  display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.article-row:hover .article-title { color: var(--gold-deep); }
.article-thumb {
  width: 120px; height: 80px; flex-shrink: 0; border-radius: 8px; object-fit: cover;
  background: var(--cream-deep);
}
.article-thumb-fallback {
  width: 120px; height: 80px; flex-shrink: 0; border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), #2b2519);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 26px;
}
.article-body { flex: 1; min-width: 0; }
.article-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; font-weight: 600; letter-spacing: .01em; }
.article-meta .src { color: var(--gold-deep); }
.article-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.article-excerpt { font-size: 14px; color: var(--ink-soft); margin: 0; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* ---- Admin curation ---- */
.kw-group { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 18px; overflow: hidden; }
.kw-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--cream-deep); font-weight: 700; font-size: 14px; }
.kw-head .badge { background: var(--gold); color: var(--ink); border-radius: 20px; padding: 2px 9px; font-size: 12px; margin-left: 8px; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.admin-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); padding: 8px 14px; border-bottom: 1px solid var(--border); }
table.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.admin-table tr.is-read { opacity: .55; }
.new-pill { background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions button { border: 1px solid var(--border); background: #fff; border-radius: 6px; width: 30px; height: 30px; cursor: pointer; font-size: 14px; }
.row-actions button.ok { color: var(--good); border-color: var(--good); }
.row-actions button.no { color: var(--bad); border-color: var(--bad); }

.login-box { max-width: 360px; margin: 90px auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 30px; }
.login-box h1 { font-size: 20px; margin: 0 0 6px; }
.login-box p.sub { color: var(--ink-soft); font-size: 13px; margin: 0 0 20px; }
.login-box .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.login-box label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.login-box input { font-family: inherit; padding: 10px 12px; border-radius: 7px; border: 1px solid var(--border); font-size: 14px; }
.login-box .btn { width: 100%; justify-content: center; margin-top: 6px; }
.error-msg { background: #FBEAE8; color: var(--bad); border: 1px solid #F0C6C1; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

.top-admin-bar { background: var(--ink); color: #fff; font-size: 13px; }
.top-admin-bar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; max-width: 980px; }
.top-admin-bar a { color: #fff; text-decoration: none; opacity: .85; }
.top-admin-bar a:hover { opacity: 1; }
