@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&family=Playfair+Display:wght@400;700&display=swap');

/* ==========================
   Variáveis globais
   ========================== */
:root {
  --bg: #1a0d0d;
  /* vinho escuro */
  --card: #241216;
  --muted: #b7a79a;
  /* tom de pele claro / texto */
  --accent: #d4a373;
  /* bordô */
  --gold: #d4a373;
  /* dourado queimado */
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 14px;
  --max-width: 1100px;
  /* valor do layout principal */
  --transition: 240ms ease;

  /* Cores de texto otimizadas */
  --text-primary: #f7eae0;
  --text-secondary: #f4e0c9;
  --text-muted: #c9b6aa;
  --text-light: #bfaea2;

  /* Gradientes reutilizáveis */
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.03));
  --gradient-card-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.02));
  --gradient-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(0, 0, 0, 0.03));
  --gradient-auth: linear-gradient(135deg, rgba(212, 163, 115, 0.03), rgba(176, 11, 56, 0.03));
  --gradient-accent: linear-gradient(90deg, var(--accent), rgba(212, 163, 115, 0.8));
  --gradient-gold: linear-gradient(90deg, var(--gold), rgba(212, 163, 115, 0.9));
  --gradient-sidebar: linear-gradient(180deg, #241216, #1a0d0d);

  /* Header background */
  --header-bg: rgba(26, 13, 13, 0.95);
  --header-border: rgba(255, 255, 255, 0.08);

  /* Sombras reutilizáveis */
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 8px 28px rgba(212, 163, 115, 0.08);
  --shadow-accent: 0 6px 18px rgba(212, 163, 115, 0.15);

  /* Bordas reutilizáveis */
  --border-light: 1px solid rgba(255, 255, 255, 0.02);
  --border-medium: 1px solid rgba(255, 255, 255, 0.03);
  --border-gold: 1px solid rgba(212, 163, 115, 0.15);
  --border-accent: 1px solid rgba(212, 163, 115, 0.15);
}

/* ==========================
   Estilos globais de links
   ========================== */

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:visited {
  color: var(--accent);
}

a:hover {
  color: var(--gold);
}

a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================
   Classes Utilitárias
   ========================== */
