/* ========================================
   BÍBLIA ONLINE - Estilo Minimalista Azul Espiritual
   ======================================== */

:root {
  --primary: #1E4E8C;
  --primary-light: #3A6EA5;
  --bg-light: #E7F0FA;
  --text-dark: #0D1B2A;
  --border-light: #D8E5F3;
  --cta: #4AA4E8;
  --cta-hover: #2F6FB3;
  --white: #FFFFFF;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Book Card Component */
.book-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(30, 78, 140, 0.08);
}

.book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 78, 140, 0.15);
  border-color: var(--primary-light);
}

.book-card:active {
  transform: translateY(0);
}

/* Chapter Button Component */
.chapter-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.chapter-btn:hover {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}

.chapter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Verse Text Component */
.verse-container {
  max-width: 720px;
  margin: 0 auto;
}

.verse-item {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.125rem;
}

.verse-number {
  font-weight: 600;
  color: var(--primary);
  margin-right: 8px;
  font-size: 0.875rem;
  vertical-align: super;
}

.verse-text {
  color: var(--text-dark);
}

/* Navigation Buttons */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--cta);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--cta-hover);
}

.nav-btn.secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--primary);
}

.nav-btn.secondary:hover {
  background: var(--bg-light);
  border-color: var(--primary-light);
}

/* Ad Banner Component */
.ad-banner {
  width: 100%;
  text-align: center;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--primary-light);
}

.breadcrumb a {
  color: var(--primary-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-dark);
}

/* Loading State */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .book-card {
    padding: 14px 10px;
    font-size: 0.875rem;
  }
  
  .chapter-btn {
    width: 44px;
    height: 44px;
    font-size: 0.875rem;
  }
  
  .verse-item {
    font-size: 1rem;
    padding: 0 16px;
  }
  
  .nav-btn {
    padding: 10px 20px;
    font-size: 0.875rem;
  }
}

/* Selection Color */
::selection {
  background: var(--bg-light);
  color: var(--primary);
}

/* Focus States for Accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .ad-banner,
  header,
  footer,
  .nav-btn {
    display: none !important;
  }
  
  .verse-item {
    font-size: 12pt;
    line-height: 1.6;
  }
}
