/* ========================
   GLOBAL RESET & BASE STYLES
========================= */
body {
  margin: 0;
  padding: 20px;
  font-family: 'Noto Sans', sans-serif;
  background: radial-gradient(circle at center, #fff8f0 0%, #fce5b2 40%, #ffe2c4 100%);
  color: #222;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================
   CONTAINERS & LAYOUTS
========================= */
.container-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.container {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 500px;
  margin-bottom: 2rem;
}

.splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  animation: fadeInBody 1s ease-in forwards;
}

.reader {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  text-align: left;
  line-height: 1.6;
}

.chapter-select, .book-select {
  max-width: 700px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
}

/* ========================
   TYPOGRAPHY
========================= */
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

@media screen and (min-width: 600px) {
  h1 {
    font-size: 2.4rem;
  }
}

/* ========================
   BUTTONS & CONTROLS
========================= */
.controls {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn, select {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  margin-right: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f6f6f6;
  transition: background-color 0.2s ease;
}

.btn:hover, select:hover {
  background-color: #e6e6e6;
}

/* ========================
   GRIDS & CHAPTER BUTTONS
========================= */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

@media screen and (min-width: 768px) {
  .chapter-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}

.chapter-btn {
  display: inline-block;
  background-color: #f6f6f6;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s ease;
}

.chapter-btn:hover {
  background-color: #e6e6e6;
}

/* ========================
   BREADCRUMBS
========================= */
.breadcrumbs {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.breadcrumb-btn {
  padding: 10px 16px;
  background-color: #f6f6f6;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.breadcrumb-btn:hover {
  background-color: #e2e2e2;
}

/* ========================
   IMAGERY
========================= */
.logo, .footer-logo {
  margin-top: 40px;
}

.logo img, .footer-logo img {
  max-width: 300px;
  opacity: 0.9;
}

@media screen and (max-width: 767px) {
  .logo img, .footer-logo img {
    max-width: 150px;
  }
}

.hero-image img {
  max-width: 100%;
  max-height: 300px;
  margin: 20px 0;
  object-fit: contain;
}

.header-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.header-logo img {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
}

@media screen and (min-width: 768px) {
  .header-logo img {
    max-height: 200px;
  }
}

/* ========================
   READER SCRIPTURE TEXT
========================= */
  
.verse-block p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  text-align: left;
}


/* ========================
   ANIMATIONS
========================= */
@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile-specific adjustments */
@media screen and (max-width: 767px) {
  .container {
    max-width: 300px;
    padding: 15px;
  }
  .chapter-grid {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }
  .header-logo img {
    max-height: 100px;
  }
  .logo img, .footer-logo img {
    max-width: 150px;
  }
}

/* Desktop-specific adjustments */
@media screen and (min-width: 768px) {
  .container {
    max-width: 700px;
  }
  .chapter-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
  .header-logo img {
    max-height: 200px;
  }
  .logo img, .footer-logo img {
    max-width: 300px;
  }
}