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

html, body { overflow-x: hidden; width: 100%; max-width: 100%; }
html { overflow-x: clip; }

:root {
  --bg: #07050f;
  --surface: #110d1f;
  --surface-2: #1a1530;
  --border: #251e3e;
  --border-glow: rgba(131, 56, 236, 0.35);
  --text: #f0eef8;
  --text-dim: #9b93c0;
  --text-muted: #6b5f8f;
  --pink: #ff006e;
  --violet: #8338ec;
  --orange: #ff5722;
  --coral: #ff4d6d;
  --cyan: #00d9ff;
  --pink-glow: rgba(255, 0, 110, 0.2);
  --violet-glow: rgba(131, 56, 236, 0.2);
  --gradient: linear-gradient(135deg, #ff006e, #8338ec);
  --gradient-text: linear-gradient(135deg, #ff5f85 0%, #c850ff 50%, #5e9bff 100%);
  --red: #ff4d6d;
  --red-dim: rgba(255, 77, 109, 0.15);
  --blue: #5e9bff;
  --blue-dim: rgba(94, 155, 255, 0.15);
  --accent: #ff006e;
  --accent-glow: rgba(255, 0, 110, 0.18);
  --accent-dim: rgba(255, 0, 110, 0.6);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
}

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === NAV === */
.app-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 5, 15, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(131, 56, 236, 0.18);
}

.app-nav .logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.nav-user .avatar-emoji {
  font-size: 1.25rem;
}

.nav-user .handle {
  color: var(--text);
  font-weight: 600;
}

/* === MAIN LAYOUT === */
.app-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 4.5rem 1rem 2rem;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === SIGNUP VIEW === */
.signup-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 2rem 0;
}

.signup-view h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.signup-view h1 span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.signup-subtitle {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.signup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  transition: border-color 0.3s;
}

.signup-card:hover {
  border-color: var(--border-glow);
}

.signup-step-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.avatar-option {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-option:hover {
  border-color: rgba(131, 56, 236, 0.4);
  background: var(--surface-2);
  transform: scale(1.08);
  box-shadow: 0 4px 20px var(--violet-glow);
}

.avatar-option.selected {
  border-color: var(--pink);
  background: var(--accent-glow);
  box-shadow: 0 0 24px var(--pink-glow);
  transform: scale(1.05);
}

.handle-input-wrap {
  margin-bottom: 1.5rem;
}

.handle-input-wrap label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.handle-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.handle-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1);
}

.handle-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.handle-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.signup-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  min-height: 1.25rem;
}

.btn-primary {
  width: 100%;
  padding: 0.9rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 24px var(--pink-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(255, 0, 110, 0.4);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* === FEED VIEW === */
.feed-header {
  margin-bottom: 1.5rem;
}

.feed-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.feed-header p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: 'Syne', sans-serif;
}

.cat-tab:hover {
  border-color: rgba(131, 56, 236, 0.35);
  color: var(--text);
  background: var(--surface-2);
}

.cat-tab.active {
  background: var(--accent-glow);
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 12px var(--pink-glow);
}

/* Article cards */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Card with thumbnail: horizontal layout on desktop */
.article-card.has-thumbnail {
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.article-card.has-thumbnail .article-card-body {
  flex: 1;
  min-width: 0;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
}

/* Thumbnail container */
.article-thumbnail-wrap {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  min-height: 120px;
  overflow: hidden;
  border-radius: 14px 0 0 14px;
}

.article-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.article-card.has-thumbnail:hover .article-thumbnail {
  transform: scale(1.04);
}

/* Category badge on thumbnail */
.article-cat-badge {
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  padding: 0.15rem 0.5rem;
  background: rgba(7, 5, 15, 0.82);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat-color, #9b93c0);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

/* Inline category text (no-thumbnail cards) */
.article-cat-inline {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
  opacity: 0.9;
}

/* No-thumbnail cards keep padding on the body */
.article-card:not(.has-thumbnail) .article-card-body {
  /* transparent wrapper — inherits parent padding */
}

/* For non-thumbnail cards, the card itself has padding */
.article-card:not(.has-thumbnail) {
  padding: 1.25rem;
}

.article-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(131, 56, 236, 0.1);
}

/* Don't double-apply transform on thumbnail cards */
.article-card.has-thumbnail:hover {
  transform: translateY(-2px);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.article-source {
  color: var(--pink);
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-time {
  color: var(--text-muted);
}

.article-dot {
  color: var(--text-muted);
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

/* Slightly smaller title in thumbnail cards to fit */
.article-card.has-thumbnail h3 {
  font-size: 0.95rem;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
  flex: 1;
}

/* Hide description in thumbnail cards to save space */
.article-card.has-thumbnail .article-desc {
  display: none;
}

.article-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  margin-top: auto;
}

/* === ARTICLE DETAIL MEDIA === */

.article-detail-img-wrap {
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}

.article-detail-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* 16:9 responsive video embed */
.article-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.article-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

/* Click-to-play video placeholder */
.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.video-placeholder:hover img { opacity: 0.75; }
.play-btn {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.72);
  border: 3px solid rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  padding-left: 4px; /* optical centering for ▶ */
  transition: transform 0.2s, background 0.2s;
  pointer-events: none;
}
.video-placeholder:hover .play-btn {
  transform: scale(1.1);
  background: rgba(255,0,110,0.85);
}

/* Below-fold card lazy reveal */
.article-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Restore hover lift after reveal (needs higher specificity than :hover alone) */
.article-card.card-visible:hover {
  transform: translateY(-2px);
}

/* === SHARE BUTTONS === */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: inherit;
}
.share-btn:hover {
  background: var(--surface-2);
  border-color: rgba(131, 56, 236, 0.35);
  color: var(--text-dim);
}

.share-btn-lg {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  border-radius: 100px;
}

.share-btn-twitter {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  border-radius: 100px;
  color: var(--text-dim);
}
.share-btn-twitter:hover {
  background: rgba(94, 155, 255, 0.1);
  border-color: rgba(94, 155, 255, 0.35);
  color: var(--blue);
}

/* Share button on individual takes/comments */
.share-vent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
  padding: 0;
  flex-shrink: 0;
}
.share-vent-btn:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-dim);
}

