/* ===== VARIÁVEIS DE DESIGN ===== */
:root {
  /* Cores principais - Tema Rosa/Roxo moderno */
  --primary: #E91E63;
  --primary-dark: #C2185B;
  --primary-light: #F8BBD9;
  --secondary: #9C27B0;
  --accent: #7C4DFF;
  
  /* Gradientes */
  --gradient-main: linear-gradient(135deg, #E91E63 0%, #9C27B0 100%);
  --gradient-soft: linear-gradient(135deg, #FCE4EC 0%, #F3E5F5 50%, #EDE7F6 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  
  /* Cores neutras */
  --text-dark: #1A1A2E;
  --text-medium: #4A4A68;
  --text-light: #7A7A9D;
  --bg-main: #FAFBFF;
  --bg-card: #FFFFFF;
  --border-light: rgba(0,0,0,0.06);
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 4px 30px rgba(233,30,99,0.15);
  
  /* Espaçamentos */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Navegação */
  --toc-height: 80px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--toc-height) + 20px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-medium);
  background: var(--bg-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER HERO ===== */
.site-header {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 24px;
  background: var(--gradient-main);
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Efeito de partículas/bolhas */
.site-header::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.05); }
}

.brand {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 32px;
}

.title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

.actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn:active {
  transform: translateY(0);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  padding: 4px;
  border-radius: 50px;
}

.lang-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 50px;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

.lang-btn.active {
  background: white;
  color: var(--primary);
}

/* ===== NAVEGAÇÃO TOC ===== */
.toc {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
}

.toc h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.toc ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

.toc li {
  padding: 0;
  margin: 0;
}

.toc li::before {
  display: none;
}

.toc a {
  display: block;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.toc a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding: 48px 0 80px;
}

/* ===== SEÇÕES ===== */
section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  scroll-margin-top: calc(var(--toc-height) + 24px);
}

section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Títulos das seções */
section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

section h2::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--gradient-main);
  border-radius: 4px;
}

/* ===== TIPOGRAFIA ===== */
p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 16px;
}

strong {
  color: var(--text-dark);
  font-weight: 600;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== LISTAS ===== */
ul, ol {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}

li {
  position: relative;
  padding: 12px 16px 12px 32px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FAFBFF 0%, #F5F5FA 100%);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: all 0.2s ease;
}

li:hover {
  background: linear-gradient(135deg, #FCE4EC 0%, #F3E5F5 100%);
}

li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--gradient-main);
  border-radius: 50%;
}

/* ===== CALLOUT / RESUMO ===== */
.callout {
  background: linear-gradient(135deg, #FCE4EC 0%, #F3E5F5 100%);
  border: none;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 24px 0;
}

.callout h2 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

.callout h2::before {
  display: none;
}

.callout ul {
  margin: 0;
}

.callout li {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(233,30,99,0.1);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--gradient-main);
  color: white;
  text-align: center;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.site-footer p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin: 0;
}

/* Botão copiar email */
#copy-email {
  margin-top: 16px;
  background: white;
  color: var(--primary);
  border: none;
  padding: 12px 28px;
  font-weight: 600;
}

#copy-email:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .site-header {
    min-height: 280px;
    padding: 48px 20px;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .badge {
    font-size: 0.8rem;
    padding: 8px 18px;
  }
  
  .actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .toc {
    padding: 12px 16px;
  }
  
  .toc h2 {
    display: none;
  }
  
  .toc ol {
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  
  .toc a {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .container {
    padding: 0 16px;
  }
  
  main {
    padding: 32px 0 60px;
  }
  
  section {
    padding: 28px 24px;
    border-radius: var(--radius-md);
  }
  
  section h2 {
    font-size: 1.25rem;
  }
  
  li {
    padding: 10px 12px 10px 28px;
    font-size: 0.9rem;
  }
  
  li::before {
    left: 10px;
    top: 16px;
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 240px;
    padding: 40px 16px;
  }
  
  .title {
    font-size: 1.75rem;
  }
  
  section {
    padding: 24px 20px;
    margin-bottom: 16px;
  }
  
  section h2 {
    font-size: 1.15rem;
    gap: 8px;
  }
  
  section h2::before {
    width: 3px;
    height: 22px;
  }
  
  p {
    font-size: 0.95rem;
  }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.5s ease-out;
}

/* ===== DARK MODE (opcional) ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #0F0F1A;
    --bg-card: #1A1A2E;
    --text-dark: #FFFFFF;
    --text-medium: #B8B8D0;
    --text-light: #7A7A9D;
    --border-light: rgba(255,255,255,0.08);
  }
  
  .toc {
    background: rgba(26,26,46,0.95);
  }
  
  li {
    background: linear-gradient(135deg, #1F1F35 0%, #252540 100%);
  }
  
  li:hover {
    background: linear-gradient(135deg, #2A1F35 0%, #352540 100%);
  }
  
  .callout {
    background: linear-gradient(135deg, #2A1F35 0%, #352540 100%);
  }
  
  .callout li {
    background: rgba(255,255,255,0.05);
    border-color: rgba(233,30,99,0.2);
  }
}
