:root {
  --bg: #090b12;
  --bg-soft: #0f1320;
  --card: #141a2e;
  --accent: #7b6cff;
  --accent-soft: rgba(123,108,255,0.15);
  --text: #eef0ff;
  --muted: #a7adcc;
  --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% -10%, #14183a 0%, transparent 60%), var(--bg);
  color: var(--text);
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px;
}

.section-gap {
  margin-top: 36px;
}

/* ---------- Header ---------- */

.site-header {
  background: linear-gradient(180deg, rgba(20,26,46,0.9), rgba(20,26,46,0.4));
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 42px;
  height: 42px;
}

.brand-text h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.4px;
}

.tagline {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- Inputs ---------- */

input {
  width: 260px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
}

button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--accent), #5e52ff);
  color: white;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  filter: brightness(1.05);
}

/* ---------- Text ---------- */

h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.muted {
  color: var(--muted);
}

.meta {
  margin-top: 8px;
  font-size: 13px;
}

.empty-state {
  padding: 16px 0;
  font-style: italic;
}

/* ---------- Grid & Cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-soft);
}

/* ---------- Card Body ---------- */

.card-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.title {
  font-weight: 700;
  line-height: 1.25;
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.badge {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

/* ---------- Socials ---------- */

.socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.socialLink {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.socialLink:hover {
  background: var(--accent-soft);
}

.socialIcon {
  width: 18px;
  height: 18px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

.footer-inner {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.dot {
  opacity: 0.5;
}
