/*------------------------------------------------------------
NAVIGATION
====================================*/

/* Variables Custom */
$menu-account-padding-x: 20px;
$menu-account-padding-y: 20px;
$menu-account-bg: $white;
$menu-account-border-width: 6px;
$menu-account-border-color: $gray-200;
$menu-account-icon-color: $gray-400;
$menu-account-icon: str-replace(url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 60 60' style='enable-background:new 0 0 60 60;' xml:space='preserve'%3E%3Cpath fill='#{$menu-account-icon-color}' d='M5,43.6l2.8-2.8l1.4,1.4L6.4,45H5V43.6z M5,6.4l2.8,2.8l1.4-1.4L6.4,5H5V6.4L5,6.4z M43.6,45l-2.8-2.8l1.4-1.4l2.8,2.8V45H43.6z M45,6.4l-2.8,2.8l-1.4-1.4L43.6,5H45V6.4z M25,23.6l2.8-2.8l1.4,1.4L26.4,25l2.8,2.8 l-1.4,1.4L25,26.4l-2.8,2.8l-1.4-1.4l2.8-2.8l-2.8-2.8l1.4-1.4L25,23.6L25,23.6z'/%3E%3C/svg%3E%0A"), "#", "%23");
/***************************************/

.account-menu {
  position: relative;
  padding: $menu-account-padding-y $menu-account-padding-x;
  margin-bottom: 50px;
  background: $menu-account-bg;
  border: $menu-account-border-width solid $menu-account-border-color;
  &:before {
    content: '';
    display: block;
    position: absolute;
    left: -20px;
    right: -20px;
    bottom: -40px;
    z-index: -1;
    height: 100%;
    background: {
      image: $menu-account-icon;
      size: 60px;
    }
  }

  header {
    margin-bottom: 25px;
    .link-logout {
      display: inline-block;
      position: relative;
      padding-left: 12px;

      svg {
        position: absolute;
        top: 3px;
        left: 0;
        width: 8px;
        height: 8px;
        transition: 0.3s;
      }

      &:hover {
        svg {
          fill: $primary;
          transform: rotate(180deg);
        }
      }
    }
  }
  ul {
    margin-bottom: 0;
    list-style: none;
  }
  li + li {
    margin-top: 10px;
  }
  .list-item {
    position: relative;
    padding-left: 10px;
    &:before {
      content: '';
      display: block;
      position: absolute;
      top: 10px;
      left: 0;
      width: 4px;
      height: 4px;
      margin-right: 7px;
      background: $black;
      border-radius: 100%;
    }
  }
  .item {
    display: block;
    padding: 5px 0;
    color: $black;
    font-weight: $font-weight-normal;
    font-size: 14px;
    line-height: 16px;
    text-decoration: none;
    &:hover {
      color: $primary;
    }
  }
}

/* RESPONSIVE */
/***************************************/
@include media-breakpoint-up(lg) {
  .account-menu {
    &:before {
      left: -30px;
      right: 20px;
    }
  }
}
