/* ============================================
   RelatosDeCornos — CSS
   Fonte: system-ui / sans-serif (sem serifa)
   Visual: limpo, minimalista, como rede social
   ============================================ */

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

:root {
  --bg:         #1a1a1a;
  --surface:    #242424;
  --border:     #333333;
  --text:       #e8e8e8;
  --text-muted: #888888;
  --accent:     #c0392b;
  --accent-hover: #a93226;
  --tg:         #2196F3;
  --tg-hover:   #1976D2;
  --radius:     4px;
  --font:       'Verdana', 'Geneva', 'Tahoma', sans-serif;
  --card-bg:    #ffffff;
  --card-text:  #111111;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 0.875rem;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
button { cursor: pointer; font-family: var(--font); }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #111;
  border-bottom: 1px solid #333;
  padding: 0 1.5rem;
  height: 56px;
  display: flex; align-items: center;
}

.header-inner {
  max-width: 1100px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
}

.logo {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--accent);
}
.logo span { color: var(--text); }

.header-nav { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.nav-publish {
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px;
  padding: 0.45rem 1rem; font-size: 0.875rem; font-weight: 600;
}
.nav-publish:hover { background: var(--accent-hover); }

.nav-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 0.45rem 0.9rem;
  font-size: 0.875rem; color: var(--text);
}
.nav-btn:hover { background: var(--surface); }

#nav-user { display: flex; align-items: center; gap: 0.5rem; }
.nav-username { font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.nav-logout { background: none; border: none; font-size: 0.8rem; color: var(--text-muted); }
.nav-logout:hover { color: var(--accent); }

/* ============ LAYOUT ============ */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }

.home-layout, .post-layout {
  max-width: 1100px; margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.main-col { min-width: 0; }

/* ============ SORT BAR ============ */
.sort-bar {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.sort-label { font-size: 0.8rem; color: var(--text-muted); margin-right: 0.25rem; }
.sort-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 20px; padding: 0.3rem 0.8rem;
  font-size: 0.8rem; color: var(--text-muted);
  transition: all 0.15s;
}
.sort-btn:hover, .sort-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}

/* ============ POST CARD ============ */
.posts-container {
  background: var(--card-bg);
  border-radius: 0;
  border: 1px solid #ddd;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.posts-container .sort-bar {
  margin-bottom: 0;
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid #eee;
}

.posts-container .pagination {
  padding: 0.75rem 1rem 0;
  border-top: 1px solid #eee;
  margin-top: 0;
}

.posts-list { display: flex; flex-direction: column; gap: 0; }

.post-card {
  padding: 1rem 1rem;
  margin-bottom: 0;
  background: transparent;
  color: var(--card-text);
  border-radius: 0;
  cursor: pointer;
  border: none;
  border-bottom: 1px solid #eee;
}

