/* ==========================================================================
   DESIGN SYSTEM - A OBRA DO CALIXTÃO
   Estética Sertaneja, Nordestina, Leitura de Livro Digital Vivo
   ========================================================================== */

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

:root {
  /* Cores Principais inspiradas no Sertão Alagoano */
  --bg-book: #FDFBF7;
  --bg-book-subtle: #F4EFE6;
  --bg-sidebar: #1F4E5B;
  --bg-sidebar-hover: #296474;
  --text-main: #2C2520;
  --text-muted: #6E6359;
  --text-light: #FDFBF7;
  
  /* Cores de Destaque */
  --accent-sertao: #E28743;
  --accent-sertao-hover: #D0722C;
  --accent-header: #1F4E5B;
  --correction-red: #D32F2F;
  --correction-bg: rgba(211, 47, 47, 0.08);
  --border-color: #E6DFD3;
  --shadow-soft: 0 4px 20px rgba(44, 37, 32, 0.08);
  --shadow-strong: 0 12px 40px rgba(31, 78, 91, 0.2);

  /* Tipografia */
  --font-heading: 'Playfair Display', 'Merriweather', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout */
  --header-height: 70px;
  --sidebar-width: 320px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-book);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: var(--font-ui);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, select, textarea {
  font-family: var(--font-ui);
}

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

a:hover {
  color: var(--accent-sertao-hover);
}

/* Scrollbar Customizada Estilo Papel Antigo */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-book-subtle);
}

::-webkit-scrollbar-thumb {
  background: #D9CFC1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C4B7A5;
}

/* Utilitários Visuais */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.btn-primary {
  background: var(--accent-sertao);
  color: #FFF;
}

.btn-primary:hover {
  background: var(--accent-sertao-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(226, 135, 67, 0.35);
}

.btn-secondary {
  background: var(--bg-sidebar);
  color: #FFF;
}

.btn-secondary:hover {
  background: var(--bg-sidebar-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--accent-header);
  color: var(--accent-header);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-header);
  color: #FFF;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-sertao {
  background: rgba(226, 135, 67, 0.15);
  color: var(--accent-sertao-hover);
}
