/* =============================================
   VIRAMENTE.COM — Blog Colaborativo
   CSS Global · Paleta Verde Pastel + Escuro
   ============================================= */

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

:root {
  /* Verde pastel + escuros */
  --green-50:  #F0FAF4;
  --green-100: #D6F0E0;
  --green-200: #AEDDC4;
  --green-300: #7EC9A7;
  --green-400: #4FB489;
  --green-500: #2A9E6E;
  --green-600: #1F7D55;
  --green-700: #165C3D;
  --green-800: #0E3D28;
  --green-900: #081F14;

  --primary:       var(--green-500);
  --primary-dark:  var(--green-600);
  --primary-light: var(--green-50);
  --primary-mid:   var(--green-100);

  --dark:     #111A14;
  --dark-2:   #1A2720;
  --dark-3:   #243329;

  --bg:       #F7FAF8;
  --bg-card:  #FFFFFF;
  --text:     #1A2720;
  --text-muted: #4A6155;
  --text-light: #7A9E8C;
  --border:   #D8EBE1;
  --border-light: #EDF6F1;

  --font-body:    'Inter', sans-serif;
  --font-content: 'Lora', serif;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(10,40,25,0.07);
  --shadow:    0 4px 16px rgba(10,40,25,0.09);
  --shadow-lg: 0 10px 36px rgba(10,40,25,0.13);

  --transition: 0.18s ease;
  --nav-height: 60px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* =============================================
   NAVBAR — minimalista
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(247, 250, 248, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.navbar__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo ultra-limpo */
.navbar__logo {
  display: flex;
  align-items: baseline;
  gap: 1px;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar__logo em {
  color: var(--green-500);
  font-style: normal;
}

.navbar__logo sup {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0;
  vertical-align: super;
  margin-left: 1px;
}

.navbar__search {
  flex: 1;
  max-width: 380px;
  margin-left: auto;
  position: relative;
}

.navbar__search input {
  width: 100%;
  padding: 7px 14px 7px 36px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--text);
  transition: var(--transition);
}

.navbar__search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-mid);
}

.navbar__search input::placeholder { color: var(--text-light); }

.navbar__search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.8rem;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.navbar__links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--primary-dark);
  background: var(--primary-mid);
}

.navbar__links .btn-admin {
  background: var(--dark);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
}

.navbar__links .btn-admin:hover {
  background: var(--dark-2);
  color: white;
}

.navbar__links .btn-collab {
  background: var(--primary);
  color: white !important;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
}

.navbar__links .btn-collab:hover {
  background: var(--primary-dark);
  color: white !important;
}

/* Área do usuário logado no navbar */
.navbar__user-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* =============================================
   INSTAGRAM WIDGET — Sidebar
   ============================================= */

/* Container do widget dentro da sidebar */
.sidebar-widget--instagram {
  background: var(--dark) !important;
  border-color: var(--dark-3) !important;
  padding: 0 !important;
  overflow: hidden;
}

/* Header do widget */
.ig-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--dark-3);
}

.ig-widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.ig-widget-title i {
  font-size: 1rem;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ig-widget-handle {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.01em;
  transition: var(--transition);
}

.ig-widget-handle:hover { color: rgba(255,255,255,0.85); }

/* Loading */
.ig-widget-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
}

/* Grid 3×2 de miniaturas */
.ig-widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--dark-3);
}

.ig-thumb {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.ig-thumb:hover { opacity: 0.78; }

.ig-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholders coloridos (quando sem imagem real) */
.ig-thumb--1 { background: linear-gradient(135deg, #0e2a1c 0%, #1f7d55 100%); }
.ig-thumb--2 { background: linear-gradient(135deg, #1e0a2e 0%, #7c2d8e 100%); }
.ig-thumb--3 { background: linear-gradient(135deg, #2e1a0a 0%, #9e5a1a 100%); }
.ig-thumb--4 { background: linear-gradient(135deg, #0a1e2e 0%, #1a5a8e 100%); }
.ig-thumb--5 { background: linear-gradient(135deg, #2e0a1e 0%, #8e1a4e 100%); }
.ig-thumb--6 { background: linear-gradient(135deg, #1a2e0a 0%, #5a8e1a 100%); }

.ig-thumb__icon {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.22);
}

/* Overlay de hover com ícone */
.ig-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.15s ease;
}

.ig-thumb:hover::after { background: rgba(0,0,0,0.28); }

/* Texto e CTA abaixo do grid */
.ig-widget-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  padding: 12px 16px 4px;
  margin: 0;
}

.ig-widget-follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 10px 16px 16px;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.ig-widget-follow:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Botão legado (mantido por compatibilidade) */
.btn--instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  margin-top: 8px;
}

.btn--instagram:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.35);
}

/* =============================================
   INSTAGRAM WIDGET — visual de perfil
   ============================================= */
.ig-widget-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--dark-3);
}

.ig-widget-profile__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.ig-widget-profile__name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.ig-widget-profile__desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.45;
}

.ig-widget-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.71rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  border-bottom: 1px solid var(--dark-3);
}

.ig-widget-notice i {
  margin-top: 1px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.25);
}

/* =============================================
   PARCEIROS & PATROCINADORES
   ============================================= */
.partners-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 24px;
}

.partners-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.partners-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.partners-section__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.partners-section__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Label de grupo (Patrocinadores / Parceiros) */
.partners-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.partners-label::before,
.partners-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: var(--border);
}

