/* 
 * Navigation Styles
 * 
 * Brand-specific styles only. Bootstrap navbar handles most layout.
 * Use Bootstrap utilities wherever possible.
 */

/* Custom navbar styling - brand-specific backdrop blur and colors */
.main-navigation {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  /* Bootstrap sticky-top handles position and z-index */
}

/* Nav container - using Bootstrap container pattern with max-width */
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  .nav-container {
    padding: 0 1rem;
  }
}

/* Override Bootstrap navbar brand styling */
.navbar-brand.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

/* Custom navbar toggler icon color for mobile */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.5rem;
  background-color: transparent;
  order: 2;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

@media (max-width: 991.98px) {
  .navbar-toggler {
    order: 2;
    margin-left: auto;
  }
  
  .navbar-brand {
    order: 1;
  }
  
  .navbar-collapse {
    order: 3;
  }
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5em;
  height: 1.5em;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

/* Ensure navbar collapse drops down vertically on mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    flex-basis: 100%;
    order: 3;
  }
  
  .navbar-nav {
    flex-direction: column !important;
    width: 100%;
    gap: 0 !important;
    align-items: flex-start !important;
  }
  
  .navbar-nav .nav-item {
    width: 100%;
    margin: 0;
  }
  
  .navbar-nav .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.75rem 0;
    display: block;
  }
  
  .navbar-nav .nav-user-info {
    width: 100%;
    padding: 0.75rem 0;
    justify-content: flex-start;
  }
  
  .navbar-nav .nav-welcome {
    display: inline !important;
  }
  
  .navbar-nav .google-sign-in-form {
    width: 100%;
    display: block;
    text-align: left;
  }
  
  .navbar-nav .nav-google-btn {
    max-height: 40px;
  }
  
  .navbar-nav .btn-link {
    text-align: left;
    width: 100%;
  }
}

/* Nav links - using Bootstrap nav-link class with custom hover */
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  font-size: 0.95rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* User info section */
.nav-user-info {
  /* Bootstrap handles flexbox via d-flex utilities */
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-welcome {
  color: white;
  opacity: 0.8;
  font-size: 0.875rem;
}

/* Brand-specific: Unseen matches indicator animation */
.unseen-matches-indicator {
  position: absolute;
  top: -0.15rem;
  right: 0.05rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: rgba(255, 105, 180, 0.28);
  border: 1px solid rgba(255, 105, 180, 0.55);
  box-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
  animation: match-pulse 2s ease-in-out infinite;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.unseen-matches-indicator::after {
  content: "💖";
  font-size: 0.7rem;
  line-height: 1;
  color: #ff9ed1;
}

@keyframes match-pulse {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.9;
    box-shadow: 0 0 6px rgba(255, 105, 180, 0.4);
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.7);
  }
}

/* Google Sign-In Button - Using Official Google Brand Assets */
/* https://developers.google.com/identity/branding-guidelines */
.google-sign-in-btn-image {
  height: auto;
  width: auto;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: block;
}

.google-sign-in-btn-image:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.google-sign-in-btn-image:active {
  opacity: 0.8;
  transform: translateY(0);
}

.nav-google-btn {
  max-height: 36px;
  width: auto;
}

