/* ================================
   NeoBubble™ Feed Styles
   ================================ */

:root {
  --bg: #05060c;
  --panel: rgba(12, 18, 32, 0.92);
  --panel-soft: rgba(20, 28, 48, 0.78);
  --panel-hot: rgba(48, 12, 38, 0.82);

  --text: #e9f7ff;
  --muted: #91a8bb;
  --dim: #5f7286;

  --cyan: #46f5ff;
  --blue: #5f8cff;
  --pink: #ff4fd8;
  --purple: #a86bff;
  --red: #ff3b5f;
  --yellow: #ffd166;
  --green: #61ff9b;

  --border: rgba(70, 245, 255, 0.24);
  --border-hot: rgba(255, 79, 216, 0.38);
  --shadow-cyan: 0 0 24px rgba(70, 245, 255, 0.18);
  --shadow-pink: 0 0 24px rgba(255, 79, 216, 0.2);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top left, rgba(70, 245, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 15%, rgba(255, 79, 216, 0.12), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(95, 140, 255, 0.12), transparent 28rem),
    linear-gradient(135deg, #05060c 0%, #090b18 45%, #03040a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
  z-index: 0;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.22;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: screen;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(5, 6, 12, 0.96), rgba(11, 16, 30, 0.92)),
    rgba(5, 6, 12, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-cyan);
}

.logo h1 {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow:
    0 0 12px rgba(70, 245, 255, 0.68),
    0 0 34px rgba(70, 245, 255, 0.32);
}

.logo p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statusbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.statusbar span,
.statusbar time {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(145, 168, 187, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.warning-text {
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.45);
}

.feed {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  margin: 2rem auto 5rem;
  display: grid;
  gap: 1rem;
}

.bubblebeam-panel {
  padding: 1rem;
  border: 1px solid var(--border-hot);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.12), rgba(70, 245, 255, 0.06)),
    var(--panel);
  box-shadow: var(--shadow-pink);
}

.beam-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.beam-header h2 {
  margin: 0;
  color: var(--pink);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: -0.04em;
  text-shadow: 0 0 18px rgba(255, 79, 216, 0.5);
}

.beam-header p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.beam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.beam-card {
  overflow: hidden;
  border: 1px solid rgba(70, 245, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.28);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.beam-card:hover,
.beam-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 79, 216, 0.65);
  box-shadow: 0 0 28px rgba(255, 79, 216, 0.16);
}

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

.image-container {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b1020;
}

.image-container img,
.image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-container img {
  filter: saturate(1.25) contrast(1.08);
  transition: transform 220ms ease;
}

.beam-card:hover .image-container img,
.beam-card:focus-within .image-container img {
  transform: scale(1.045);
}

.live-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: #021015;
  background: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(70, 245, 255, 0.55);
}

.live-tag.red {
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 16px rgba(255, 59, 95, 0.55);
}

.beam-info {
  padding: 0.9rem;
}

