@use 'sae-lib/src/styles/_variables.scss' as variables;

// Navigation bar styles
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  background-color: variables.$neutral-white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  &-brand {
    display: flex;
    align-items: center;

    .navbar-item {
      padding: 0.5rem 0.75rem;
      text-decoration: none;
      color: #333;
      font-weight: 500;
    }
  }

  &-burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 1rem;

    span {
      display: block;
      width: 25px;
      height: 3px;
      margin: 2px 0;
      background-color: #333;
      border-radius: 3px;
    }

    @media (max-width: 768px) {
      display: flex;
    }
  }

  &-menu {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;

    @media (max-width: 768px) {
      display: none;
      flex-direction: column;
      width: 100%;

      &.is-active {
        display: flex;
      }
    }
  }

  &-start, &-end {
    display: flex;
    align-items: center;

    @media (max-width: 768px) {
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
    }
  }

  &-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #333;
    text-decoration: none;
    cursor: pointer;

    &:hover {
      background-color: #f5f5f5;
      color: variables.$main-color-active;
    }

    &.active-link {
      color: variables.$main-color-active;
      font-weight: 500;
    }
  }

  &-dropdown {
    position: relative;

    &:hover .navbar-dropdown {
      display: block;
    }
  }

  &-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1);
    padding: 0.5rem 0;
    z-index: 20;
    min-width: 12rem;

    .navbar-item {
      padding: 0.375rem 1rem;
      display: block;

      &.is-selected {
        background-color: #f5f5f5;
      }
    }

    .navbar-divider {
      height: 1px;
      background-color: #dbdbdb;
      margin: 0.5rem 0;
    }
  }
}

// Icon styles
.ri-notification-2-line {
  font-size: 1.25rem;
}
