/* Modern Bible Reading Interface */
.bible-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 2rem;
}

.breadcrumb-path {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #3b82f6;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.breadcrumb-link:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.breadcrumb-separator {
  color: #cbd5e1;
  font-weight: 300;
}

.breadcrumb-current {
  font-weight: 600;
  color: #1e293b;
  background: #f1f5f9;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

/* Main Layout */
.bible-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar */
.bible-sidebar {
  position: sticky;
  top: 2rem;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1rem 0;
}

/* Chapter Navigation */
.nav-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  flex: 1;
}

.nav-btn:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
  transform: translateY(-1px);
}

.prev-btn {
  justify-content: flex-start;
}

.next-btn {
  justify-content: flex-end;
}

.current-chapter {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 0.5rem;
  border: 1px solid #3b82f6;
}

.chapter-label {
  display: block;
  font-size: 0.75rem;
  color: #1e40af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.chapter-display {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e40af;
}

/* Reading Tools */
.reading-tools {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.tool-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

/* Quick Jump */
.jump-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.jump-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.jump-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.jump-btn {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jump-btn:hover {
  background: #2563eb;
}

.verse-count {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  font-weight: 500;
}

/* Chapter Info */
.chapter-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: 0.375rem;
}

.info-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.info-value {
  font-size: 0.875rem;
  color: #1e293b;
  font-weight: 600;
}

/* Reading Progress */
.reading-progress {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #10b981, #047857);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.progress-btn:hover {
  background: linear-gradient(135deg, #059669, #065f46);
  transform: translateY(-1px);
}

.progress-btn.completed {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

.progress-status {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 0.375rem;
}

.progress-status.completed {
  color: #047857;
  background: #ecfdf5;
}

/* Main Content */
.bible-main {
  min-height: 100vh;
}

/* Chapter Header */
.chapter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.chapter-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.3;
}

.chapter-title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.book-name {
  color: white;
}

.chapter-number {
  font-size: 3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.version-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

/* Verses Container */
.verses-container {
  margin-top: 2rem;
}

.verses-grid {
  display: grid;
  gap: 1.5rem;
}

/* Individual Verse Cards */
.verse-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  position: relative;
}

.verse-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #e2e8f0;
}

.verse-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.verse-number {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  min-width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.verse-text {
  margin: 0;
  font-size: var(--font-size, 1.125rem);
  line-height: 1.7;
  color: #334155;
  font-weight: 400;
}

/* Action Buttons */
.verse-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.action-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
  transform: translateY(-1px);
}

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

.action-btn svg {
  width: 16px;
  height: 16px;
}

.action-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.action-btn.bookmarked {
  background: #dcfce7;
  border-color: #16a34a;
  color: #15803d;
}

/* Font Size Controls */
.bible-container.font-small .verse-text {
  --font-size: 1rem;
}

.bible-container.font-large .verse-text {
  --font-size: 1.25rem;
}

.bible-container.font-xl .verse-text {
  --font-size: 2rem;
}

/* Night Mode */
.bible-container.night-mode {
  background: #0f172a;
  color: #e2e8f0;
}

.bible-container.night-mode .bible-sidebar {
  background: #1e293b;
  border-color: #334155;
}

.bible-container.night-mode .sidebar-title {
  color: #f1f5f9;
}

.bible-container.night-mode .nav-btn,
.bible-container.night-mode .tool-btn {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

.bible-container.night-mode .nav-btn:hover,
.bible-container.night-mode .tool-btn:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.bible-container.night-mode .current-chapter {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-color: #3b82f6;
}

.bible-container.night-mode .chapter-label,
.bible-container.night-mode .chapter-display {
  color: #93c5fd;
}

.bible-container.night-mode .jump-input {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

.bible-container.night-mode .info-item {
  background: #334155;
}

.bible-container.night-mode .info-label {
  color: #cbd5e1;
}

.bible-container.night-mode .info-value {
  color: #f1f5f9;
}

.bible-container.night-mode .progress-status {
  background: #334155;
  color: #cbd5e1;
}

.bible-container.night-mode .progress-status.completed {
  background: #064e3b;
  color: #6ee7b7;
}

.bible-container.night-mode .verse-count {
  color: #94a3b8;
}

.bible-container.night-mode .verse-card {
  background: #1e293b;
  border-color: #334155;
}

.bible-container.night-mode .verse-card:hover {
  border-color: #475569;
}

.bible-container.night-mode .verse-text {
  color: #e2e8f0;
}

.bible-container.night-mode .action-btn {
  border-color: #475569;
  color: #94a3b8;
}

.bible-container.night-mode .action-btn:hover {
  background: #334155;
  border-color: #64748b;
  color: #e2e8f0;
}

.bible-container.night-mode .verse-actions {
  border-color: #334155;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .bible-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .bible-sidebar {
    position: static;
    max-height: none;
    order: 2;
  }
  
  .bible-main {
    order: 1;
  }
}

@media (max-width: 768px) {
  .bible-container {
    padding: 1rem 0.75rem;
  }
  
  .chapter-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .chapter-title {
    font-size: 2rem;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .chapter-number {
    font-size: 2.5rem;
  }
  
  .verse-card {
    padding: 1rem;
  }
  
  .verse-text {
    font-size: var(--font-size, 1rem);
  }
  
  .nav-buttons {
    flex-direction: column;
  }
  
  .sidebar-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  
  .reading-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .tool-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 280px) {
  .verse-content {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .verse-number {
    align-self: flex-start;
  }
  
  .verse-actions {
    flex-direction: column;
  }
  
  .action-btn span {
    display: grid;
  }
  
  .reading-tools {
    grid-template-columns: 1fr;
  }
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background: #10b981;
}

.notification-error {
  background: #ef4444;
}

.notification-info {
  background: #3b82f6;
}

/* Print Styles */
@media print {
  .bible-sidebar,
  .breadcrumb-nav,
  .verse-actions {
    display: none;
  }
  
  .bible-layout {
    grid-template-columns: 1fr;
  }
  
  .chapter-header {
    background: none;
    color: #000;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .verse-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
  }
}

/* Focus States for Accessibility */
.nav-btn:focus,
.tool-btn:focus,
.jump-input:focus,
.jump-btn:focus,
.progress-btn:focus,
.action-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
.bible-sidebar::-webkit-scrollbar {
  width: 6px;
}

.bible-sidebar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.bible-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.bible-sidebar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}


.bible-container.font-small { font-size: 14px; }
.bible-container.font-large { font-size: 20px; }
.bible-container.font-xl { font-size: 24px; }