.beam-info h3 {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.beam-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.beam-meta {
  margin-top: 0.75rem;
}

.view-count {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.post {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(70, 245, 255, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel-soft);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.post::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  opacity: 0.72;
}

.post p {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
}

.user-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.name {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge,
.sponsored,
.status-indicator,
.bulletin-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge {
  color: #021015;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(70, 245, 255, 0.38);
}

.badge.pink {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 0 14px rgba(255, 79, 216, 0.42);
}

.sponsored {
  color: #161000;
  background: var(--yellow);
}

.tags {
  color: var(--pink);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.95rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.meta time {
  color: var(--dim);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.boost-btn,
.cta-btn,
.action-link {
  border: 1px solid rgba(70, 245, 255, 0.32);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(70, 245, 255, 0.07);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 150ms ease,
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.boost-btn {
  padding: 0.45rem 0.7rem;
}

.cta-btn {
  margin-top: 1rem;
  padding: 0.72rem 1rem;
  color: #021015;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(70, 245, 255, 0.34);
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.52rem 0.75rem;
  text-decoration: none;
}

.boost-btn:hover,
.boost-btn:focus-visible,
.action-link:hover,
.action-link:focus-visible {
  color: #021015;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(70, 245, 255, 0.38);
  transform: translateY(-1px);
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 79, 216, 0.45);
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 209, 102, 0.9);
  outline-offset: 3px;
}

.post.verified {
  border-color: rgba(70, 245, 255, 0.34);
}

.post.verified::before {
  background: linear-gradient(to bottom, var(--cyan), var(--blue));
}

.post.ad {
  border-color: rgba(255, 209, 102, 0.36);
  background:
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.12), transparent 18rem),
    var(--panel);
}

.post.ad::before {
  background: linear-gradient(to bottom, var(--yellow), transparent);
}

.post.ad h2 {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(1.2rem, 4vw, 2rem);
  letter-spacing: -0.05em;
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.35);
}

.post.warning {
  border-color: rgba(255, 59, 95, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 59, 95, 0.12), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.post.warning::before {
  background: linear-gradient(to bottom, var(--red), var(--yellow));
}

.post.warning .name,
.post.warning strong {
  color: var(--red);
  text-shadow: 0 0 14px rgba(255, 59, 95, 0.35);
}

.bulletin-label {
  color: #fff;
  background: var(--red);
}

.post.deleted {
  border-style: dashed;
  border-color: rgba(145, 168, 187, 0.32);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 8px,
      rgba(0, 0, 0, 0.08) 8px,
      rgba(0, 0, 0, 0.08) 16px
    ),
    rgba(10, 12, 20, 0.72);
}

.post.deleted::before {
  background: linear-gradient(to bottom, var(--dim), transparent);
}

.post.deleted p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.post.conspiracy {
  border-color: rgba(97, 255, 155, 0.28);
  background:
    radial-gradient(circle at top left, rgba(97, 255, 155, 0.09), transparent 16rem),
    var(--panel-soft);
}

.post.conspiracy::before {
  background: linear-gradient(to bottom, var(--green), transparent);
}

.post.conspiracy .name {
  color: var(--green);
}

.indicator-dot {
  display: inline-block;
  margin-right: 0.15rem;
  filter: drop-shadow(0 0 8px rgba(255, 59, 95, 0.7));
}

.status-indicator {
  color: #021015;
  background: var(--green);
}

.image-wrapper {
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid rgba(255, 79, 216, 0.28);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
  background: #0b1020;
  box-shadow: 0 0 20px rgba(255, 79, 216, 0.12);
}

.image-wrapper img {
  filter: saturate(1.2) contrast(1.04);
}

@media (prefers-reduced-motion: no-preference) {
  .logo h1 {
    animation: bubble-glow 4s ease-in-out infinite alternate;
  }

  .post {
    animation: feed-rise 360ms ease both;
  }

  .post:nth-of-type(odd) {
    animation-delay: 30ms;
  }

  .post:nth-of-type(even) {
    animation-delay: 70ms;
  }
}

@keyframes bubble-glow {
  from {
    text-shadow:
      0 0 10px rgba(70, 245, 255, 0.5),
      0 0 24px rgba(70, 245, 255, 0.18);
  }

  to {
    text-shadow:
      0 0 16px rgba(70, 245, 255, 0.82),
      0 0 38px rgba(255, 79, 216, 0.24);
  }
}

@keyframes feed-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .statusbar {
    justify-content: flex-start;
  }

  .beam-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .beam-grid {
    grid-template-columns: 1fr;
  }

  .feed {
    width: min(100% - 1rem, 920px);
    margin-top: 1rem;
  }

  .post,
  .bubblebeam-panel {
    border-radius: var(--radius-md);
  }
}

@media (max-width: 460px) {
  .topbar {
    padding: 1rem;
  }

  .statusbar span,
  .statusbar time {
    width: 100%;
  }

  .post {
    padding: 0.9rem;
  }

  .meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .boost-btn,
  .action-link,
  .cta-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  .scanlines,
  body::before {
    display: none;
  }

  .topbar,
  .post,
  .bubblebeam-panel {
    box-shadow: none;
    background: #fff;
    border-color: #777;
  }

  .logo h1,
  .name,
  .beam-header h2,
  .tags {
    color: #000;
    text-shadow: none;
  }

  .boost-btn,
  .cta-btn,
  .action-link {
    color: #000;
    background: #fff;
    border-color: #777;
  }
}

/* ================================
   NeoBubble Patch: boost feedback + redaction fade
   Add below the existing "Buttons and Links" section
   ================================ */

.deleted [role="alert"] {
  transition: opacity 150ms ease;
}

.boost-btn.is-boosted {
  color: #021015;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(70, 245, 255, 0.45);
  cursor: default;
}

.boost-btn.is-boosted::after {
  content: "✓";
  margin-left: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .deleted [role="alert"] {
    transition: none;
  }
}