:root {
  --bg: #0A0E14;
  --panel: #121826;
  --border: #1F2937;
  --text: #E8EDF2;
  --muted: #8A95A5;
  --lime: #C6F135;
  --cyan: #2AB6D9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

header .brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

header .brand span { color: var(--lime); }

#bell-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}

#bell-btn.subscribed { border-color: var(--lime); color: var(--lime); }

main { max-width: 640px; margin: 0 auto; padding: 16px; }

.article-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--text);
}

.article-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  display: block;
}

.article-card h2 {
  margin: 0 0 8px 0;
  font-size: 17px;
  line-height: 1.35;
}

.article-card p {
  margin: 0 0 8px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.article-card time {
  color: var(--cyan);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-full h1 { font-size: 22px; line-height: 1.35; margin-bottom: 8px; }
.article-full time { color: var(--cyan); font-size: 12px; text-transform: uppercase; }
.article-full .content { margin-top: 20px; line-height: 1.7; font-size: 15px; }
.article-full .content img { max-width: 100%; border-radius: 8px; }
.article-full .content p { margin: 0 0 16px 0; }

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 14px;
}

.status-msg { color: var(--muted); padding: 40px 0; text-align: center; }

/* Install banner - custom prompt since browsers hide their own too well */
.install-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  max-width: 480px; margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--lime);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 40;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.install-banner.show { transform: translateY(0); opacity: 1; }
.install-banner-icon { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; }
.install-banner-text { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.install-banner-text strong { font-size: 14px; margin-bottom: 2px; }
.install-banner-text span { color: var(--muted); }
.install-banner-action {
  background: var(--lime);
  color: #0A0E14;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.install-banner-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}