.glass-card {
  background: var(--gradient-card);
  border-radius: var(--radius);
  border: var(--border-light);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

/* Header alternatives */
.main-header-solid {
  background: var(--card);
  border: 1px solid var(--border-medium);
}

.main-header-minimal {
  background: rgba(26, 13, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.glass-card-hover:hover {
  background: var(--gradient-card-hover);
  border-color: rgba(212, 163, 115, 0.2);
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

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

.text-gold {
  color: var(--gold);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

/* ==========================
   Reset e base
   ========================== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: linear-gradient(180deg, var(--bg), #0f0606 70%);
  color: var(--muted);
  font-family: "Lora", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  padding: 40px 18px;
}

/* ==========================
   Container central
   ========================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  background: var(--gradient-card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
}

/* ==========================
   Header da página inicial
   ========================== */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 6px;
  position: sticky;
  top: 18px;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--header-border);
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition);
}

.main-header:hover {
  background: rgba(26, 13, 13, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive header adjustments */
@media (max-width: 768px) {
  .main-header {
    top: 12px;
    padding: 10px 4px;
    margin-bottom: 14px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .main-header {
    top: 8px;
    padding: 8px 3px;
    margin-bottom: 12px;
    gap: 8px;
  }
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--muted);
}

.brand h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  font-weight: 700;
}

.brand .tag {
  font-size: 0.76rem;
  color: var(--gold);
  opacity: 0.95;
}

nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  font-weight: 600;
  font-size: 0.95rem;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  transform: translateY(-2px);
}

.cta {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

/* ==========================
   Hero / Welcome
   ========================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: stretch;
}

.welcome {
  padding: 26px;
  background: var(--gradient-glass);
  border-radius: var(--radius);
  min-height: 220px;
}

.welcome h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--text-primary);
}

.welcome p.lead {
  margin: 0 0 14px 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.welcome .actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ==========================
   Sistema de Botões Unificado
   ========================== */
.btn {
  min-height: 44px;
  min-width: 44px;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
  background: transparent;
  color: var(--muted);
  outline: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Variantes de botões */
.btn-primary {
  background: var(--gradient-gold);
  color: #170b0b !important;
  box-shadow: var(--shadow-gold);
  outline: none;
}

.btn-secondary {
  background: rgba(212, 163, 115, 0.2);
  color: var(--text-primary);
  border: 1px solid rgba(212, 163, 115, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #d4a373, #c19660);
  color: #1a0d0d !important;
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #b00b38, #8f042e);
  color: white;
  box-shadow: 0 4px 12px rgba(176, 11, 56, 0.3);
}

.btn-info {
  background: linear-gradient(135deg, #d4a373, #e8d4b8);
  color: #1a0d0d !important;
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: #170b0b;
}

/* Estados especiais */
.btn-full {
  width: 100%;
  justify-content: center;
}

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

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ==========================
   Cards / Destaques
   ========================== */
.aside {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--gradient-card);
  min-height: 220px;
}

.aside h3 {
  margin: 0 0 10px 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.post-card {
  background: var(--gradient-card);
  padding: 12px;
  border-radius: 12px;
  border: var(--border-light);
}

.post-card h4 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-family: "Playfair Display", serif;
}

.post-card p {
  margin: 6px 0 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 14px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: var(--border-light);
  height: 100%;
}

.card h3 {
  margin: 0 0 6px 0;
  color: var(--text-secondary);
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.card .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.card-link:hover .card {
  background: var(--gradient-card-hover);
}

/* ==========================
   Estilos para página de temas
   ========================== */

.page-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: var(--border-light);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 8px 0 0 0;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.theme-card {
  background: var(--gradient-card);
  border: var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.theme-card:hover {
  background: var(--gradient-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.theme-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
}

.theme-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.theme-link:hover .theme-title {
  color: var(--gold);
}

.theme-content {
  flex: 1;
}

.theme-title {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  transition: var(--transition);
}

.theme-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.theme-arrow {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: bold;
  transition: var(--transition);
  margin-left: 12px;
}

.theme-card:hover .theme-arrow {
  transform: translateX(4px);
  color: var(--gold);
}





/* ==========================
   Estado vazio
   ========================== */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================
   Página de Erro
   ========================== */

.error-container {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: var(--gradient-card);
  border: var(--border-medium);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.error-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.error-title {
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.error-message {
  margin-bottom: 2rem;
}

.error-message p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
}

.error-explanation {
  margin-bottom: 2.5rem;
}

.error-explanation p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.error-explanation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-explanation li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.error-explanation li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions .btn {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.error-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.error-actions .btn-secondary {
  background: var(--muted);
  color: var(--text-primary);
}

.error-actions .btn-secondary:hover {
  background: var(--text-light);
  color: var(--text-primary);
}

.error-actions .btn-primary {
  background: var(--accent);
  color: var(--text-primary);
}

.error-actions .btn-primary:hover {
  background: var(--gold);
}

.error-actions .btn-success {
  background: #28a745;
  color: white;
}

.error-actions .btn-success:hover {
  background: #218838;
}

.error-actions .btn-info {
  background: #17a2b8;
  color: white;
}

.error-actions .btn-info:hover {
  background: #138496;
}

/* Responsividade da página de erro */
@media (max-width: 640px) {
  .error-container {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }

  .error-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .error-title {
    font-size: 1.5rem;
  }

  .error-message p {
    font-size: 1rem;
  }

  .error-explanation li {
    font-size: 0.85rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .error-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .error-container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .error-icon {
    font-size: 2rem;
  }

  .error-title {
    font-size: 1.3rem;
  }

  .error-actions .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* ==========================
   Estilos para página de conto (story)
   ========================== */
.story-header {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 32px;
  display: block;

  .tag-list {
    justify-content: center;
  }
}

.brand-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 24px;
  transition: transform var(--transition);
}

.brand-link:hover {
  transform: translateY(-2px);
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  font-weight: 700;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.95;
}

.story-title {
  margin: 24px 0 16px 0;
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

.story-meta {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;

}

.story-meta span {
  display: flex;
  align-items: center;
  gap: 6px;

  a {
    color: inherit;
  }
}

.tag-list {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 12px;
  flex-wrap: wrap;

  .tag {
    padding: 4px 12px;
    background: rgba(212, 163, 115, 0.08);
    border: 1px solid rgba(212, 163, 115, 0.15);
    border-radius: 16px;
    font-size: 0.82rem;
    color: var(--gold);

    a {
      text-decoration: none;
      color: var(--gold);
    }
  }
}

.story-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-muted);
  text-align: justify;
}

.story-content p {
  margin: 0 0 1.5em 0;
}

.story-content p:first-of-type:first-letter {
  font-size: 3.5em;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.1em 0 0;
  font-family: "Playfair Display", serif;
  color: var(--text-secondary);
}

.story-content em {
  font-style: italic;
  color: var(--gold);
}

.divider {
  text-align: center;
  margin: 40px 0;
  color: rgba(255, 255, 255, 0.1);
  font-size: 1.5rem;
  letter-spacing: 8px;
}

.story-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================
   Footer
   ========================== */
footer {
  margin-top: 18px;
  padding: 12px 10px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-light);
  opacity: 0.95;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
  padding: 2px 6px;
  border-radius: 4px;
}

.footer-links a:hover {
  color: var(--gold);
  background: rgba(212, 163, 115, 0.08);
}

.footer-links span {
  color: var(--text-light);
  opacity: 0.5;
  font-size: 0.8rem;
}

/* ==========================
   Modal / overlay
   ========================== */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  padding: 22px;
}

.overlay.open {
  display: flex;
}

.modal {
  background: var(--gradient-card);
  border-radius: 12px;
  width: 100%;
  max-width: 720px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.modal h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
}

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

.modal h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
}

.close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-medium);
  color: var(--muted);
  font-size: 0.95rem;
}

.search {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.search input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: var(--border-medium);
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted);
}

/* ==========================
   Responsividade
   ========================== */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  header {
    gap: 6px;
  }

  .container {
    padding: 20px;
  }

  .story-title {
    font-size: 1.75rem;
  }

  .story-content {
    font-size: 1.05rem;
    text-align: left;
  }

  .story-meta {
    font-size: 0.88rem;
  }
}


/* Menu offcanvas adaptado para Contos Eróticos */
#menuToggle {
  display: block;
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 100;
  user-select: none;

  input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;

    &:checked {
      ~span {
        opacity: 1;
        transform: rotate(45deg) translate(-2px, -1px);
        background: var(--text-secondary);

        &:nth-last-child(3) {
          opacity: 0;
          transform: rotate(0deg) scale(0.2, 0.2);
        }

        &:nth-last-child(2) {
          transform: rotate(-45deg) translate(0, -1px);
        }
      }

      ~ul#menu {
        transform: translateX(0);
      }
    }
  }

  span {
    display: block;
    width: 33px;
    height: 3px;
    margin-bottom: 6px;
    position: relative;
    background: var(--gold);
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
      background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
      opacity 0.55s ease;

    &:first-child {
      transform-origin: 0% 0%;
    }

    &:nth-last-child(2) {
      transform-origin: 0% 100%;
    }
  }

  ul#menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    margin: 0;
    padding: 80px 40px 40px 40px;
    background: var(--gradient-sidebar);
    list-style-type: none;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.8);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    overflow-y: auto;

    li {
      padding: 16px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);

      &:last-child {
        border-bottom: none;
      }
    }

    a {
      text-decoration: none;
      color: var(--muted);
      font-size: 1.2rem;
      font-weight: 600;
      transition: color 0.3s ease, padding-left 0.3s ease;
      display: block;
      font-family: "Playfair Display", serif;

      &:hover {
        color: var(--gold);
        padding-left: 8px;
      }
    }
  }
}

