/* ═══════════════════════════════════════════════════════════════════
   AGORA - HERALD (ВЕСТНИК АГОРЫ) STYLESHEET
   Chapter II Mod HUD Slate, Ice-Cyan & Amethyst Aesthetics
   ═══════════════════════════════════════════════════════════════════ */

.herald-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-main);
  position: relative;
  overflow-x: hidden;
}

/* Subtle HUD grid overlay above the astral canvas */
.herald-bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 15%, rgba(79, 195, 247, 0.06) 0%, transparent 65%),
    linear-gradient(rgba(79, 195, 247, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 112, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  z-index: 1;
}

/* Header customization for Herald */
.herald-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--hud-slot);
  border: 1px solid var(--hud-border);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-home-btn:hover {
  background: var(--hud-slot-hover);
  border-color: var(--hud-cyan);
  color: var(--hud-cyan);
  transform: translateX(-2px);
}

.herald-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--hud-cyan);
}

.herald-brand-badge span.glyph {
  color: var(--gold-amber);
  font-size: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════════
   HERALD MASTHEAD (NEWSPAPER HEADER)
   ═══════════════════════════════════════════════════════════════════ */
.herald-masthead-section {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 36px auto 20px;
  padding: 0 20px;
  width: 100%;
}

.herald-masthead-box {
  background: var(--hud-accent-gradient) top / 100% 2px no-repeat, var(--hud-bg);
  border: 1px solid var(--hud-border);
  border-radius: var(--radius-md);
  padding: 24px 32px 20px;
  text-align: center;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.herald-masthead-box::before {
  display: none;
}

.masthead-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(46, 60, 82, 0.6);
  padding-bottom: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.masthead-meta-bar .center-glyph {
  color: var(--hud-cyan);
}

.masthead-main-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 4px;
  margin: 4px 0 8px;
  line-height: 1.1;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 28px rgba(79, 195, 247, 0.18);
}

.masthead-sub-title {
  font-family: var(--font-main);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.masthead-rule-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold-amber);
  margin: 12px 0 6px;
}

.masthead-rule-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.35), rgba(169, 112, 255, 0.35), transparent);
}