.article-share-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.article-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.article-stat .icon { font-size: 0.9rem; }

.vent-count {
  color: var(--pink);
  font-weight: 700;
  font-family: 'Syne', sans-serif;
}

/* === ARTICLE VIEW === */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  font-family: inherit;
  transition: color 0.15s;
}

.back-btn:hover { color: var(--text); }

.article-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-detail .article-meta {
  margin-bottom: 0.75rem;
}

.article-detail h1 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.article-detail .description {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--accent-dim);
  transition: color 0.15s;
}

.article-link:hover {
  color: var(--pink);
  text-decoration: none;
}

/* Comment form */
.comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.comment-form:focus-within {
  border-color: var(--border-glow);
}

.comment-form-header {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.75rem;
}

.comment-textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.08);
}

.comment-textarea::placeholder {
  color: var(--text-muted);
}

.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-submit {
  padding: 0.5rem 1.25rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 12px var(--pink-glow);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(255, 0, 110, 0.4);
}

.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-prompt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.login-prompt p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.btn-secondary {
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: var(--pink);
  border: 1px solid rgba(255, 0, 110, 0.4);
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--accent-glow);
  border-color: var(--pink);
  box-shadow: 0 0 16px var(--pink-glow);
}

/* Comments section */
.comments-header {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.comment:hover {
  border-color: rgba(131, 56, 236, 0.2);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.comment-avatar { font-size: 1.1rem; }

.comment-handle {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.comment-body {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.vote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}

.vote-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.vote-btn.upvoted {
  color: var(--pink);
  background: var(--accent-glow);
}

.vote-btn.downvoted {
  color: var(--red);
  background: var(--red-dim);
}

.vote-count {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 1.5rem;
  text-align: center;
  color: var(--text-dim);
}

.vote-count.positive { color: var(--pink); }
.vote-count.negative { color: var(--red); }

.reply-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding: 0.25rem 0.6rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.reply-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* Replies (nested) */
.replies {
  margin-left: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

/* Empty & loading states */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-dim);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text); font-weight: 700; }
.empty-state p { font-size: 0.9rem; }

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-dim);
}

.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.75rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text);
  z-index: 200;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 40px rgba(131, 56, 236, 0.2);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.error {
  border-color: var(--red);
  color: var(--red);
}

/* === REPORT BUTTON === */

.report-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s;
}

.comment:hover .report-btn {
  opacity: 0.6;
}

.report-btn:hover {
  background: var(--red-dim);
  color: var(--red);
  opacity: 1 !important;
}

.report-btn.reported {
  color: var(--red);
  opacity: 0.5 !important;
  cursor: default;
}

/* === HIDDEN VENT === */

.comment-hidden {
  opacity: 0.6;
}

.hidden-vent-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.hidden-vent-icon {
  font-size: 1rem;
  font-style: normal;
}

/* === REPORT MODAL === */

.report-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 5, 15, 0.8);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.report-modal-overlay.show {
  opacity: 1;
}

