/* =============================================
   Blog & Admin — Tema unificado com o site
   Usa as mesmas variáveis e fontes do styles.css
   ============================================= */

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

:root {
  --bg: #f7f3ee;
  --surface: #fffaf4;
  --surface-strong: #efe5d9;
  --text: #27302e;
  --muted: #6c716f;
  --primary: #38594f;
  --primary-dark: #243d36;
  --accent: #b98c60;
  --line: rgba(39, 48, 46, 0.14);
  --shadow: 0 22px 60px rgba(36, 61, 54, 0.16);
  --shadow-sm: 0 2px 8px rgba(36, 61, 54, 0.08);
  --radius: 8px;
  --success: #16a34a;
  --danger: #dc2626;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

/* =============================================
   HEADER / NAVBAR — igual ao site principal
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(18px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(56, 89, 79, 0.24);
  border-radius: 50%;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 24px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu > a,
.dropdown-trigger {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
}

.nav-menu > a:hover,
.dropdown-trigger:hover {
  background: rgba(56, 89, 79, 0.1);
}

.nav-menu > a.active {
  color: var(--primary);
  background: rgba(56, 89, 79, 0.08);
}

.dropdown {
  position: relative;
}

.dropdown-trigger {
  gap: 7px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: 180ms ease;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  padding: 10px 12px;
}

.dropdown-menu a:hover {
  background: rgba(185, 140, 96, 0.16);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--primary);
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 26px 0 34px;
}

.site-footer p {
  margin: 0;
}

/* =============================================
   BUTTONS
   ============================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  border-color: rgba(56, 89, 79, 0.28);
  color: var(--primary);
  background: transparent;
}

.button.secondary:hover {
  background: rgba(56, 89, 79, 0.08);
}

.button.danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.button.danger:hover {
  background: #b91c1c;
}

.button.small {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
}

/* =============================================
   ALERTS
   ============================================= */

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert.info {
  background: rgba(56, 89, 79, 0.08);
  color: var(--primary);
  border: 1px solid rgba(56, 89, 79, 0.2);
}

/* =============================================
   BLOG — LISTAGEM PÚBLICA
   ============================================= */

.blog-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0 4rem;
  text-align: center;
}

.blog-hero .eyebrow {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.blog-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: white;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.blog-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.blog-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 4rem 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.post-card:hover {
  border-color: rgba(56, 89, 79, 0.24);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.post-card-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, var(--surface-strong) 0%, rgba(185, 140, 96, 0.2) 100%);
  display: block;
}

.post-card-image.placeholder {
  background: linear-gradient(135deg, var(--surface-strong) 0%, rgba(185, 140, 96, 0.2) 100%);
}

.post-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.3;
}

.post-card-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.5;
}

.post-card-meta {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-card-meta::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

/* =============================================
   POST INDIVIDUAL — Estilo Substack
   ============================================= */

.post-wrapper {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.post-eyebrow {
  text-align: center;
  margin-bottom: 2rem;
}

.post-eyebrow a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-eyebrow a:hover {
  color: var(--primary);
}

.post-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  text-align: center;
  margin-bottom: 1rem;
}

.post-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 2rem;
  font-style: italic;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.post-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  flex-shrink: 0;
}

.post-date {
  color: var(--muted);
  font-size: 0.88rem;
}

.post-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  margin: 0 0 2.5rem;
  display: block;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}

.post-content p {
  margin-bottom: 1.6rem;
}

.post-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  line-height: 1.2;
}

.post-content h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem auto;
  display: block;
}

.post-content .img-caption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: -1.2rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(185, 140, 96, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}

.post-content blockquote p {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  line-height: 1.7;
}

.post-content blockquote footer {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem auto;
  width: 60px;
}

/* =============================================
   BOTÕES DE COMPARTILHAR
   ============================================= */

.share-section {
  margin: 3rem 0 2rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.share-section h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

.share-btn.whatsapp:hover {
  background: #1da851;
}

.share-btn.twitter {
  background: #000;
  color: white;
}

.share-btn.twitter:hover {
  background: #333;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.facebook:hover {
  background: #0d65d9;
}

.share-btn.linkedin {
  background: #0077b5;
  color: white;
}

.share-btn.linkedin:hover {
  background: #005e8f;
}

.share-btn.copy {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--line);
}