/* ==========================
   Estilos para páginas de autenticação (Login/Cadastro)
   ADICIONAR AO FINAL DO style.css
   ========================== */

.auth-container {
  max-width: 1000px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.auth-header {
  text-align: center;
  padding: 24px 0 32px 0;
}

.auth-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  flex: 1;
  padding: 0 24px;
}

.auth-box {
  background: var(--gradient-card);
  border-radius: var(--radius);
  padding: 40px 36px;
  border: var(--border-light);
}

.auth-title {
  margin: 0 0 8px 0;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: 700;
  text-align: center;
}

.auth-subtitle {
  margin: 0 0 32px 0;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-medium);
  color: var(--muted);
  font-size: 1rem;
  font-family: "Lora", Georgia, serif;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.03);
}

.form-group input::placeholder {
  color: rgba(191, 174, 162, 0.4);
}

.form-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gold);
}

.checkbox-label span {
  font-size: 0.9rem;
}

.checkbox-full {
  width: 100%;
  line-height: 1.5;
}

.link-secondary {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.link-secondary:hover {
  color: var(--gold);
}

.link-accent {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.link-accent:hover {
  color: var(--text-secondary);
}

.btn-full {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 1rem;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-divider span {
  background: var(--card);
  padding: 0 16px;
  color: rgba(191, 174, 162, 0.6);
  font-size: 0.85rem;
}

.auth-footer {
  text-align: center;
  margin-top: 8px;
}

.auth-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-quote {
  padding: 32px;
  background: var(--gradient-auth);
  border-radius: var(--radius);
  border: var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.auth-quote blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.auth-quote p {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.auth-quote cite {
  display: block;
  font-style: normal;
  font-size: 1rem;
  color: var(--gold);
  font-family: "Lora", Georgia, serif;
}

/* Responsividade para páginas de autenticação */
@media (max-width: 900px) {
  .auth-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .auth-quote {
    display: none;
  }

  .auth-box {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .auth-container {
    padding: 16px;
  }

  .auth-header {
    padding: 16px 0 24px 0;
  }

  .auth-main {
    padding: 0;
  }

  .auth-box {
    padding: 28px 20px;
  }

  .auth-title {
    font-size: 1.6rem;
  }

  .auth-subtitle {
    font-size: 0.95rem;
  }

  .form-extras {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================
   Estilos para o Painel do Usuário
   ADICIONAR AO FINAL DO style.css
   ========================== */

.dashboard-container {
  max-width: 1400px;
}

.dashboard-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 24px;
}

/* Sidebar de navegação */
.dashboard-sidebar {
  background: var(--gradient-card);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 100px;
  border: var(--border-light);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  transition: all var(--transition);
  font-size: 0.95rem;
  font-weight: 600;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  transform: translateX(4px);
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(212, 163, 115, 0.15), rgba(212, 163, 115, 0.05));
  color: var(--gold);
  border-left: 3px solid var(--gold);
}

.sidebar-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.sidebar-stats {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-stats h4 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
  font-size: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
}

.stat-label {
  color: var(--muted);
}

.stat-value {
  color: var(--gold);
  font-weight: 700;
}

/* Menu do usuário no header */
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.user-name {
  font-weight: 600;
}

.user-dropdown {
  position: absolute;
  top: 70px;
  right: 20px;
  background: var(--gradient-sidebar);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  z-index: 50;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: block;
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition);
  font-size: 0.95rem;
}

.user-dropdown a:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold);
  padding-left: 18px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 6px 0;
  padding: 0 !important;
}

.dropdown-divider:hover {
  background: rgba(255, 255, 255, 0.05);
  padding: 0 !important;
}

/* Conteúdo principal do dashboard */
.dashboard-content {
  background: var(--gradient-card);
  border-radius: var(--radius);
  padding: 28px;
  border: var(--border-light);
  min-height: 600px;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
}

.section-header h2 {
  margin: 0 0 6px 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Filtros */
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--muted);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

.filter-btn.active {
  background: linear-gradient(90deg, rgba(212, 163, 115, 0.2), rgba(212, 163, 115, 0.1));
  color: var(--gold);
  border-color: var(--border-gold);
}

/* Lista de textos */
.stories-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-item {
  background: var(--gradient-card);
  border: var(--border-medium);
  border-radius: 12px;
  padding: 20px;
  transition: all var(--transition);
}

.story-item:hover {
  border-color: rgba(212, 163, 115, 0.2);
  background: var(--gradient-card-hover);
}

.story-item.draft {
  opacity: 0.7;
  border-style: dashed;
}

.story-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.story-item-header h3 {
  margin: 0 0 6px 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;

  a {
    color: inherit;
    text-decoration: none;
  }
}

.story-item-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.published {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.draft {
  background: rgba(255, 152, 0, 0.15);
  color: #ffb74d;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.story-item-actions {
  display: flex;
  gap: 6px;
}

.btn-icon {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: var(--border-medium);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-icon:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.story-item-excerpt {
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.story-item-stats {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: var(--border-medium);
}

/* Grid de estatísticas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--gradient-card);
  border: var(--border-medium);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(212, 163, 115, 0.2);
  transform: translateY(-4px);
}

.stat-card-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 163, 115, 0.1);
  border-radius: 12px;
}

.stat-card-content h3 {
  margin: 0 0 4px 0;
  font-size: 2rem;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
}

.stat-card-content p {
  margin: 0 0 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-trend {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-block;
}

.stat-trend.positive {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
}

.stat-trend.neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* Placeholder de gráfico */
.chart-section {
  margin-top: 32px;
}

.chart-section h3 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}

.chart-placeholder {
  background: var(--gradient-auth);
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 80px 40px;
  text-align: center;
  color: var(--muted);
}

.chart-placeholder p {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}

/* ==========================
   Estilos para Área de Comentários
   ADICIONAR AO FINAL DO style.css
   ========================== */

.comentarios-v2 {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comentarios-v2 h2 {
  margin: 0 0 24px 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

/* Formulário de comentário */
.comentarios-v2 form {
  background: var(--gradient-card);
  border: var(--border-medium);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.comentarios-v2 textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-medium);
  color: var(--muted);
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color var(--transition), background var(--transition);
}

.comentarios-v2 textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.03);
}

.comentarios-v2 textarea::placeholder {
  color: rgba(191, 174, 162, 0.4);
}

.comentarios-v2 label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

.comentarios-v2 input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

.comentarios-v2 button {
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--gradient-gold);
  color: #170b0b;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-gold);
}

.comentarios-v2 button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 163, 115, 0.3);
}

.comentarios-v2 button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Comentários individuais */
.comentarios-v2 article {
  background: var(--gradient-card);
  border: var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  transition: all var(--transition);
}

.comentarios-v2 article:hover {
  border-color: rgba(212, 163, 115, 0.1);
  background: var(--gradient-card-hover);
}

/* Cabeçalho do comentário */
.comentarios-v2 header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.comentarios-v2 .link-foto {
  flex-shrink: 0;
}

.comentarios-v2 .foto {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 163, 115, 0.2);
}