.masthead-rule-divider .symbol {
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════
   HERALD CONTROLS & CATEGORIES TOOLBAR
   ═══════════════════════════════════════════════════════════════════ */
.herald-toolbar-wrap {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 0 20px;
  width: 100%;
}

.herald-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--hud-accent-gradient) top / 100% 2px no-repeat, var(--hud-bg);
  border: 1px solid var(--hud-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.herald-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.category-pill {
  background: var(--hud-slot);
  border: 1px solid var(--hud-border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill:hover {
  background: var(--hud-slot-hover);
  color: var(--text-main);
  border-color: rgba(79, 195, 247, 0.45);
}

.category-pill.active {
  background: linear-gradient(180deg, rgba(24, 50, 74, 0.92) 0%, rgba(18, 35, 54, 0.92) 100%);
  border-color: var(--hud-cyan);
  color: var(--text-main);
  box-shadow: 0 0 12px rgba(79, 195, 247, 0.18);
}

.herald-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.create-article-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #18324A 0%, #122336 100%);
  border: 1px solid rgba(79, 195, 247, 0.6);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.create-article-btn:hover {
  background: linear-gradient(180deg, #1F3F5E 0%, #162B42 100%);
  border-color: var(--hud-cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79, 195, 247, 0.24);
}

.create-article-btn:active {
  transform: translateY(1px);
}

.admin-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════════
   HERALD ARTICLES FEED GRID
   ═══════════════════════════════════════════════════════════════════ */
.herald-feed-section {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto 60px;
  padding: 0 20px;
  width: 100%;
  flex: 1;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

/* Material article card (Chapter 2 HUD panel) */
.article-card {
  background: var(--hud-accent-gradient) top / 100% 2px no-repeat, var(--hud-bg);
  border: 1px solid var(--hud-border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  position: relative;
}

.article-card:hover {
  background: var(--hud-accent-gradient) top / 100% 2px no-repeat, var(--hud-slot);
  border-color: rgba(79, 195, 247, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.72), 0 0 18px rgba(79, 195, 247, 0.12);
  transform: translateY(-2px);
}

.article-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.article-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 4px;
}

.article-badge.category-lore {
  background: rgba(79, 195, 247, 0.14);
  color: var(--hud-cyan);
  border: 1px solid rgba(79, 195, 247, 0.35);
}

.article-badge.category-faction {
  background: rgba(201, 24, 43, 0.14);
  color: #ff8a93;
  border: 1px solid rgba(201, 24, 43, 0.35);
}

.article-badge.category-rumor {
  background: rgba(139, 92, 246, 0.14);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.article-badge.category-chronicle {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.article-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.article-card-title {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.article-card-title:hover {
  color: var(--gold-light);
}

/* Card Cover Image */
.article-card-cover {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  background: #090D14;
  border: 1px solid rgba(46, 60, 82, 0.65);
  cursor: pointer;
  position: relative;
}

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

.article-card:hover .article-card-cover img {
  transform: scale(1.04);
}

/* Direct link highlighted card */
.article-card.highlighted-card {
  border-color: var(--gold-amber) !important;
  box-shadow: 0 0 24px rgba(79, 195, 247, 0.32) !important;
  animation: cardPulse 2s ease infinite alternate;
}

@keyframes cardPulse {
  0% { box-shadow: 0 0 12px rgba(79, 195, 247, 0.18); }
  100% { box-shadow: 0 0 26px rgba(169, 112, 255, 0.38); }
}

.article-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(79, 195, 247, 0.32);
}

.article-author-info {
  display: flex;
  flex-direction: column;
}

.article-author-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-pure);
}

.article-author-character {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

.article-excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.read-more-link {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-amber);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.read-more-link:hover {
  color: var(--gold-light);
}

.delete-article-btn {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-article-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fff;
}

/* Empty state */
.articles-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--hud-bg);
  border: 1px dashed rgba(79, 195, 247, 0.28);
  border-radius: var(--radius-md);
}

.articles-empty-glyph {
  font-size: 2.8rem;
  color: var(--gold-amber);
  margin-bottom: 12px;
}

.articles-empty-title {
  font-family: var(--font-main);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 8px;
}

.articles-empty-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE READER MODAL
   ═══════════════════════════════════════════════════════════════════ */
.reader-modal-box {
  max-width: 800px !important;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 32px !important;
  background: var(--hud-accent-gradient) top / 100% 2px no-repeat, var(--hud-bg-deep) !important;
  border: 1px solid var(--hud-border) !important;
}

.reader-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(46, 60, 82, 0.65);
}

.reader-title {
  font-family: var(--font-main);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 10px 0 14px;
}

.reader-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Reader Tab Navigation (Separate Article and Comments Tabs) */
.reader-tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(46, 60, 82, 0.65);
}

.reader-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reader-tab-btn:hover {
  background: var(--hud-slot);
  color: var(--text-main);
  border-color: rgba(79, 195, 247, 0.45);
}

.reader-tab-btn.active {
  background: linear-gradient(180deg, rgba(24, 50, 74, 0.92) 0%, rgba(18, 35, 54, 0.92) 100%);
  border-color: var(--hud-cyan);
  color: var(--text-main);
  box-shadow: 0 0 12px rgba(79, 195, 247, 0.22);
}

.tab-count-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: normal;
}

/* Tab Panes */
.reader-tab-pane {
  display: none;
  overflow-y: auto;
  max-height: calc(88vh - 180px);
  padding-right: 6px;
}

.reader-tab-pane.active {
  display: block;
}

.reader-cover-container {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin: 16px 0 20px;
  border: 1px solid var(--hud-border);
  background: #090D14;
}

.reader-cover-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.reader-body-content {
  overflow-y: auto;
  padding-right: 8px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #DCE5F2;
}

.reader-body-content p {
  margin-bottom: 16px;
  text-indent: 1.2em;
}

.reader-body-content p:first-of-type {
  text-indent: 0;
  font-size: 1.08rem;
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE CREATOR FORM MODAL
   ═══════════════════════════════════════════════════════════════════ */
.creator-modal-box {
  max-width: 700px !important;
  background: var(--hud-accent-gradient) top / 100% 2px no-repeat, var(--hud-bg-deep) !important;
  border: 1px solid var(--hud-border) !important;
}

.creator-form-field {
  margin-bottom: 18px;
}

.creator-form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.upload-image-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hud-slot);
  border: 1px solid rgba(79, 195, 247, 0.35);
  color: var(--gold-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-image-trigger-btn:hover {
  background: var(--hud-slot-hover);
  color: var(--text-main);
  border-color: var(--hud-cyan);
}

.image-input-row {
  display: flex;
  gap: 8px;
}

.image-preview-wrapper {
  position: relative;
  margin-top: 10px;
  max-width: 220px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(79, 195, 247, 0.38);
  background: #090D14;
}

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

.image-preview-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.image-preview-remove-btn:hover {
  background: #dc2626;
  border-color: #ef4444;
}

.field-hint {
  display: block;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 5px;
}

.creator-form-field select,
.creator-form-field input,
.creator-form-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--hud-bg-deep);
  border: 1px solid var(--hud-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.creator-form-field textarea {
  min-height: 180px;
  line-height: 1.5;
  resize: vertical;
}

.creator-form-field select:focus,
.creator-form-field input:focus,
.creator-form-field textarea:focus {
  outline: none;
  border-color: var(--hud-cyan);
  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.18);
}

.cooldown-warning-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   COMMENTS & DISCORD THREAD SYNC SECTION
   ═══════════════════════════════════════════════════════════════════ */
.reader-comments-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(46, 60, 82, 0.65);
}