.share-btn.copy:hover {
  background: var(--line);
}

.share-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* =============================================
   NAVEGAÇÃO DO POST
   ============================================= */

.post-nav {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* =============================================
   ADMIN — PAINEL
   ============================================= */

.admin-page {
  min-height: 100vh;
  background: var(--bg);
}

.admin-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2.5rem 0;
}

.admin-hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  color: white;
  margin: 0;
}

.admin-hero p {
  color: rgba(255,255,255,0.75);
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.admin-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

/* Stats cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.stat-card .stat-value {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* Posts table */
.posts-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.posts-table {
  width: 100%;
  border-collapse: collapse;
}

.posts-table th {
  background: var(--surface-strong);
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.posts-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.posts-table tr:last-child td {
  border-bottom: none;
}

.posts-table tr:hover td {
  background: rgba(56, 89, 79, 0.03);
}

.post-title-cell strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.post-title-cell small {
  color: var(--muted);
  font-size: 0.8rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-published {
  background: #dcfce7;
  color: #166534;
}

.status-draft {
  background: #fef3c7;
  color: #92400e;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state h3 {
  font-family: "Playfair Display", serif;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* =============================================
   ADMIN — EDITOR DE ARTIGO
   ============================================= */

.editor-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

.editor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.editor-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.editor-sidebar-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 89, 79, 0.12);
}

.form-input.title-input {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem;
  min-height: 60px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Cover image preview */
.cover-preview {
  position: relative;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.cover-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Block editor */
.block-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.block-editor-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--text);
}

.block-add-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.block-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.block-add-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(56, 89, 79, 0.06);
}

.blocks-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.block-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.block-item:hover {
  border-color: rgba(56, 89, 79, 0.3);
}

.block-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
}

.block-type-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.block-handle {
  cursor: grab;
  color: var(--muted);
  font-size: 1rem;
  padding: 0 0.25rem;
}

.block-item-body {
  padding: 0.9rem;
}

/* Textarea do bloco de texto — GRANDE */
.block-textarea {
  width: 100%;
  min-height: 200px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.2s;
}

.block-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 89, 79, 0.1);
}

.block-textarea.large {
  min-height: 320px;
}

/* Toolbar de formatação */
.format-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0;
  padding: 0.4rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  border-bottom: none;
}

.format-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}

.format-btn:hover {
  background: rgba(56, 89, 79, 0.12);
  color: var(--primary);
}

.format-separator {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 0.25rem;
  align-self: center;
}

.block-textarea.with-toolbar {
  border-radius: 0 0 6px 6px;
  border-top: none;
}

/* Radio status */
.status-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.status-radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.status-radio:hover {
  border-color: var(--primary);
  background: rgba(56, 89, 79, 0.04);
}

.status-radio input[type="radio"] {
  accent-color: var(--primary);
}

.status-radio.selected {
  border-color: var(--primary);
  background: rgba(56, 89, 79, 0.06);
  color: var(--primary);
  font-weight: 600;
}

/* Meta info */
.meta-info {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}

/* =============================================
   ADMIN — LOGIN
   ============================================= */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 2rem;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.login-card .brand-mark {
  margin: 0 auto 1.5rem;
}

.login-card h1 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-card .subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* =============================================
   RESPONSIVO
   ============================================= */

@media (max-width: 860px) {
  .navbar {
    width: min(100% - 28px, 1180px);
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 10px;
    z-index: 30;
  }

  .nav-menu.open {
    display: grid;
  }

  .nav-menu > a,
  .dropdown-trigger {
    justify-content: space-between;
    width: 100%;
    border-radius: 6px;
    text-align: left;
  }

  .dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .dropdown.open .dropdown-menu {
    display: grid;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-sidebar-card {
    position: static;
  }

  .admin-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .post-meta-bar {
    gap: 0.5rem;
  }

  .share-buttons {
    gap: 0.5rem;
  }

  .share-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
  }

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