.comentarios-v2 .foto.user-avatar {
  object-fit: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--gold), var(--accent));
}

/* Estilos do menu kebab para comentários */
.kebab {
    position: relative;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 8px;
}
.kebab::before {
    border: solid 1px lightgrey;
    background-color: white;
    color: #666;
    display: none;
    content: '\22EE';
    border-radius: 1em;
    width: 1em;
    height: 1em;
    line-height: 1em;
    text-align: center;
    font-weight: bold;
    font-family: Arial;
    font-size: 14px;
}
.kebab.visivel::before {
    display: inline-block;
}
.kebab .menu {
    display: none;
    position: absolute;
    padding: 0;
    background-color: #333;
    color: white;
    z-index: 1000;
}
.kebab.ativo .menu {
    display: inline-block;
}
.kebab .menu li {
    color: red;
    list-style: none;
    margin: 0;
    padding: 0;
}
.kebab .menu li a {
    text-decoration: none;
    font-family: Helvetica;
    padding: 1em;
    display: inline-block;
    color: white;
    font-weight: bold;
    font-size: small;
}

.comentarios-v2 .remetente {
  flex: 1;
  margin-top: 2px;
  position: relative;
}

.comentarios-v2 .remetente a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color var(--transition);
}

.comentarios-v2 .remetente a:hover {
  color: var(--gold);
}

