//
// Component: Notification
//
// ========================================================================


// Variables
// ========================================================================

@notification-message-color:                          @global-inverse-color;
@notification-message-font-size:                      round((@global-font-size * 1.14)); // 16px / 18px
@notification-message-line-height:                    round((@notification-message-font-size * 1.36)); // 22px / 24px

@notification-message-alpha:                          85%;
@notification-message-blur:                           blur(15px);
@notification-message-saturate:                       saturate(260%);

@notification-message-background:                     darken(@global-color-grey-dark, 30%);
@notification-message-box-shadow:                     @global-drop-shadow;

@notification-message-padding:                        @global-gutter;


// Component
// ========================================================================

.hook-notification() {}


// Message
// ========================================================================

.hook-notification-message() {
  background-color: fade(@notification-message-background , @notification-message-alpha);
  -webkit-backdrop-filter: @notification-message-blur @notification-message-saturate;
  color: @notification-message-color;
  box-shadow: @notification-message-box-shadow;
  border-radius: @global-border-radius;
}


// Close
// ========================================================================

.hook-notification-close() {
  color: @notification-message-color;

  &:hover {
    color: fade(@notification-message-color, 70%);
  }
}


// Style modifiers
// ========================================================================

.hook-notification-message-primary() {
  background-color: fade(@global-primary-background, @notification-message-alpha);
  -webkit-backdrop-filter: @notification-message-blur @notification-message-saturate;
  color: @notification-message-color;
  box-shadow: @notification-message-box-shadow;
  border-radius: @global-border-radius;
}

.hook-notification-message-success() {
  background-color: fade(@global-success-background, @notification-message-alpha);
  -webkit-backdrop-filter: @notification-message-blur @notification-message-saturate;
  color: @notification-message-color;
  box-shadow: @notification-message-box-shadow;
  border-radius: @global-border-radius;
}

.hook-notification-message-warning() {
  background-color: fade(@global-warning-background, @notification-message-alpha);
  -webkit-backdrop-filter: @notification-message-blur @notification-message-saturate;
  color: @notification-message-color;
  box-shadow: @notification-message-box-shadow;
  border-radius: @global-border-radius;
}

.hook-notification-message-danger() {
  background-color: fade(@global-danger-background, @notification-message-alpha);
  -webkit-backdrop-filter: @notification-message-blur @notification-message-saturate;
  color: @notification-message-color;
  box-shadow: @notification-message-box-shadow;
  border-radius: @global-border-radius;
}


// Miscellaneous
// ========================================================================

.hook-notification-misc() {}