@import '../../../global.less';

.container {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.message {
  text-align: center;
  margin-top: 20px;
}

.banner {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  :global {
    .bg {
      z-index: -1;
      position: absolute;
      left: 0;
      right: 0;
      width: 100%;
      height: 90%;
      background: linear-gradient(to bottom, @orange-one, @orange-two);
    }

    .title, .content {
      color: white;
      font-weight: lighter;
    }

    .title {
      margin-top: 40px;
    }

    .content {
      margin: 10px 0 24px;
    }

    .content .large {
      font-size: 1.6rem;
      margin-right: 6px;
      font-weight: normal;
    }
  }

  .card {
    flex-shrink: 0;
    align-self: stretch;
    background-color: white;
    padding: 20px;
    margin: 0 10px;
    box-shadow: 1px 1px 8px rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    align-items: stretch;

    :global {
      .left {
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .right {
        flex-shrink: 0;
        margin-top: 8px;
      }

      .line {
        margin: 4px 0;
        font-weight: lighter;
      }

      .app-btn {
        user-select: none;
        white-space: nowrap;
        text-align: center;
        background-color: @orange-one;
        @btn-height: 32px;
        height: @btn-height;
        line-height: @btn-height;
        padding: 0;
        border-radius: 6px;
        color: white;
        font-size: 0.8rem;
        box-shadow: 1px 1px 8px rgba(0,0,0,.2);
        transition: background-color .18s;

        &:active {
          background-color: lighten(@orange-one, 10%);
        }
      }
    }
  }
}

.controller {
  flex-shrink: 0;
  margin: 10px;
}

.list {
  flex-grow: 1;
}

.item {
  height: 98%;
  margin: 0 10px;
  display: flex;
  align-items: center;
  border: 1px solid @bg-color;
  padding: 8px 10px;
  font-size: 0.9rem;

  :global {

    @size: 38px;
    .avatar {
      height: @size;
      width: @size;
    }

    .fake {
      width: 100%;
      height: 100%;
      line-height: @size;
      background-color: @bg-color;
      font-size: 1.2rem;
      border-radius: @size / 2;
      text-align: center;
    }

    .line {
      margin: 0 8px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
    }

    .time {
      font-weight: lighter;
      font-size: 0.8rem;
    }
  }
}
