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

:root {
  --radius: 0.5rem;
  --page: #f6f3eb;
  --background: #ffffff;
  --foreground: #1e293b;
  --card: #ffffff;
  --card-foreground: #1e293b;
  --brand: #20458d;
  --brand-foreground: #ffffff;
  --brand-accent: #15803d;
  --primary: #20458d;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --input: #cbd5e1;
  --ring: #3b82f6;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--page);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--brand);
}

body {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(226, 219, 203, 0.4) 0 1px,
    transparent 1px 8px
  );
}

/* Container Principal Centrado (1200px) */
.bv-app-container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 60px -20px rgba(30, 58, 138, 0.25) !important;
  border: 1px solid #e2e8f0 !important;
}

/* Nav Menu Azul Marinho (#20458d) */
.bv-nav-bar {
  background-color: #20458d !important;
  color: #ffffff !important;
  position: relative;
  z-index: 30;
}

.bv-nav-bar a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.bv-nav-bar a:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.bv-nav-bar .bv-nav-active {
  background-color: rgba(255, 255, 255, 0.2) !important;
  font-weight: 600 !important;
}

/* Dropdown Suave */
.bv-dropdown-menu {
  background-color: #20458d !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.bv-dropdown-menu a {
  color: rgba(255, 255, 255, 0.95) !important;
}

.bv-dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* Typography & General Utilities */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.text-brand { color: var(--brand); }
.bg-brand { background-color: var(--brand); color: var(--brand-foreground); }

/* Buttons */
.btn-bv-primary {
  background-color: #20458d;
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-bv-primary:hover {
  background-color: #16326b;
  color: #ffffff;
  text-decoration: none;
}

.btn-bv-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-bv-outline:hover {
  background-color: var(--muted);
  color: var(--foreground);
  text-decoration: none;
}

.btn-bv-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.form-input-bv {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: #ffffff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

/* Book Viewer Sheet */
.book-page-sheet {
  max-width: 680px;
  margin: 0 auto;
  background-color: #faf8f3;
  padding: 3.5rem 2.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: #1c1917;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}