.report-modal {
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  padding: 1.5rem;
  width: 100%;
  max-width: 360px;
  transform: translateY(12px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 24px 80px rgba(131, 56, 236, 0.2);
}

.report-modal-overlay.show .report-modal {
  transform: translateY(0);
}

.report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.report-modal-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.report-modal-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.report-modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.report-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.report-reason-btn {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.report-reason-btn:hover {
  background: var(--surface-2);
  border-color: rgba(131, 56, 236, 0.3);
  color: var(--text);
}

.report-reason-btn.selected {
  background: var(--red-dim);
  border-color: var(--red);
  color: var(--red);
  font-weight: 600;
}

.report-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* === SORT BAR === */
.sort-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.sort-bar::-webkit-scrollbar { display: none; }

.sort-tab {
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.02em;
}
.sort-tab:hover {
  border-color: rgba(131, 56, 236, 0.35);
  color: var(--text);
  background: var(--surface-2);
}
.sort-tab.active {
  background: rgba(255, 87, 34, 0.12);
  border-color: var(--orange);
  color: var(--orange);
}

/* === TRENDING SECTION === */
.trending-block {
  margin-bottom: 1.75rem;
}

.trending-block-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.trending-fire {
  font-size: 1rem;
}

.trending-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

/* Hot Takes list */
.hot-takes-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hot-take-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}

.hot-take-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
  border-radius: 3px 0 0 3px;
}

.hot-take-card:hover {
  background: var(--surface-2);
  border-color: rgba(131, 56, 236, 0.35);
  transform: translateY(-1px);
}

.hot-take-rank {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 1.5rem;
  padding-top: 0.1rem;
}

.hot-take-body {
  flex: 1;
  min-width: 0;
}

.hot-take-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.ht-avatar { font-size: 0.9rem; }

.ht-handle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
}

.ht-score {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  margin-left: auto;
  background: var(--surface-2);
  color: var(--text-muted);
}
.ht-score.pos {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}
.ht-score.neg {
  color: var(--red);
  background: var(--red-dim);
}

.hot-take-content {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.hot-take-article {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Trending Articles list */
.trending-articles-block {
  margin-top: 0;
}

.trending-articles-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trending-article-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.trending-article-row:hover {
  background: var(--surface-2);
  border-color: rgba(131, 56, 236, 0.3);
}

.trending-article-rank {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-muted);
  min-width: 1.4rem;
  text-align: center;
}

.trending-article-info {
  flex: 1;
  min-width: 0;
}

.trending-article-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-article-meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.trending-dot { opacity: 0.5; }

.trending-vent-count {
  color: var(--pink);
  font-weight: 700;
}

/* === TRENDING ON VENT — Pageview-based section === */
.pv-trending-block {
  margin-bottom: 2rem;
}

.pv-trending-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pv-trending-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}

.pv-trending-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--violet), var(--pink));
  border-radius: 3px 0 0 3px;
}

.pv-trending-card:hover {
  background: var(--surface-2);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.pv-trending-rank {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 1.4rem;
  text-align: center;
  flex-shrink: 0;
}

.pv-trending-thumb-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
}

.pv-trending-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-trending-body {
  flex: 1;
  min-width: 0;
}

.pv-cat-badge {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
  color: var(--cat-color, var(--text-muted));
  background: color-mix(in srgb, var(--cat-color, var(--text-muted)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--text-muted)) 30%, transparent);
}

.pv-trending-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-trending-meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.pv-source {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.pv-reads {
  color: var(--violet);
  font-weight: 700;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 640px) {
  .app-nav { padding: 0.75rem 1rem; }
  .app-main { padding: 4rem 0.75rem 2rem; }
  .signup-view h1 { font-size: 2rem; }
  .avatar-grid { grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
  .avatar-option { font-size: 1.5rem; }
  .article-detail h1 { font-size: 1.25rem; }
  .replies { margin-left: 0.75rem; padding-left: 0.75rem; }
  .hot-take-card { padding: 0.7rem 0.85rem; }
  .trending-article-title { white-space: normal; }
  .pv-trending-title { white-space: normal; }
  .pv-trending-thumb-wrap { display: none; }

  /* Mobile: stack thumbnail on top, text below */
  .article-card.has-thumbnail {
    flex-direction: column;
  }

  .article-thumbnail-wrap {
    width: 100%;
    min-height: 160px;
    max-height: 200px;
    border-radius: 14px 14px 0 0;
  }

  .article-thumbnail {
    height: 100%;
    max-height: 200px;
  }

  /* Show description again on mobile stacked cards */
  .article-card.has-thumbnail .article-desc {
    display: -webkit-box;
  }

  .article-card.has-thumbnail h3 {
    font-size: 1rem;
    -webkit-line-clamp: 2;
  }

  .article-detail-img {
    max-height: 240px;
  }
}
