@import '../../button-template.css';

.navbar {
  background: rgba(8, 6, 28, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.15);
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 0;
  padding: 0.75rem 1rem;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--bb-title) !important;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
}

.gap-2 {
  gap: 0.5rem;
}

.user-section {
  align-items: center;
}

.me-btn {
  background: rgba(0, 210, 255, 0.1);
  color: var(--bb-title);
  border: 1px solid var(--bb-border);
  border-radius: 2px;
  padding: 0.5rem 0.8rem;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  text-transform: uppercase;
}

.me-btn:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--bb-tag);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
  transform: scale(1.05);
}

.me-btn:active {
  transform: scale(0.98);
}

/* Sunset Mode */
.sunset .navbar {
  background: rgba(20, 5, 45, 0.85);
  border-bottom-color: rgba(255, 64, 207, 0.2);
  box-shadow: 0 4px 20px rgba(242, 106, 226, 0.15);
}

.sunset .me-btn {
  background: rgba(242, 106, 226, 0.1);
  border-color: var(--bb-border);
}

.sunset .me-btn:hover {
  background: rgba(242, 106, 226, 0.2);
  border-color: var(--bb-tag);
  box-shadow: 0 0 10px rgba(242, 106, 226, 0.4);
}

.container-fluid {
  display: flex;
  align-items: center;
}

.ms-auto {
  margin-left: auto;
}

.notification-container {
  position: relative;
}

.notification-badge {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;

  &:hover {
    transform: scale(1.1);
  }

  &.has-notifications {
    animation: pulse 2s infinite;
  }

  .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
  }
}

@keyframes pulse {
  0% {
    filter: drop-shadow(0 0 3px rgba(0, 213, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(0, 213, 255, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 3px rgba(0, 213, 255, 0.3));
  }
}

.notification-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 100%);
  border: 1px solid rgba(0, 213, 255, 0.3);
  border-radius: 8px;
  min-width: 250px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1001;
  box-shadow: 0 0 20px rgba(0, 213, 255, 0.3);
  margin-top: 10px;

  .notification-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(0, 213, 255, 0.2);
    color: #00d5ff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    .close-btn {
      background: none;
      border: none;
      color: #00d5ff;
      font-size: 20px;
      cursor: pointer;
      padding: 0;
      transition: all 0.2s ease;

      &:hover {
        transform: scale(1.1);
      }
    }
  }

  .notification-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
  }

  .notification-item {
    padding: 10px 12px;
    background-color: rgba(0, 213, 255, 0.05);
    border: 1px solid rgba(0, 213, 255, 0.1);
    border-radius: 4px;
    font-size: 12px;
    color: #b0b0d0;
    cursor: pointer;
    transition: all 0.2s ease;

    &:hover {
      background-color: rgba(0, 213, 255, 0.1);
      border-color: rgba(0, 213, 255, 0.3);
    }
  }

  .notification-menu-footer {
    padding: 8px 8px 0;
    border-top: 1px solid rgba(0, 213, 255, 0.2);
  }

  .view-all-btn {
    width: 100%;
    padding: 8px 12px;
    background-color: rgba(0, 213, 255, 0.1);
    border: 1px solid rgba(0, 213, 255, 0.3);
    border-radius: 4px;
    color: #00d5ff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;

    &:hover {
      background-color: rgba(0, 213, 255, 0.2);
      border-color: #00d5ff;
    }
  }
}