.comentarios-v2 .data {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* Conteúdo do comentário */
.comentarios-v2 .conteudo {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.comentarios-v2 .conteudo p {
  margin: 0 0 12px 0;
}

.comentarios-v2 .conteudo p:last-child {
  margin-bottom: 0;
}

/* Ações do comentário */
.comentarios-v2 .acao {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.comentarios-v2 .thumb {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
}

.comentarios-v2 .thumb:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.comentarios-v2 .thumb.up:hover {
  border-color: rgba(76, 175, 80, 0.3);
  color: #81c784;
}

.comentarios-v2 .thumb.down:hover {
  border-color: rgba(244, 67, 54, 0.3);
  color: #e57373;
}

.comentarios-v2 .acao span {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.comentarios-v2 .acao button:not(.thumb) {
  padding: 6px 12px;
  border: 1px solid rgba(212, 163, 115, 0.2);
  background: rgba(212, 163, 115, 0.05);
  border-radius: 20px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  box-shadow: none;
}

.comentarios-v2 .acao button:not(.thumb):hover {
  background: rgba(212, 163, 115, 0.15);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* Formulário de resposta */
.comentarios-v2 .oculto {
  display: none;
}

.comentarios-v2 form[id^="form-resposta-"] {
  margin-top: 16px;
  margin-bottom: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(212, 163, 115, 0.1);
}

.comentarios-v2 form[id^="form-resposta-"] textarea {
  min-height: 80px;
  padding: 12px;
  font-size: 0.95rem;
}

.comentarios-v2 form[id^="form-resposta-"] button {
  margin-top: 12px;
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Respostas aninhadas */
.comentarios-v2 article article {
  margin-left: 44px;
  margin-top: 16px;
  border-left: 3px solid rgba(212, 163, 115, 0.1);
  padding-left: 16px;
  background: rgba(255, 255, 255, 0.005);
}

/* Link para ver todos os comentários */
.proxima-pagina {
  text-align: center;
  margin-top: 32px;
  padding: 20px;
  background: var(--gradient-auth);
  border: var(--border-gold);
  border-radius: var(--radius);
}

.proxima-pagina a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
}

.proxima-pagina a:hover {
  color: var(--text-secondary);
}

/* Responsividade dos comentários */
@media (max-width: 768px) {
  .comentarios-v2 {
    margin-top: 32px;
    padding-top: 24px;
  }

  .comentarios-v2 h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .comentarios-v2 form {
    padding: 20px;
    margin-bottom: 24px;
  }

  .comentarios-v2 textarea {
    min-height: 100px;
    padding: 14px;
  }

  .comentarios-v2 article {
    padding: 16px;
    margin-bottom: 12px;
  }

  .comentarios-v2 header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .comentarios-v2 .acao {
    gap: 8px;
  }

  .comentarios-v2 .thumb,
  .comentarios-v2 .acao button:not(.thumb) {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .comentarios-v2 article article {
    margin-left: 24px;
    padding-left: 12px;
  }
}

@media (max-width: 480px) {
  .comentarios-v2 {
    margin-top: 24px;
    padding-top: 20px;
  }

  .comentarios-v2 h2 {
    font-size: 1.3rem;
  }

  .comentarios-v2 form {
    padding: 16px;
  }

  .comentarios-v2 textarea {
    min-height: 80px;
    padding: 12px;
  }

  .comentarios-v2 article {
    padding: 14px;
  }

  .comentarios-v2 header {
    flex-direction: column;
    gap: 8px;
  }

  .comentarios-v2 .remetente {
    margin-top: 0;
  }

  .comentarios-v2 .acao {
    justify-content: center;
    gap: 6px;
  }

  .comentarios-v2 article article {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 12px;
    padding-top: 12px;
  }
}
  color: var(--text-primary);
}

/* Lista de favoritos */
.favorites-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.favorite-item {
  background: var(--gradient-card);
  border: var(--border-medium);
  border-radius: 12px;
  padding: 20px;
  transition: all var(--transition);
}

.favorite-item:hover {
  border-color: rgba(212, 163, 115, 0.2);
  background: var(--gradient-card-hover);
}

.favorite-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 12px;
}

.favorite-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}

.favorite-author {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.favorite-excerpt {
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.favorite-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.favorite-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Formulário de perfil */
.profile-form {
  max-width: 700px;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 2.5rem;
  font-family: "Playfair Display", serif;
}

.form-hint {
  margin: 6px 0 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-medium);
  color: var(--muted);
  font-size: 1rem;
  font-family: "Lora", Georgia, serif;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.03);
}

.form-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Seções de configurações */
.settings-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h3 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
}

.settings-form {
  max-width: 500px;
}

.settings-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.setting-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 10px;
  border: var(--border-medium);
  cursor: pointer;
  transition: all var(--transition);
}

.setting-option:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(212, 163, 115, 0.15);
}

