
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;

  background-color: var(--color-bg-navbar);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari */

  padding: var(--spacing-md) 0;
  z-index: 3000;
  box-shadow: var(--box-shadow-subtle);
  overflow: visible;

  /* Add a smooth transition for the hide/show transform */
  transition: transform 0.5s ease-in-out;
  margin-bottom: 1rem;
}

/* This new class will be toggled by JS to hide the navbar */
.navbar.navbar--hidden {
  transform: translateY(-100%);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  overflow: visible;
}

/* --- Logo Styling --- */
.nav-logo a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #ecf0f1;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  transition: color 0.3s ease;
}

.nav-logo a:hover {
  color: var(--color-accent-gold);
}


/* --- Navigation Links with Underline Effect --- */
.nav-links a {
  color: #ecf0f1;
  margin-left: var(--spacing-lg);
  font-size: 1.1rem;
  padding: var(--spacing-sm) 0;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-gold);
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.nav-links a:hover,
.nav-links a.active {
  color: #f7d094;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}


/* --- Widening Search Bar --- */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 10000;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
  transition: color 0.3s ease;
}

.search-bar {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 12px 8px 35px;
  border-radius: var(--border-radius-lg);
  width: 200px;
  transition: width 0.4s ease-in-out, background-color 0.3s ease, border-color 0.3s ease;
  font-size: 0.9rem;
}

.search-bar::placeholder {
  color: #ccc;
}

.search-bar:focus {
  outline: none;
  width: 300px;
  background-color: rgba(255, 255, 255, 0.25);
  border-color: var(--color-accent-gold);
}

.search-bar:focus + .search-icon {
  color: var(--color-accent-gold);
}


/* --- Search Suggestions List --- */
.suggestions {
  position: fixed;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #444;
  background-color: #2c3e50;
  color: #ecf0f1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  border-radius: var(--border-radius-sm);
}
.suggestions li {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #34495e;
  transition: background-color 0.2s ease;
}
.suggestions li:last-child { border-bottom: none; }
.suggestions li:hover { background-color: #34495e; }
.suggestion-type { font-weight: bold; margin-right: 8px; }
.suggestion-type-mandala { color: #3498db; }
.suggestion-type-rishi { color: #2ecc71; }
.suggestion-type-deity, .suggestion-type-concept, .suggestion-type-object, .suggestion-type-animal { color: #e74c3c; }
.suggestion-type-hymn { color: #9b59b6; }
.suggestion-type-stanza { color: #f1c40f; }


/* ==========================================================================
   IMPROVED FOOTER (No changes needed from previous version)
   ========================================================================== */

.footer {
  background-color: var(--color-bg-footer);
  color: var(--color-text-footer);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
  border-top: 3px solid var(--color-accent-gold);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.footer-section { flex: 1; min-width: 220px; }
.footer-section h3, .footer-section h4 { color: white; margin-bottom: var(--spacing-md); font-family: var(--font-heading); }
.footer-logo { font-size: 1.5rem; color: var(--color-accent-gold); }
.footer-section p { line-height: 1.6; color: #bdc3c7; }
.footer-section .copyright { margin-top: var(--spacing-md); font-size: 0.9rem; color: #95a5a6; }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section ul li { margin-bottom: var(--spacing-sm); }
.footer-section a { color: #bdc3c7; text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover { color: var(--color-accent-gold); }