@import "variables";

:host {
  display: block;
}

h1 {
  font-weight: 300;
  font-size: 3.5rem;
  margin: 0 0 20px;
}

.notifications-wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 25px;
}

.group-header {
  padding: 10px 20px;
  background-color: mat-color($app-background, background);
  color: mat-color($app-foreground, secondary-text);
  text-transform: uppercase;
  border-bottom: 1px solid mat-color($app-foreground, divider);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .5px;
  line-height: 1;
}

.notification {
  padding: 20px;
  display: flex;
  background: mat-color($app-background, dialog);

  &.compact {
    border-bottom: 1px solid mat-color($app-foreground, divider);

    image-or-icon {
      width: 32px;
      height: 32px;
      margin-right: 8px;
    }

    .secondary {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  &:not(.compact) {
    margin: 10px 0;
    border: 1px solid mat-color($app-foreground, divider);
    border-radius: 4px;
  }

  &.unread {
    background-color: mat-color($app-accent, emphasis);
  }

  &:hover:not(.unread) {
    background-color: mat-color($app-background, hover);
  }

  &.warning {
    &.unread {
      background-color: #fff8f9;
    }

    image-or-icon {
      color: mat-color($app-warn, default);
    }
  }

  .line:not(:last-of-type) {
    margin-bottom: 2px;
  }

  .secondary {
    font-size: 1.4rem;
    color: mat-color($app-foreground, secondary-text);
  }

  .primary {
    font-size: 1.5rem;
    color: mat-color($app-foreground, text);
  }

  .mat-icon {
    vertical-align: middle;
    color: mat-color($app-foreground, icon);
    width: 18px;
    height: 18px;
    line-height: 18px;
    margin-right: 5px;
  }

  image-or-icon {
    display: block;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
  }
}

.has-action {
  cursor: pointer;
}

.line.has-action:hover {
  text-decoration: underline;
}

.middle-column {
  flex: 1 1 auto;
  min-width: 0;
}

.right-column {
  margin-left: auto;
  padding-left: 25px;
  color: mat-color($app-foreground, secondary-text);
  align-self: flex-start;
  white-space: nowrap;
}

.username, .track {
  color: mat-color($app-foreground, secondary-text);
  font-size: 1.3rem;
}

.quote:before {
  content: "“";
}

.quote:after {
  content: "“";
}

.no-results-message {
  margin: 30px 0;

  .icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    color: mat-color($app-foreground, icon);
  }

  a {
    display: block;
    text-align: center;
    margin-top: 10px;
  }
}

loading-indicator {
  margin-top: 30px;
}