.post-card:last-child { border-bottom: none; }
.post-card:hover .post-card-title { color: var(--accent); }
.post-card .post-card-meta,
.post-card .post-card-footer { color: #555; }
.post-card .post-card-preview { color: #111; }
.post-card .post-card-title { color: #111; }
.post-card .post-author { color: var(--accent); }
.post-card .post-date { color: #888; }
.post-card .stat { color: #666; }

.post-card-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.post-author { font-weight: 600; color: var(--accent); }
.post-author:hover { text-decoration: underline; }

.post-card-title {
  font-size: 1.05rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 0.5rem; color: var(--text);
  transition: color 0.15s;
}

.post-card-preview {
  font-size: 0.9rem; color: #444; line-height: 1.55;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.8rem; color: var(--text-muted);
}
.stat { display: flex; align-items: center; gap: 0.25rem; }
.post-read-more { margin-left: auto; font-size: 0.8rem; color: var(--accent); font-weight: 600; }

.post-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.tag {
  background: #fff; border: 1px solid var(--accent);
  border-radius: 12px; padding: 0.15rem 0.6rem;
  font-size: 0.75rem; color: var(--accent); font-weight: 600;
}

/* ============ FULL POST ============ */
.post-full {
  background: var(--card-bg);
  color: var(--card-text);
  padding: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid #ddd;
  margin-bottom: 1rem;
}

.post-full .post-full-meta,
.post-full .post-full-title,
.post-full .post-body { color: var(--card-text); }
.post-full .post-author { color: var(--accent); }
.post-full .post-date { color: #888; }

.post-full-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding: 0 1rem;
}

.post-full-title {
  font-size: 1rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 0.75rem;
  padding: 0 1rem;
}

.post-body { font-size: 0.875rem; line-height: 1.6; color: #111; padding: 0 1rem; }
.post-body p { margin-bottom: 0.75em; }
.post-body p:last-child { margin-bottom: 0; }

.post-actions {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1.5rem; padding: 1rem 1rem 0;
  border-top: 1px solid var(--border);
}

.action-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 0.4rem 0.9rem;
  font-size: 0.875rem; color: var(--text-muted);
  transition: all 0.15s;
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); }
.action-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.post-views { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }

/* ============ COMMENTS ============ */
.comments-section { margin-top: 1.5rem; }
.comments-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }

.comment-form { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.comment-textarea {
  width: 100%; padding: 0.75rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 0.9rem; resize: vertical;
  outline: none;
}
.comment-textarea:focus { border-color: var(--accent); }

.comment-login-cta { margin-bottom: 1.5rem; }

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

.comment {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.comment-reply {
  margin-left: 1.5rem; padding-left: 1rem;
  border-left: 2px solid var(--border);
  border-bottom: none; margin-top: 0.5rem;
}
.comment-header {
  display: flex; gap: 0.5rem; align-items: center;
  margin-bottom: 0.35rem; font-size: 0.8rem;
}
.comment-author { font-weight: 700; color: var(--accent); }
.comment-date { color: var(--text-muted); }
.comment-body { font-size: 0.9rem; line-height: 1.5; color: #333; margin-bottom: 0.35rem; }
.reply-btn {
  background: none; border: none; font-size: 0.75rem;
  color: var(--text-muted); padding: 0;
}
.reply-btn:hover { color: var(--accent); }
.replies { margin-top: 0.5rem; }

.reply-form { margin-top: 0.5rem; }
.no-comments { font-size: 0.9rem; color: var(--text-muted); padding: 1rem 0; }

/* ============ SIDEBAR ============ */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.sidebar-widget {
  background: var(--card-bg);
  color: var(--card-text);
  border: 1px solid #ddd;
  border-radius: 0; padding: 1rem;
}
.sidebar-widget .widget-title,
.sidebar-widget .sidebar-post-title { color: var(--card-text); }
.sidebar-widget .sidebar-post-meta { color: #888; }

.widget-title {
  font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.sidebar-posts { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar-post { cursor: pointer; }
.sidebar-post:hover .sidebar-post-title { color: var(--accent); }
.sidebar-post-title { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.35; }
.sidebar-post-meta { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ============ TELEGRAM CTA ============ */
.tg-cta {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--tg); color: #fff;
  border-radius: var(--radius); padding: 0.9rem 1rem;
  text-decoration: none; transition: background 0.15s;
}
.tg-cta:hover { background: var(--tg-hover); color: #fff; }
.tg-icon { font-size: 1.4rem; line-height: 1; }
.tg-cta strong { display: block; font-size: 0.875rem; font-weight: 700; }
.tg-cta span { font-size: 0.8rem; opacity: 0.9; }

.inline-cta { margin: 1.5rem 0; }
.sidebar-tg { font-size: 0.875rem; }

/* ============ PUBLISH ============ */
.publish-layout { max-width: 680px; margin: 0 auto; padding: 0; }
.publish-card {
  background: var(--card-bg);
  color: var(--card-text);
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 1.5rem;
}

.publish-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.25rem; color: #111; }
.publish-subtitle { font-size: 0.9rem; color: #666; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem;
}
.form-group small { font-weight: 400; color: var(--text-muted); }

.form-input, .form-textarea {
  width: 100%; padding: 0.75rem;
  border: 1px solid #ddd; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.95rem; outline: none;
  background: #fff; color: #111;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; }

.char-count { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; text-align: right; }
.form-error { font-size: 0.875rem; color: var(--accent); margin-bottom: 0.75rem; min-height: 1.2em; }

.publish-actions {
  display: flex; justify-content: flex-end; gap: 0.75rem;
  margin: 1.5rem -1.5rem -1.5rem;
  position: sticky;
  bottom: 0;
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
  z-index: 10;
}

/* ============ PROFILE ============ */
.profile-layout { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem; }
.profile-header {
  display: flex; align-items: flex-start; gap: 1.25rem;
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; flex-shrink: 0;
}
.profile-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.25rem; }
.profile-bio { font-size: 0.9rem; color: #444; margin-bottom: 0.25rem; }
.profile-joined { font-size: 0.8rem; color: var(--text-muted); }
.profile-posts-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-muted); }

/* ============ AUTHOR WIDGET ============ */
.author-widget .author-info { display: flex; gap: 0.75rem; align-items: flex-start; }
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.9rem; cursor: pointer; color: var(--accent); }
.author-bio { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px;
  padding: 0.55rem 1.2rem; font-size: 0.875rem; font-weight: 600;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: #fff; color: #111;
  border: 1px solid #ccc; border-radius: 6px;
  padding: 0.55rem 1.2rem; font-size: 0.875rem;
  transition: background 0.15s;
}
.btn-secondary:hover { background: #f0f0f0; }

.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }

/* ============ PAGINATION ============ */
.pagination { display: flex; gap: 0.35rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.page-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 0.4rem 0.8rem;
  font-size: 0.875rem; color: var(--text-muted);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============ AUTH MODAL ============ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal-card {
  background: var(--bg); border-radius: 12px;
  width: 100%; max-width: 400px;
  padding: 2rem; position: relative;
}

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.25rem;
  color: var(--text-muted); line-height: 1;
}
.modal-close:hover { color: var(--text); }

.modal-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 1.25rem; }

.auth-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.auth-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: -1px;
  transition: all 0.15s;
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.auth-form { display: none; }
.auth-form.active { display: flex; flex-direction: column; gap: 0.75rem; }

.form-row { display: flex; flex-direction: column; gap: 0.3rem; }
.form-row label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

.auth-error { font-size: 0.8rem; color: var(--accent); min-height: 1em; }

/* ============ AGE GATE ============ */
#age-gate {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: #111; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.age-gate-inner { max-width: 420px; color: #fff; }
.age-gate-inner h2 { font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
.age-gate-badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 2rem; font-weight: 900; border-radius: 8px;
  padding: 0.25rem 0.75rem; margin-bottom: 1rem;
}
.age-gate-inner p { font-size: 1rem; color: #aaa; margin-bottom: 2rem; line-height: 1.6; }
.age-gate-btns { display: flex; gap: 1rem; justify-content: center; }
.age-yes {
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  padding: 0.75rem 2rem; font-size: 1rem; font-weight: 700;
}
.age-yes:hover { background: var(--accent-hover); }
.age-no {
  background: none; color: #aaa;
  border: 1px solid #444; border-radius: 8px;
  padding: 0.75rem 2rem; font-size: 1rem;
}
.age-no:hover { background: #222; }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: #222; color: #fff;
  border-radius: 8px; padding: 0.75rem 1.25rem;
  font-size: 0.875rem; font-weight: 500;
  opacity: 0; transform: translateY(0.5rem);
  transition: all 0.25s;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.toast-error { background: var(--accent); }

/* ============ SKELETON ============ */
.skeleton-card { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.sk { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
      background-size: 200% 100%; animation: shimmer 1.5s infinite;
      border-radius: 4px; height: 14px; margin-bottom: 0.5rem; }
.sk-title { width: 60%; height: 18px; }
.sk-short { width: 40%; }
.sk-mb { margin-bottom: 0.75rem; }

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============ UTILS ============ */
.empty-msg, .error-msg {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-muted); font-size: 0.95rem;
}
.error-msg { color: var(--accent); }

.auth-wall {
  text-align: center; max-width: 400px; margin: 4rem auto; padding: 2rem;
}
.auth-wall h2 { margin-bottom: 0.5rem; }
.auth-wall p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .home-layout, .post-layout {
    grid-template-columns: 1fr;
    padding: 0 0;
    gap: 0.35rem;
  }

  .sidebar {
    order: 2;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
  }

  .header { padding: 0 1rem; }
  .logo { font-size: 1rem; }
  .nav-publish span { display: none; }

  .post-full-title { font-size: 1rem; }
  .post-full { padding: 0.6rem 0.5rem; border-radius: 0; border-left: none; border-right: none; }
  .profile-header { flex-direction: column; }

  .publish-layout, .profile-layout { padding: 0; }

  .toast { bottom: 1rem; right: 1rem; left: 1rem; max-width: none; }

  .comments-section { border-radius: 0; border-left: none; border-right: none; padding: 0.75rem 0.5rem; }
}

/* ============ SORT DROPDOWN ============ */
.sort-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.page-indicator {
  font-size: 0.8rem; color: #111; font-weight: 600;
}

.sort-dropdown-wrap { position: relative; }

.sort-dropdown-btn {
  background: none; border: 1px solid #ccc;
  border-radius: 6px; padding: 0.4rem 0.9rem;
  font-size: 0.85rem; color: #111;
  display: flex; align-items: center; gap: 0.4rem;
  cursor: pointer; font-family: var(--font);
}
.sort-dropdown-btn:hover { border-color: var(--accent); color: var(--accent); }
.dropdown-arrow { font-size: 0.7rem; }

.sort-dropdown-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 4px);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 150px; z-index: 50;
}
.sort-dropdown-menu.open { display: block; }

.sort-option {
  display: block; width: 100%; text-align: left;
  background: none; border: none;
  padding: 0.65rem 1rem; font-size: 0.875rem;
  color: var(--text); cursor: pointer; font-family: var(--font);
}
.sort-option:hover { background: var(--surface); }
.sort-option.active { color: var(--accent); font-weight: 700; }

/* ============ CTA INLINE NOVO ============ */
.inline-cta {
  display: block; margin: 1.5rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 12px; padding: 1.25rem 1.5rem;
  text-decoration: none; color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative; overflow: hidden;
}
.inline-cta::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(192,57,43,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.tg-cta-content { position: relative; }

.tg-cta-top {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tg-cta-badge {
  background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.08em; padding: 0.2rem 0.5rem;
  border-radius: 4px; text-transform: uppercase;
}

.tg-cta-live {
  font-size: 0.75rem; color: #4ade80; font-weight: 600;
}

.tg-cta-title {
  display: block; font-size: 1.05rem; font-weight: 800;
  margin-bottom: 0.35rem; line-height: 1.3;
}

.tg-cta-desc {
  font-size: 0.85rem; color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem; line-height: 1.5;
}

.tg-cta-btn {
  display: inline-block;
  background: #2196F3; color: #fff;
  font-size: 0.85rem; font-weight: 700;
  padding: 0.45rem 1rem; border-radius: 6px;
}
.inline-cta:hover .tg-cta-btn { background: #1976D2; }

/* ============ NAV MOBILE ADJUSTMENTS ============ */
.nav-publish-logged {
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px;
  padding: 0.45rem 1rem; font-size: 0.875rem; font-weight: 600;
}
.nav-publish-logged:hover { background: var(--accent-hover); }

@media (max-width: 768px) {
  .nav-hide-mobile { display: none !important; }
  .nav-publish-desktop-only { display: none !important; }
}

/* ============ NAV ATUALIZADO ============ */
.nav-btn-accent {
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px;
  padding: 0.45rem 1rem; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; font-family: var(--font);
}
.nav-btn-accent:hover { background: var(--accent-hover); }

.nav-publish-btn {
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px;
  padding: 0.45rem 1rem; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; font-family: var(--font);
}
.nav-publish-btn:hover { background: var(--accent-hover); }

.nav-user-info {
  display: flex; align-items: center; gap: 0.5rem;
  cursor: pointer;
}
.nav-user-info:hover .nav-username { color: var(--accent); }

.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}

/* sidebar-tg com novo layout CTA */
.sidebar-tg { flex-direction: column; align-items: stretch; }
.sidebar-tg .tg-cta-content { width: 100%; }

@media (max-width: 768px) {
  .nav-publish-btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
}

/* ============ AVATAR DROPDOWN ============ */
.nav-avatar-wrap {
  position: relative; cursor: pointer;
}

.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.nav-avatar-wrap:hover .nav-avatar { border-color: var(--accent); }

.profile-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 140px; z-index: 200;
}
.profile-dropdown.open { display: block; }
.profile-dropdown button {
  display: block; width: 100%; text-align: left;
  background: none; border: none;
  padding: 0.65rem 1rem; font-size: 0.875rem;
  color: var(--text); cursor: pointer; font-family: var(--font);
}
.profile-dropdown button:hover { background: var(--surface); }
.profile-dropdown button:last-child { color: var(--accent); }

/* Botão publicar — texto sempre visível */
.nav-publish-text { }
.nav-publish-plus { font-size: 1rem; }

/* ============ TOP BANNER ============ */
.top-banner {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(90deg, #7b0000 0%, #c0392b 50%, #7b0000 100%);
  color: #fff; text-decoration: none;
  padding: 0.65rem 1.5rem;
  font-size: 0.85rem;
  transition: filter 0.15s;
}
.top-banner:hover { filter: brightness(1.1); color: #fff; }

.top-banner-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; flex-shrink: 0;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.top-banner-main {
  color: #fff;
  font-size: 0.9rem; font-weight: 800;
  letter-spacing: 0.01em; white-space: nowrap;
}

.top-banner-sep {
  color: rgba(255,255,255,0.4); font-weight: 300;
}

.top-banner-sub {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem; font-weight: 400;
}

.top-banner-cta {
  background: #fff; color: var(--accent);
  padding: 0.35rem 1.1rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 800; white-space: nowrap;
  flex-shrink: 0; letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.top-banner:hover .top-banner-cta { background: rgba(255,255,255,0.92); }

@media (max-width: 768px) {
  .top-banner { padding: 0.55rem 1rem; gap: 0.5rem; }
  .top-banner-sep, .top-banner-sub { display: none; }
  .top-banner-main { font-size: 0.82rem; white-space: normal; }
}

/* ============ CTA VERMELHO (substitui azul) ============ */
.tg-cta.inline-cta,
.tg-cta.sidebar-tg {
  background: linear-gradient(135deg, #7b0000 0%, #c0392b 60%, #922b21 100%);
  border: none;
}
.tg-cta.inline-cta:hover,
.tg-cta.sidebar-tg:hover { filter: brightness(1.08); }

.tg-cta-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; flex-shrink: 0;
  animation: pulse-dot 1.5s infinite;
  display: inline-block;
}

.tg-cta-live { font-size: 0.75rem; color: rgba(255,255,255,0.8); }

.tg-cta-title { color: #fff; }
.tg-cta-desc { color: rgba(255,255,255,0.75); }
.tg-cta-btn {
  background: #fff !important;
  color: var(--accent) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ============ POST MENU (3 pontos) ============ */
.post-card-profile { position: relative; }

.post-menu-wrap { position: relative; margin-left: auto; }

.post-menu-btn {
  background: none; border: none;
  font-size: 1.2rem; color: var(--text-muted);
  padding: 0 0.25rem; line-height: 1;
  cursor: pointer; border-radius: 4px;
}
.post-menu-btn:hover { background: var(--surface); color: var(--text); }

.post-menu-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 4px);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 120px; z-index: 100;
}
.post-menu-dropdown.open { display: block; }
.post-menu-dropdown button {
  display: block; width: 100%; text-align: left;
  background: none; border: none;
  padding: 0.6rem 1rem; font-size: 0.875rem;
  cursor: pointer; font-family: var(--font); color: var(--accent);
}
.post-menu-dropdown button:hover { background: var(--surface); }

/* tags abaixo do texto */
.post-tags-bottom { margin-top: 1.25rem; margin-bottom: 0; padding: 0 1rem; }

.comments-section {
  background: var(--card-bg);
  color: var(--card-text);
  padding: 1.25rem;
  border-radius: 0;
  border: 1px solid #ddd;
  margin-top: 1rem;
}

.comment-body, .comment-author, .comment-date, .reply-btn, .no-comments {
  color: var(--card-text) !important;
}
.comment-date, .reply-btn, .no-comments { color: #888 !important; }
.comment { border-bottom-color: #eee; }
.comment-textarea { background: #fff; color: #111; border-color: #ddd; }

/* ============ CTA NOVO POST ============ */
.cta-full-new {
  background: var(--card-bg);
  border: 1px solid #ddd;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.cta-full-live {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700;
  color: #c0392b; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.75rem;
}

.cta-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #c0392b; flex-shrink: 0;
  animation: pulse-dot 1.2s infinite;
}

.cta-full-body {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}

.cta-full-title {
  display: block; font-size: 0.95rem;
  font-weight: 800; color: #111;
  margin-bottom: 0.25rem;
}

.cta-full-desc {
  font-size: 0.8rem; color: #555; line-height: 1.4;
}

.cta-full-btn {
  background: var(--accent); color: #fff;
  padding: 0.55rem 1.1rem; border-radius: 5px;
  font-size: 0.8rem; font-weight: 700;
  white-space: nowrap; text-decoration: none;
  flex-shrink: 0;
}
.cta-full-btn:hover { background: var(--accent-hover); color: #fff; }

/* Sidebar CTA novo */
.cta-sidebar-new {
  display: block;
  background: var(--card-bg);
  border: 1px solid #ddd;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}
.cta-sidebar-new:hover { filter: brightness(0.97); }

.cta-sidebar-live {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 700; color: #c0392b;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.cta-sidebar-title {
  display: block; font-size: 0.95rem;
  font-weight: 800; color: #111; margin-bottom: 0.25rem;
}

.cta-sidebar-desc {
  font-size: 0.78rem; color: #555;
  line-height: 1.4; margin-bottom: 0.75rem;
}

.cta-sidebar-btn {
  display: block; text-align: center;
  background: var(--accent); color: #fff;
  padding: 0.5rem; border-radius: 5px;
  font-size: 0.78rem; font-weight: 700;
}

@media (max-width: 768px) {
  .cta-full-body { flex-direction: column; align-items: flex-start; }
  .cta-full-btn { width: 100%; text-align: center; }
}

/* ============ CTA SIDEBAR BANNER ============ */
.cta-sidebar-banner {
  display: block;
  background: linear-gradient(135deg, #7b0000 0%, #c0392b 60%, #922b21 100%);
  border-radius: 6px;
  padding: 1rem;
  text-decoration: none;
  color: #fff;
  transition: filter 0.15s;
}
.cta-sidebar-banner:hover { filter: brightness(1.1); color: #fff; }

.cta-sidebar-banner-live {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.cta-live-dot-white { background: #fff; }

.cta-sidebar-banner-title {
  display: block; font-size: 0.95rem;
  font-weight: 800; color: #fff;
  line-height: 1.3; margin-bottom: 0.35rem;
}

.cta-sidebar-banner-desc {
  font-size: 0.75rem; color: rgba(255,255,255,0.75);
  line-height: 1.4; margin-bottom: 0.75rem;
}

.cta-sidebar-banner-btn {
  display: block; text-align: center;
  background: #fff; color: var(--accent);
  padding: 0.5rem; border-radius: 5px;
  font-size: 0.78rem; font-weight: 800;
}
.cta-sidebar-banner:hover .cta-sidebar-banner-btn {
  background: rgba(255,255,255,0.92);
}

/* ============ TAGS INPUT ============ */
.tags-input-wrap {
  min-height: 44px;
  border: 1px solid #ddd; border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  background: #fff; cursor: text;
}
.tags-input-wrap:focus-within { border-color: var(--accent); }

.tags-preview { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.tag-chip {
  display: flex; align-items: center; gap: 0.25rem;
  background: #fff; border: 1px solid var(--accent);
  color: var(--accent); border-radius: 12px;
  padding: 0.1rem 0.5rem; font-size: 0.75rem; font-weight: 600;
}
.tag-chip button {
  background: none; border: none; color: var(--accent);
  font-size: 0.9rem; padding: 0; line-height: 1; cursor: pointer;
}

.tag-input-field {
  border: none; outline: none; font-family: var(--font);
  font-size: 0.875rem; background: transparent;
  min-width: 150px; color: #111;
}

.btn-send-report {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: var(--font);
  text-transform: uppercase;
}
.btn-send-report:hover { background: var(--accent-hover); }