/* design system — a sebr.hu brand alapján (ink/coral/paper, Bricolage Grotesque + Inter, pirula gombok, 28px lekerekítés) */
:root {
  --ink: #0e0c0c;
  --white: #fff;
  --coral: #f93457;
  --coral-light: #fa637e;
  --coral-deep: #cf2d4a;
  --paper: #f6f3f2;
  --line: rgba(255, 255, 255, 0.12);
  --line-d: rgba(14, 12, 12, 0.12);
  --success: #3ddc84;
  --danger: #ff6b6b;
  --r: 28px;
  --font-h: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  position: relative;
  margin: 0;
  background:
    radial-gradient(ellipse 120% 55% at 50% -8%, rgba(249, 52, 87, 0.3), transparent 60%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(207, 45, 74, 0.2), transparent 55%),
    var(--ink);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-b);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-block: 2.5rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 {
  font-family: var(--font-h);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 0 auto;
  flex: 1;
}

.eyebrow {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-light);
  margin-bottom: 0.6rem;
}

h1 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.4rem;
  text-wrap: balance;
}

.subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.card {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  padding: 1.9rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65);
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(14, 12, 12, 0.65);
  margin: 1.1rem 0 0.4rem;
}

label:first-of-type { margin-top: 0; }

input[type="text"],
input[type="password"] {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line-d);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--font-b);
  transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--coral);
}

.hint {
  font-size: 0.78rem;
  color: rgba(14, 12, 12, 0.5);
  margin-top: 0.35rem;
}

button {
  font-family: var(--font-b);
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  margin-top: 1.7rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem;
  border: 0;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover { background: var(--coral); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.msg {
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  font-size: 0.88rem;
  display: none;
  font-weight: 500;
}

.msg.show { display: block; }
.msg.success { background: rgba(61, 220, 132, 0.12); color: #1c8a52; border: 1px solid rgba(61, 220, 132, 0.4); }
.msg.error { background: rgba(255, 107, 107, 0.12); color: var(--coral-deep); border: 1px solid rgba(255, 107, 107, 0.4); }

.admin-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-decoration: none;
}
.admin-link:hover { color: var(--coral-light); }

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

/* credit footer — "made by sebr", tartózkodó, csak a lap alján */
.credit {
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.76rem;
}
.credit:hover { color: rgba(255, 255, 255, 0.55); }
.credit img { width: 13px; height: 13px; opacity: 0.8; }

/* Admin board */
.admin-wrap { width: min(920px, 100%); }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.admin-header h1 { text-align: left; margin: 0; }
.admin-header .eyebrow { text-align: left; margin-bottom: 0.3rem; }

.header-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.pill-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.75);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pill-btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.1rem;
}

.status-line {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 0.5rem;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  user-select: none;
}
.filter-toggle input { accent-color: var(--coral); width: 16px; height: 16px; }

.list { display: flex; flex-direction: column; gap: 0.85rem; }

.entry {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  animation: fadeIn 0.3s ease;
  transition: opacity 0.2s, transform 0.2s;
}

.entry:hover { transform: translateY(-2px); }
.entry.is-reviewed { opacity: 0.55; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.entry-index {
  font-family: var(--font-h);
  color: var(--coral-deep);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 2rem;
}

.entry-main { flex: 1; min-width: 220px; }

.entry-tiktok {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.05rem;
}

.entry-uid {
  color: rgba(14, 12, 12, 0.6);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.entry-characters {
  color: var(--coral-deep);
  font-weight: 600;
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.entry-time {
  color: rgba(14, 12, 12, 0.45);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.entry-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.stars { display: flex; gap: 0.15rem; }

.star {
  background: none;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(14, 12, 12, 0.2);
  padding: 0.1rem;
}

.star.filled { color: var(--coral); }
.star:hover { color: var(--coral); }

.review-btn {
  background: transparent;
  border: 1px solid var(--line-d);
  color: rgba(14, 12, 12, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.review-btn:hover { border-color: var(--ink); color: var(--ink); }
.review-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.empty-state {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  padding: 3rem 1rem;
}