.partners-label::before { left: 0; }
.partners-label::after  { right: 0; }

/* Linha de patrocinadores (destaques grandes) */
.sponsors-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

/* Linha de parceiros (menores) */
.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Card base */
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  min-width: 120px;
  max-width: 200px;
}

.partner-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Patrocinador em destaque — card maior */
.partner-card--featured {
  padding: 20px 36px;
  min-width: 160px;
  max-width: 260px;
  border-width: 2px;
  border-color: var(--border);
}

.partner-card--featured:hover {
  border-color: var(--primary);
}

.partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.partner-card--featured .partner-card__logo { min-height: 56px; }
.partner-card:not(.partner-card--featured) .partner-card__logo { min-height: 36px; }

.partner-card__logo img {
  max-height: 52px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s ease;
}

.partner-card--featured .partner-card__logo img { max-height: 64px; max-width: 180px; }

.partner-card:hover .partner-card__logo img { filter: grayscale(0%); }

.partner-card__name-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  min-height: 36px;
}

.partner-card--featured .partner-card__name-fallback {
  font-size: 1.05rem;
  color: var(--text);
  min-height: 52px;
}

.partner-card__desc {
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.4;
  max-width: 160px;
}

/* =============================================
   NAVBAR TOGGLE
   ============================================= */
.navbar__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  margin-left: auto;
}

.navbar__menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HERO — minimalista
   ============================================= */
.hero {
  background: var(--dark);
  padding: 56px 24px 52px;
  text-align: left;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__left {}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-400);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero h1 span {
  color: var(--green-300);
}

.hero__desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  line-height: 1.7;
}

.hero__right {
  display: flex;
  gap: 40px;
  padding-bottom: 4px;
  flex-shrink: 0;
}

.hero__stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-300);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero__stat span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
  display: block;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: white;
}
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn--dark {
  background: var(--dark);
  color: white;
}
.btn--dark:hover { background: var(--dark-2); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: white;
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }

.btn--outline-dark {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--outline-dark:hover { border-color: var(--primary); color: var(--primary); }

.btn--sm { padding: 5px 14px; font-size: 0.78rem; }

.btn--danger { background: #DC2626; color: white; }
.btn--danger:hover { opacity: 0.9; }

.btn--success { background: var(--green-500); color: white; }

.btn--ghost {
  background: var(--border-light);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.btn--ghost:hover { background: var(--border); color: var(--text); }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 18px;
  background: var(--primary);
  border-radius: 3px;
}

/* =============================================
   FILTRO CATEGORIAS
   ============================================= */
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text-muted);
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =============================================
   POST CARD
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.posts-grid--featured {
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}

.post-card__cover {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--green-50);
  position: relative;
}

.post-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card__cover img { transform: scale(1.04); }

.post-card__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  font-size: 2rem;
  color: var(--green-300);
}

.post-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--dark);
  color: var(--green-300);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 50px;
}

.post-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-card__category span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.post-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
  transition: var(--transition);
}

.post-card:hover .post-card__title { color: var(--primary-dark); }

.post-card__excerpt {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.post-card__author {
  display: flex;
  align-items: center;
  gap: 7px;
}

.post-card__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.post-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.post-card__author-name {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-muted);
}

.post-card__date {
  font-size: 0.72rem;
  color: var(--text-light);
}

.post-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.post-card__meta span {
  font-size: 0.73rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 3px;
}

.post-card--featured { grid-row: span 2; }
.post-card--featured .post-card__cover { aspect-ratio: 4/3; }
.post-card--featured .post-card__title { font-size: 1.2rem; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-widget__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

/* =============================================
   TAGS
   ============================================= */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-mid);
  color: var(--green-700);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--green-200);
}

.tag:hover { background: var(--primary); color: white; border-color: var(--primary); }
.tag--sm { padding: 2px 7px; font-size: 0.7rem; }
.tags-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* =============================================
   AUTHOR CARD (sidebar)
   ============================================= */
.author-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.author-card:hover { background: var(--border-light); }

