/* --------------------------------------------------
   GLOBAL RESET (Fixes Android shifting + overflow)
-------------------------------------------------- */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------
   BOTTOM NAV BAR (Blue Floating Icons-Only)
-------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  height: 70px;
  background: #1E3A8A;
  border-radius: 22px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.25);
  z-index: 999;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: 0.2s ease;
  padding-top: 6px;
}

.nav-item:hover {
  transform: scale(1.15);
}

.nav-icon {
  width: 39px;
  height: 39px;
  object-fit: contain;
  border-radius: 10px;
}

/* --------------------------------------------------
   SAFE AREA SUPPORT
-------------------------------------------------- */
@supports (padding: max(0px)) {
  .bottom-nav {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .home-container {
    padding-bottom: max(120px, calc(env(safe-area-inset-bottom) + 90px));
  }
}

/* --------------------------------------------------
   LIGHT MODE
-------------------------------------------------- */
.light-mode {
  background: #fdf8e7 !important;
  color: #2b2520 !important;
}

.light-mode .verse-tile,
.light-mode .book-tile,
.light-mode .chapter-tile {
  background: #fff3c4;
  color: #2b2520;
}

/* --------------------------------------------------
   MOBILE OPTIMIZATION
-------------------------------------------------- */
@media (max-width: 600px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-tile {
    padding: 26px;
    font-size: 18px;
  }

  .large-tile {
    padding: 50px 0;
    font-size: 24px;
  }
}