.setting-option strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 1rem;
}

.setting-option p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.setting-option input[type="checkbox"] {
  width: 48px;
  height: 26px;
  cursor: pointer;
  accent-color: var(--gold);
  flex-shrink: 0;
}

/* Zona de perigo */
.danger-zone {
  background: rgba(176, 11, 56, 0.05);
  border: var(--border-accent);
  border-radius: 12px;
  padding: 24px;
}

.danger-zone h3 {
  color: #ff6b6b;
}

.danger-zone p {
  color: var(--muted);
  margin: 0 0 16px 0;
}

.btn-danger {
  background: linear-gradient(90deg, #c62828, #b71c1c) !important;
  color: #fff !important;
  border: none !important;
}

.btn-danger:hover {
  box-shadow: 0 8px 28px rgba(198, 40, 40, 0.3);
}

/* Responsividade do Dashboard */
@media (max-width: 1100px) {
  .dashboard-main {
    grid-template-columns: 240px 1fr;
  }

  .sidebar-stats {
    display: none;
  }
}

@media (max-width: 900px) {
  .dashboard-main {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    padding: 16px;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 0;
  }

  .sidebar-link {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .sidebar-link:hover {
    transform: none;
  }

  .sidebar-stats {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .user-menu-btn .user-name {
    display: none;
  }
}

@media (max-width: 640px) {
  .dashboard-main {
    gap: 16px;
    margin-top: 16px;
  }

  .dashboard-content {
    padding: 16px;
  }

  .dashboard-sidebar {
    padding: 12px;
    margin-bottom: 16px;
  }

  .sidebar-nav {
    flex-wrap: wrap;
    gap: 6px;
  }

  .sidebar-link {
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: auto;
  }

  .sidebar-icon {
    font-size: 1rem;
  }

  .story-item-header {
    flex-direction: column;
    gap: 12px;
  }

  .story-item-actions {
    width: 100%;
    justify-content: flex-end;
  }

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

  .stat-card {
    padding: 20px;
  }

  .story-item-stats {
    flex-direction: column;
    gap: 8px;
  }

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

  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .setting-option {
    padding: 12px;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .story-item {
    padding: 16px;
  }

  .story-item-header h3 {
    font-size: 1rem;
  }

  .story-item-meta {
    font-size: 0.8rem;
  }

  .btn-icon {
    padding: 8px;
    font-size: 0.9rem;
  }

  .empty-state {
    padding: 40px 16px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .dashboard-main {
    gap: 12px;
  }

  .dashboard-content {
    padding: 12px;
  }

  .sidebar-nav {
    gap: 4px;
  }

  .sidebar-link {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .story-item {
    padding: 12px;
  }

  .story-item-header {
    gap: 8px;
  }

  .story-item-actions {
    gap: 4px;
  }

  .btn-icon {
    padding: 6px;
    font-size: 0.85rem;
    min-width: 32px;
  }
}
    flex-direction: column;
    gap: 12px;
  }

  .setting-option input[type="checkbox"] {
    align-self: flex-start;
  }
}

/* ==========================
   Estilos para Perfil Público do Autor
   ADICIONAR AO FINAL DO stylepopular-stats {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Seção sobre o autor */
.about-author {
  max-width: 900px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-section:last-child {
  border-bottom: none;
}

.about-section h2 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.about-section h3 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
}

.about-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-text p {
  margin: 0 0 20px 0;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Influências e estilo */
.influences {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.influence-item {
  background: var(--gradient-card);
  border: var(--border-medium);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.influence-item strong {
  color: var(--gold);
  font-size: 0.95rem;
  min-width: 160px;
  flex-shrink: 0;
}

.influence-item span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Conquistas */
.achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.achievement-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gradient-auth);
  border: var(--border-gold);
  border-radius: 12px;
  padding: 20px;
  transition: all var(--transition);
}

.achievement-badge:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 163, 115, 0.3);
  box-shadow: 0 8px 24px rgba(212, 163, 115, 0.1);
}

.badge-icon {
  font-size: 2.5rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 163, 115, 0.15);
  border-radius: 12px;
  flex-shrink: 0;
}

.badge-info strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-family: "Playfair Display", serif;
}

.badge-info small {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Responsividade do perfil do autor */
@media (max-width: 1000px) {
  .author-profile-main {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .author-stats-card {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
    min-width: auto;
  }

  .author-stories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .author-cover {
    height: 150px;
  }

  .author-profile-main {
    grid-template-columns: 1fr;
    padding: 0 20px 24px 20px;
  }

  .author-avatar-wrapper {
    margin-top: -70px;
    text-align: center;
  }

  .author-avatar-large {
    width: 120px;
    height: 120px;
    font-size: 3rem;
    margin: 0 auto;
  }

  .author-info {
    text-align: center;
    padding-top: 12px;
  }

  .author-name {
    font-size: 1.8rem;
  }

  .author-bio {
    max-width: 100%;
    font-size: 1rem;
  }

  .author-meta {
    justify-content: center;
  }

  .author-actions {
    justify-content: center;
  }

  .author-stats-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
  }

  .author-stat strong {
    font-size: 1.5rem;
  }

  .author-tabs {
    padding: 0;
    gap: 4px;
  }

  .author-tab {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .tab-count {
    font-size: 0.8rem;
  }

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

  .content-header h2 {
    font-size: 1.5rem;
  }

  .author-stories-grid {
    gap: 16px;
  }

  .author-story-card {
    padding: 20px;
  }

  .story-card-header {
    flex-direction: column;
    gap: 6px;
  }

  .story-card-header h3 {
    font-size: 1.2rem;
  }

  .story-card-footer {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
  }

  .popular-story-item {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .popular-rank {
    align-self: flex-start;
  }

  .popular-stats {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
  }

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

  .influence-item {
    flex-direction: column;
    gap: 8px;
  }

  .influence-item strong {
    min-width: auto;
  }

  .pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .author-cover {
    height: 120px;
  }

  .author-avatar-large {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .author-name {
    font-size: 1.6rem;
  }

  .author-stats-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-stat strong {
    font-size: 1.3rem;
  }

  .author-stat span {
    font-size: 0.8rem;
  }

  .story-card-header h3 {
    font-size: 1.1rem;
  }

  .story-excerpt {
    font-size: 0.92rem;
  }

  .about-section h2 {
    font-size: 1.6rem;
  }

  .about-section h3 {
    font-size: 1.3rem;
  }

  .about-text {
    font-size: 1rem;
  }
}

css==========================*/ .author-container {
  max-width: 1200px;
}

/* Cabeçalho do perfil */
.author-profile-header {
  position: relative;
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gradient-card);
  border: var(--border-light);
}

.author-cover {
  height: 200px;
  background: linear-gradient(135deg, rgba(176, 11, 56, 0.3), rgba(212, 163, 115, 0.3)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><rect fill="%231a0d0d" width="1200" height="200"/><path fill="%23241216" opacity="0.3" d="M0,100 Q300,50 600,100 T1200,100 L1200,200 L0,200 Z"/></svg>');
  background-size: cover;
  background-position: center;
}

.author-profile-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  padding: 0 32px 32px 32px;
  align-items: start;
}

.author-avatar-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.author-avatar-large {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 3.5rem;
  font-family: "Playfair Display", serif;
  border: 5px solid var(--bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.author-info {
  padding-top: 20px;
}

.author-name {
  margin: 0 0 12px 0;
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: var(--text-primary);
  font-weight: 700;

  a {
    text-decoration: none;
    color: inherit;
  }

}

.author-bio {
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
}

.author-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.author-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.meta-icon {
  font-size: 1.1rem;
}

.author-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.author-stats-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: var(--gradient-auth);
  padding: 24px;
  border-radius: 12px;
  border: var(--border-gold);
  min-width: 200px;
  align-self: center;
}

.author-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-stat strong {
  font-size: 1.8rem;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  display: block;
  margin-bottom: 4px;
}

.stat-link {
  color: var(--gold);
  text-decoration: none;
  transition: transform var(--transition), color var(--transition);
}

.stat-link:hover {
  color: var(--text-secondary);
  transform: scale(1.05);
}

.author-stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Navegação por abas */
.author-tabs {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding: 0 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
}

.author-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: "Lora", Georgia, serif;
}

.author-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.author-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-count {
  background: rgba(212, 163, 115, 0.15);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Conteúdo das abas */
.author-content {
  margin-top: 32px;
  min-height: 500px;
}

.author-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.author-tab-content.active {
  display: block;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.content-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.sort-select {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-medium);
  color: var(--muted);
  font-family: "Lora", Georgia, serif;
  cursor: pointer;
  transition: all var(--transition);
}

.sort-select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Grid de histórias do autor */
.author-stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.author-story-card {
  background: var(--gradient-card);
  border: var(--border-medium);
  border-radius: 12px;
  padding: 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.author-story-card:hover {
  border-color: rgba(212, 163, 115, 0.25);
  background: var(--gradient-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.story-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.story-card-header h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  flex: 1;
}

.story-card-header h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.story-card-header h3 a:hover {
  color: var(--gold);
}

.story-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.story-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card-footer {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  border-top: var(--border-medium);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.story-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.story-read-time {
  margin-left: auto;
}

/* Paginação */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.pagination-info {
  color: var(--muted);
  font-size: 0.95rem;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--gradient-card);
  border: var(--border-light);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.pagination-link:hover {
  background: var(--gradient-card-hover);
  color: var(--gold);
  transform: translateY(-1px);
}

.pagination-current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--accent);
  border: var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Lista de textos populares */
.popular-stories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popular-story-item {
  display: flex;
  gap: 20px;
  background: var(--gradient-card);
  border: var(--border-medium);
  border-radius: 12px;
  padding: 24px;
  transition: all var(--transition);
}

.popular-story-item:hover {
  border-color: rgba(212, 163, 115, 0.25);
  background: var(--gradient-card-hover);
  transform: translateX(4px);
}

.popular-rank {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), rgba(212, 163, 115, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg);
  font-family: "Playfair Display", serif;
  flex-shrink: 0;
}

.popular-story-content {
  flex: 1;
}

.popular-story-content h3 {
  margin: 0 0 8px 0;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
}

.popular-story-content h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.popular-story-content h3 a:hover {
  color: var(--gold);
}

.popular-story-content p {
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}


.stories-archive-container {
  max-width: 1200px;
}

.author-stories-collection {
  margin-top: 32px;
}

.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--gradient-card);
  border-radius: var(--radius);
  border: var(--border-light);
}

.author-mini-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.author-avatar-mini {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8a0a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  flex-shrink: 0;
  border: 2px solid rgba(212, 163, 115, 0.2);
}

.author-mini-info h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.author-mini-info h1 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.author-mini-info h1 a:hover {
  color: var(--gold);
}

.collection-meta {
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.collection-meta .separator {
  opacity: 0.5;
}

.collection-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.collection-controls label {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .collection-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .collection-controls {
    width: 100%;
  }

  .collection-controls label {
    flex: 1;
  }
}

/* Formulário de História */
.story-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 224, 201, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 200px;
  line-height: 1.6;
}

.form-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 0;
}

.word-count {
  text-align: right;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}

.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-terms {
  margin: 24px 0;
  padding: 16px;
  background: var(--surface);
  border-radius: 8px;
  border-left: 4px solid var(--gold);
}

.form-terms p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-terms a {
  color: var(--gold);
  text-decoration: none;
}

.form-terms a:hover {
  text-decoration: underline;
}

.form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.auto-save-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

/* Alertas */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  border-left: 4px solid;
}

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  border-left-color: #4CAF50;
  color: #2E7D32;
}

.alert-error {
  background: rgba(244, 67, 54, 0.1);
  border-left-color: #F44336;
  color: #C62828;
}

.alert-info {
  background: rgba(33, 150, 243, 0.1);
  border-left-color: #2196F3;
  color: #1565C0;
}

.alert-warning {
  background: rgba(255, 152, 0, 0.1);
  border-left-color: #FF9800;
  color: #E65100;
}

.alert p {
  margin: 0;
  line-height: 1.5;
}

/* Responsividade do formulário */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
    text-align: center;
  }

  .auto-save-indicator {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
}
/* ==========================
   Estilos baseados em autenticação
   ========================== */

/* Menu para usuários não autenticados */
.menu-login-only,
.menu-cadastro-only {
    display: block;
}

.menu-auth-only {
    display: none;
}

/* Quando usuário está autenticado */
.cdc-authenticated .menu-login-only,
.cdc-authenticated .menu-cadastro-only {
    display: none;
}

.cdc-authenticated .menu-auth-only {
    display: block;
}


/* ==========================
   Estilos baseados em autenticação (abordagem original)
   ========================== */

body.cdc-authenticated .cdc-authenticated {
    display: block !important;
}

body.cdc-authenticated .cdc-not-authenticated {
    display: none !important;
}

body.cdc-not-authenticated .cdc-not-authenticated {
    display: block !important;
}

body.cdc-not-authenticated .cdc-authenticated {
    display: none !important;
}

body.cdc-vip .cdc-vip {
    display: block !important;
}

body.cdc-vip .cdc-not-vip {
    display: none !important;
}

body.cdc-not-vip .cdc-not-vip {
    display: block !important;
}

body.cdc-not-vip .cdc-vip {
    display: none !important;
}