.comments-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.comments-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-glyph {
  font-size: 1.25rem;
}

.comments-title {
  font-family: var(--font-main);
  font-size: 1.28rem;
  color: #fff;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comments-count-badge {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold-amber);
  font-weight: normal;
}

.discord-thread-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(88, 101, 242, 0.14);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: var(--radius-sm);
  color: #a4b1fd;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.discord-thread-link:hover {
  background: rgba(88, 101, 242, 0.28);
  border-color: #5865f2;
  color: #fff;
  transform: translateY(-1px);
}

.comment-input-box {
  background: var(--hud-header);
  border: 1px solid var(--hud-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 26px;
}

.comment-author-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--gold-pure);
  font-weight: 600;
}

.comment-author-preview img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(79, 195, 247, 0.38);
}

.comment-rp-row {
  margin-bottom: 10px;
}

.comment-char-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.comment-char-input:focus {
  border-color: var(--gold-amber);
  outline: none;
}

.comment-textarea {
  width: 100%;
  background: var(--hud-bg-deep);
  border: 1px solid var(--hud-border);
  border-radius: 6px;
  padding: 12px;
  color: #fff;
  font-size: 0.94rem;
  font-family: inherit;
  resize: vertical;
  line-height: 1.5;
  transition: border-color 0.2s ease;
}

.comment-textarea:focus {
  border-color: var(--gold-amber);
  outline: none;
}

.comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.comment-chars-left {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.submit-comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #18324A 0%, #122336 100%);
  border: 1px solid rgba(79, 195, 247, 0.6);
  color: #EAF0F8;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-comment-btn:hover {
  background: linear-gradient(180deg, #1F3F5E 0%, #162B42 100%);
  transform: translateY(-1px);
}

.submit-comment-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.comment-login-prompt {
  background: rgba(88, 101, 242, 0.08);
  border: 1px dashed rgba(88, 101, 242, 0.3);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  margin-bottom: 26px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.comment-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865f2;
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 12px;
  transition: background 0.2s ease;
}

.comment-login-btn:hover {
  background: #4752c4;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-item {
  background: var(--hud-slot);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}

.comment-item:hover {
  border-color: rgba(79, 195, 247, 0.42);
}

.comment-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.comment-user-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(79, 195, 247, 0.38);
}

.comment-user-info {
  display: flex;
  flex-direction: column;
}

.comment-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-pure);
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-user-character {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
}

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

.comment-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.comment-discord-badge {
  font-size: 0.68rem;
  background: rgba(88, 101, 242, 0.16);
  color: #a5b0ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.comment-delete-btn {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

.comment-content {
  font-size: 0.93rem;
  line-height: 1.55;
  color: #DCE5F2;
  white-space: pre-wrap;
  word-break: break-word;
}

.comments-empty {
  text-align: center;
  padding: 26px 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-style: italic;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

.article-comments-count-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.article-comments-count-btn:hover {
  color: var(--gold-light);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .herald-masthead-box {
    padding: 18px 16px;
  }
  .masthead-meta-bar {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
  .herald-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .herald-filter-pills {
    justify-content: center;
  }
  .herald-actions-group {
    justify-content: center;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .herald-search-input {
    width: 100%;
    min-width: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   HERALD SEARCH & CLEAN RICH TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════ */

.herald-search-wrap {
  flex: 1 1 220px;
  max-width: 300px;
}

.herald-search-input {
  width: 100%;
  padding: 8px 13px;
  background: var(--hud-bg-deep);
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.herald-search-input:focus {
  border-color: var(--hud-cyan);
  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.18);
}

.reader-body-content p.herald-p {
  margin-bottom: 14px;
  text-indent: 0;
}

.reader-body-content h3,
.reader-body-content h4 {
  font-family: var(--font-title);
  color: var(--gold-light);
  margin: 18px 0 8px;
  letter-spacing: 0.8px;
}

.reader-body-content blockquote,
.comment-content blockquote {
  margin: 12px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--hud-cyan);
  background: rgba(79, 195, 247, 0.06);
  border-radius: 0 8px 8px 0;
  color: #D4DFEE;
  font-style: italic;
}

.reader-body-content code,
.comment-content code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--hud-slot);
  border: 1px solid var(--hud-border);
  color: var(--hud-cyan);
}

.reader-body-content pre,
.comment-content pre {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--hud-bg-deep);
  border: 1px solid var(--hud-border);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #d9e6f2;
}

.reader-body-content ul,
.comment-content ul {
  margin: 10px 0 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.clean-mention-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(79, 195, 247, 0.12);
  border: 1px solid rgba(79, 195, 247, 0.25);
  color: var(--hud-cyan);
  font-family: var(--font-mono);
  font-size: 0.84em;
}

.reader-body-content .herald-inline-link,
.comment-content .herald-inline-link {
  color: var(--gold-pure);
  text-decoration: underline;
  text-underline-offset: 3px;
}
