/* Pokemon Arena News Post (admin) - page-specific styles (uses pp-* tokens from
   pokemon-portal.css). The .news-post-entry/-entry-row/-entry-title/-entry-meta
   /-delete class names are generated by scripts/index.js (renderAdminNewsPosts)
   -- not ours to rename, just to style. */

.news-admin-layout {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .news-admin-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.pp-newspost-field {
  display: block;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pp-ink-faint);
}

.news-admin-form textarea.pp-field {
  min-height: 110px;
  resize: vertical;
  font-family: var(--pp-font-mono);
  font-size: 12.5px;
  line-height: 1.5;
}

.news-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.news-arena-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.news-arena-switch-btn.active {
  border-color: var(--pp-accent);
  background: var(--pp-accent-soft);
  color: var(--pp-ink);
}

/* Saved posts list -------------------------------------------------------- */

.news-post-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.news-post-entry {
  padding: 10px 12px;
  border: 1px solid var(--pp-line);
  border-radius: 10px;
  background: var(--pp-bg-panel);
}

.news-post-entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.news-post-entry-title {
  font-family: var(--pp-font-display);
  font-size: 13.5px;
  color: var(--pp-ink);
  cursor: pointer;
}

.news-post-entry-title:hover {
  color: var(--pp-accent-bright);
}

.news-post-delete {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--pp-line-strong);
  border-radius: var(--pp-radius);
  background: var(--pp-bg);
  color: var(--pp-accent-bright);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.news-post-delete:hover {
  border-color: var(--pp-accent-bright);
}

.news-post-entry-meta {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--pp-ink-faint);
}
