/* RadiantFeed styles */
:root {
  --bg: #0a0f1c;
  --panel: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.18);
  --fg: #e9f0ff;
  --muted: #9fb0d0;
  --accent1: #7dd3fc;
  --accent2: #a78bfa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--fg);
  background: radial-gradient(
      1000px 400px at 10% -10%,
      rgba(124, 58, 237, 0.25),
      transparent
    ),
    radial-gradient(
      1000px 400px at 90% 0%,
      rgba(56, 189, 248, 0.25),
      transparent
    ),
    var(--bg);
  min-height: 100vh;
}

.app-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.app-header h1 {
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
  font-size: 28px;
}

.brand {
  opacity: 0.8;
  font-weight: 400;
  font-size: 16px;
  margin-left: 6px;
}

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

.tagline {
  margin: 0;
  color: var(--muted);
}
.sparkle {
  color: var(--accent1);
}

.notif {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.badge {
  background: var(--accent2);
  color: #fff;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 12px;
  margin-left: 6px;
}

.wrap {
  max-width: 860px;
  margin: 24px auto 80px;
  padding: 0 16px;
}

.composer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.composer textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  border-radius: 12px;
  padding: 12px;
  resize: vertical;
}

.composer .row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.composer label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.composer input[type="number"] {
  width: 80px;
  background: transparent;
  border: none;
  color: var(--fg);
  outline: none;
}

.composer button {
  margin-left: auto;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #081123;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.feed {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.post {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.post .post-header {
  display: grid;
  grid-template-columns: 40px 1fr auto auto auto;
  gap: 10px;
  align-items: center;
}

.post .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.post .meta .author {
  font-weight: 700;
}
.post .meta .time {
  color: var(--muted);
  font-size: 12px;
}

.likes {
  color: var(--muted);
}
.like-count {
  font-weight: 700;
  margin-right: 6px;
}

.post-delete-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.new-pill {
  justify-self: end;
  background: var(--accent1);
  color: #081123;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.post-content {
  margin-top: 10px;
  line-height: 1.5;
  font-size: 16px;
}

.comment-composer {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.comment-input {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  border-radius: 10px;
  padding: 10px 12px;
}

.comments,
.replies {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0 0;
  display: grid;
  gap: 10px;
}

.comment {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.comment-header {
  display: grid;
  grid-template-columns: 28px 1fr auto auto auto;
  gap: 8px;
  align-items: center;
}

.comment .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #60a5fa);
}

.comment .meta .name {
  font-weight: 600;
  margin-right: 6px;
}
.comment .meta .time {
  color: var(--muted);
  font-size: 12px;
  margin-left: 6px;
}

.comment-likes {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.like-comment-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
}
.comment-like-count.pop {
  transform: scale(1.2);
  transition: transform 0.2s;
}

.reply-btn,
.delete-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
}

.comment-text {
  margin: 8px 0 0 36px;
  line-height: 1.45;
}

.reply-composer {
  margin-left: 36px;
  display: grid;
  gap: 6px;
}
.reply-input {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  border-radius: 10px;
  padding: 8px 10px;
}

.typing {
  font-size: 12px;
  color: var(--muted);
}

.hidden {
  display: none;
}

.like-burst {
  position: absolute;
  pointer-events: none;
  font-size: 18px;
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1);
  animation: floatUp 0.7s ease-out forwards;
}

@keyframes floatUp {
  to {
    transform: translate(-50%, -120%) scale(1.6);
    opacity: 0;
  }
}
