/* ============================================
   NAVIGATION.CSS - Navigation & Menu Styling
   ============================================
   
   Contains:
   - Legacy navbar styling (now hidden)
   - New sidebar navigation handled in sidebar.css
   - Toggle buttons
   - Navigation hover effects
*/

/* Hide legacy navbar wrapper - replaced by sidebar */
.navbar-wrapper {
  display: none !important;
}

/* Legacy navbar styles - kept for potential future use */
.navbar-wrapper.legacy {
  position: fixed;
  bottom: 1px;
  left: 36%;
  transform: translateX(-50%);
  width: 71%;
  border: 5px solid #fad8aa;
  border-radius: 8px;
  z-index: 999;
  box-sizing: border-box;
  color: azure;
  font-family: "Gill Sans", sans-serif;
}

/* Navbar icon hover effects */
.navbar-wrapper .navbar-nav .nav-link {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
}

.navbar-wrapper .navbar-nav .nav-link:hover {
  border: 2px solid #fad8aa;
  background: rgba(255, 228, 178, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(250, 216, 170, 0.3);
}

/* Special BibliaTech brand effects */
.navbar-wrapper .navbar-brand {
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.navbar-wrapper .navbar-brand:hover {
  transform: scale(1.1);
  background: linear-gradient(45deg, #fad8aa, #d2691e, #ffd700, #ff6b35);
  background-size: 400% 400%;
  animation: gradientShift 2s ease infinite, sparkle 1.5s ease-in-out infinite;
  border-radius: 12px;
  padding: 0.3rem 0.8rem;
  box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

/* Enhanced BibliaTech hover effects - only for the span */
#bibliatech-title {
  cursor: pointer;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  display: inline;
  vertical-align: baseline;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  color: #4B2E83; /* Default color - matches your current purple */
}

#bibliatech-title:hover {
  background: linear-gradient(45deg, #9138e5, #6bd6ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(145, 56, 229, 0.6));
  animation: gradientShift 3s ease infinite;
}

/* Sparkle pseudo-elements for extra shine */
.navbar-wrapper .navbar-brand:hover::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 1.5s ease-in-out infinite;
  pointer-events: none;
}

/* Sidebar navigation styling */
.w3-sidebar .w3-bar-item.w3-button:hover {
  background: #ffe4b2 !important;
  color: #d2691e !important;
  text-decoration: none !important;
  border: 1.5px solid #fad8aa;
  border-radius: 6px;
}

.w3-sidebar .w3-bar-item.w3-button {
  border: 1.5px solid transparent;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.w3-sidebar .w3-bar-item.w3-button:focus {
  outline: none;
  box-shadow: none;
}

/* Hide text labels when sidebar is collapsed */
.custom-sidebar.collapsed .w3-bar-item.w3-button {
  text-align: center;
  padding: 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-size: 0;
}

/* Show icons in collapsed sidebar */
.custom-sidebar.collapsed .w3-bar-item.w3-button i,
.custom-sidebar.collapsed .w3-bar-item.w3-button .icon {
  font-size: 1.2em;
  display: block;
  margin: 0;
}

/* Adjust hover effects for collapsed sidebar */
.custom-sidebar.collapsed .w3-bar-item.w3-button:hover {
  background: #ffe4b2 !important;
  color: #d2691e !important;
  border: 1.5px solid #fad8aa;
  border-radius: 6px;
}

/* Toggle button style */
.sidebar-toggle-btn {
  position: absolute;
  bottom: 60px;
  left: 3.5px;
  z-index: 2000;
  background: #fad8aa;
  border: none;
  border-radius: 15px;
  font-size: 1.5em;
  padding: 0.2em 0.5em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
  background: #d2691e;
  color: white;
  transform: scale(1.1);
}

/* Book selection navigation */
#book-select-list .form-check {
  margin-bottom: 0.5em;
}

#book-select-list .form-check-input:checked + .form-check-label {
  font-weight: bold;
  color: #d2691e;
}

/* Enhanced focus states for accessibility */
.navbar-wrapper .navbar-nav .nav-link:focus,
.w3-sidebar .w3-bar-item.w3-button:focus,
.sidebar-toggle-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Navigation animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sparkle {
  0%, 100% { 
    filter: brightness(1) drop-shadow(0 0 5px rgba(145, 56, 229, 0.3));
  }
  50% { 
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(145, 56, 229, 0.8));
  }
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Mobile navigation adjustments */
@media (max-width: 1366px) {
  .navbar-wrapper {
    left: 50%;
    width: 95%;
  }
  
  .navbar-wrapper .navbar-nav .nav-link {
    padding: 0.3rem 0.6rem;
    margin: 0 0.1rem;
    font-size: 0.9rem;
  }
  
  .sidebar-toggle-btn {
    font-size: 1.2em;
    padding: 0.1em 0.3em;
  }
}