.author-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.author-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card__info { flex: 1; min-width: 0; }
.author-card__name { font-weight: 700; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.author-card__role { font-size: 0.74rem; color: var(--text-muted); }

.author-card__badge {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  white-space: nowrap;
}

.author-card__badge--admin     { background: #FEE2E2; color: #B91C1C; }
.author-card__badge--editor    { background: #FEF9C3; color: #A16207; }
.author-card__badge--escritor  { background: var(--green-100); color: var(--green-700); }
.author-card__badge--colaborador { background: var(--primary-mid); color: var(--green-700); }

/* =============================================
   PAGINAÇÃO
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 36px;
}

.pagination button {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); border-color: var(--primary); color: white; }
.pagination button:disabled { opacity: 0.35; cursor: default; }

/* =============================================
   UPLOAD ZONE — zona de upload de imagem
   ============================================= */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  background: var(--bg);
  user-select: none;
}

.upload-zone:hover,
.upload-zone.drag {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone.loading {
  border-color: var(--primary);
  opacity: 0.7;
  pointer-events: none;
}

.upload-zone.done {
  border-color: var(--green-500);
  background: var(--green-50);
}

.upload-zone.error {
  border-color: #dc2626;
  background: #fef2f2;
}

.upload-zone__icon {
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1;
}

.upload-zone.done .upload-zone__icon { color: var(--green-500); }
.upload-zone.error .upload-zone__icon { color: #dc2626; }

.upload-zone__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.upload-zone__hint {
  font-size: 0.72rem;
  color: var(--text-light);
}

.upload-zone__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Botões dentro da upload zone */
.uz-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease;
  line-height: 1.3;
}
.uz-btn:hover { transform: translateY(-1px); }
.uz-btn:active { transform: translateY(0); }

.uz-btn--upload {
  background: var(--primary);
  color: #fff;
}
.uz-btn--upload:hover { background: var(--primary-dark, #1f7d55); }

.uz-btn--gallery {
  background: var(--dark, #1a2720);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.uz-btn--gallery:hover {
  background: var(--primary);
  color: #fff;
}

.upload-zone__status {
  margin-top: 8px;
  min-height: 20px;
  font-size: 0.78rem;
  text-align: center;
}

.upload-status--loading { color: var(--primary); }
.upload-status--ok      { color: var(--green-600); }
.upload-status--error   { color: #dc2626; }

/* Preview de imagem de perfil */
.avatar-upload-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  display: none;
  margin: 10px auto 0;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: white;
  padding: 52px 24px 28px;
  margin-top: 72px;
}

.footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer__brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.footer__brand-name em {
  color: var(--green-300);
  font-style: normal;
}

.footer__brand p {
  font-size: 0.84rem;
  opacity: 0.55;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 260px;
}

.footer__social { display: flex; gap: 8px; }

.footer__social a {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer__social a:hover { background: var(--primary); }

.footer__col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 9px; }

.footer__col ul li a {
  font-size: 0.84rem;
  opacity: 0.6;
  transition: var(--transition);
}

.footer__col ul li a:hover { opacity: 1; color: var(--green-300); }

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__bottom p { font-size: 0.78rem; opacity: 0.4; }

/* =============================================
   LOADING / SKELETON
   ============================================= */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px;
}

.loader__spin {
  width: 30px;
  height: 30px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

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

/* =============================================
   TOAST
   ============================================= */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toast {
  background: var(--dark);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease;
  max-width: 320px;
}

.toast--success { border-left: 3px solid var(--green-400); }
.toast--error   { border-left: 3px solid #EF4444; }
.toast--info    { border-left: 3px solid #60A5FA; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 18, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.18s ease;
}

.modal-overlay.hidden { display: none; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in 0.22s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title { font-size: 1rem; font-weight: 700; }

.modal__close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.9rem;
}

.modal__close:hover { background: var(--border); color: var(--text); }
.modal__body    { padding: 24px; }
.modal__footer  { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* =============================================
   FORMULÁRIOS
   ============================================= */
.form-group { margin-bottom: 18px; }

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

.form-group label span { color: #EF4444; margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-mid);
}

textarea.form-control { resize: vertical; min-height: 100px; }

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

.form-hint { font-size: 0.74rem; color: var(--text-light); margin-top: 3px; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A6155' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
  text-align: center;
  padding: 52px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  opacity: 0.2;
  margin-bottom: 14px;
  display: block;
  color: var(--primary);
}

.empty-state h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.empty-state p  { font-size: 0.84rem; opacity: 0.7; margin-bottom: 16px; }

/* =============================================
   BADGES / STATUS
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge--published { background: var(--green-100); color: var(--green-700); }
.badge--draft     { background: #FEF9C3; color: #A16207; }
.badge--archived  { background: #F3F4F6; color: #6B7280; }

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,26,18,0.5);
  z-index: 999;
}

.mobile-menu.open { display: block; }

.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 260px;
  background: var(--bg-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu__close {
  align-self: flex-end;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
}

.mobile-menu__panel a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
}

.mobile-menu__panel a:hover {
  background: var(--primary-mid);
  color: var(--primary-dark);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .posts-grid--featured { grid-template-columns: 1fr; }
  .post-card--featured  { grid-row: span 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar__search { display: none; }
  .navbar__links  { display: none; }
  .navbar__menu-toggle { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero { padding: 40px 24px 36px; }
  .hero__right { gap: 24px; }
}

@media (max-width: 480px) {
  .container, .container--narrow { padding: 0 16px; }
}
