*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050608;
  --bg-elevated: #05070a;
  --card: #111318;
  --card-soft: #171923;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.18);
  --accent-strong: rgba(79, 70, 229, 0.9);
  --accent-pill-bg: #111827;
  --accent-pill-active: #1d2140;
  --accent-pill-glow: rgba(79, 70, 229, 0.8);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-soft: 0 28px 80px rgba(0, 0, 0, 0.85);
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  overflow-x: hidden;
  animation: bodyFade 0.35s ease-out;
}

@keyframes bodyFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app {
  position: relative;
  width: 100%;
  max-width: 1120px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-lg);
  padding: 18px 18px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30, 64, 175, 0.62);
}

@media (min-width: 768px) {
  .app {
    padding: 20px 24px 22px;
  }
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-logo {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, #f9fafb, #4b5563);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #020617;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

.topbar-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.topbar-right {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.topbar-made strong {
  color: var(--text-main);
  font-weight: 600;
}

.topbar-username {
  color: var(--accent);
  font-weight: 600;
}

/* Hero */
.hero {
  text-align: center;
  padding: 24px 8px 20px;
}

.hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 20%, #f9fafb, #4f46e5 40%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
}

.hero-text h1 {
  font-size: 2.1rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.hero-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.hero-search {
  margin-top: 20px;
}

.search-wrapper {
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(145deg, #020617, #050816);
  border-radius: 999px;
  padding: 2px;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 18px 40px rgba(0, 0, 0, 0.9);
}

.search-wrapper:focus-within {
  box-shadow:
    0 0 0 1px rgba(79, 70, 229, 0.8),
    0 20px 45px rgba(15, 23, 42, 0.98);
}

.search-wrapper-inner {
  display: flex;
  align-items: center;
}

.search-icon {
  padding-left: 16px;
  padding-right: 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-search input {
  width: 100%;
  padding: 10px 16px 10px 4px;
  border-radius: 999px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.9rem;
}

.hero-search input::placeholder {
  color: var(--text-soft);
}

/* Pills */
.hero-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pill {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: var(--accent-pill-bg);
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 7px 18px;
  cursor: pointer;
  position: relative;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.08s ease,
    color 0.16s ease;
}

.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(148, 163, 253, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.pill-active {
  background: var(--accent-pill-active);
  color: #e5e7eb;
  box-shadow: 0 18px 40px var(--accent-pill-glow);
}

.pill-active::before {
  opacity: 1;
}

.pill:hover {
  transform: translateY(-1px);
}

/* Main */
.main {
  margin-top: 10px;
  padding: 0 2px 4px;
}

.issues-header h2 {
  font-size: 1.1rem;
}

.issues-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.issues {
  margin-top: 4px;
}

.issues-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .issues-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Cards */
.issue-card {
  background: radial-gradient(circle at top left, var(--card), var(--card-soft));
  border-radius: 22px;
  padding: 12px 14px 10px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    box-shadow 0.18s ease,
    transform 0.1s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.issue-card:hover {
  transform: translateY(-1.5px);
  border-color: rgba(148, 163, 253, 0.8);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.95);
}

.issue-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.issue-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.issue-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.issue-tag.xeno {
  border-color: rgba(129, 140, 248, 0.9);
}

.issue-tag.website {
  border-color: rgba(52, 211, 153, 0.9);
}

.issue-tag.other {
  border-color: rgba(249, 115, 22, 0.9);
}

.issue-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.issue-summary {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.issue-toggle {
  font-size: 1.2rem;
  color: var(--text-soft);
  transition: transform 0.2s ease, color 0.16s ease;
}

.issue-card.open .issue-toggle {
  transform: rotate(90deg);
  color: var(--accent-strong);
}

.issue-body {
  font-size: 0.83rem;
  color: var(--text-main);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.issue-body-inner {
  padding-top: 8px;
}

.issue-body ol {
  padding-left: 18px;
}

.issue-body li {
  margin-bottom: 3px;
}

.issue-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Footer */
.footer {
  margin-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer span {
  color: var(--text-main);
  font-weight: 600;
}

.footer-username {
  color: var(--accent);
  margin-left: 3px;
  font-weight: 600;
}

.no-results {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hidden {
  display: none;
}


/* Full black background */
body {
  background: #000000 !important;
}

/* Topbar positioning fix */
.topbar {
  position: relative;
  margin-top: 8px;
}

/* Make username bigger and glossy */
.topbar-username, .footer-username {
  font-size: 1rem;
  font-weight: 800;
  color: #7dd3fc;
  text-shadow: 0 0 6px rgba(125, 211, 252, 0.8);
}

/* Ensure Memory text matches glossy look */
.topbar-made strong, .footer span {
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
}


body {
  background: #000 !important;
}

.topbar-username, .footer-username {
  display: none;
}
