:root {
  --bg: #0b0f1a;
  --card: #12172a;
  --card-soft: #161c33;
  --border: rgba(255,255,255,.08);
  --text: #e9ecff;
  --muted: #a7b0ff;
  --accent: #5b7cfa;
  --accent-2: #7cfac7;
}

/* Reset */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(1200px 600px at top, #131a3a, var(--bg));
  color: var(--text);
}

/* Header */
.header {
  background: linear-gradient(135deg, #1b2458, #10152c);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 980px;
  margin: auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.nav-btn {
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
}

/* Layout */
.container {
  max-width: 980px;
  margin: auto;
  padding: 16px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a2358, #141a38);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid var(--border);
}

.hero h1 {
  margin: 0;
  font-size: 22px;
}

.hero p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

/* Search */
.searchbar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.searchbar input {
  flex: 1;
  background: #0e1330;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  font-size: 15px;
}

.searchbar button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  border: none;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 800;
}

/* Grid */
.list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

/* Card */
.card {
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  border-radius: 22px;
  padding: 16px;
  border: 1px solid var(--border);
}

.card a {
  color: inherit;
  text-decoration: none;
}

/* Card Header */
.title-row {
  display: flex;
  gap: 12px;
}

.mini-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  background: #000;
}

.mini-fallback {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2a3470, #1a2044);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* Text */
.post-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.post-excerpt {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

/* Meta */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: #fff;
}

.badge a {
  color: #fff;
  text-decoration: underline;
}

/* CTA */
.cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 800;
}

/* Footer */
.footer {
  margin-top: 28px;
  text-align: center;
  opacity: .7;
  font-size: 14px;
}