/* 列表頁共用樣式 */

.list-content {
  margin: 100px auto;
  font-weight: 500;
  letter-spacing: .5px;
}

.list-headline {
  font-size: 24px;
  font-weight: 500;
}

.search-card {
  a {
    color: #EE7800;
  }

  .search-bar-keyword {
    font-size: 14px;

    p {
      @media (max-width: 575px) {
        min-width: 75px;
        margin-top: 3px;
      }
    }

    li {
      margin-right: 15px;

      @media (max-width: 575px) {
        margin: 3px 10px 3px 0;
      }
    }
  }

  .form-control {
    font-size: 0.875rem;
    border: 2px solid #EE7800;
  }

  .input-group-text {
    padding: 1rem 2rem;
    color: #fff;
    font-weight: 400;
    font-size: 0.875rem;
    text-align: center;
    background-color: #EE7800;
    border: 2px solid #EE7800;
    border-radius: 0 .25rem .25rem 0;
  }
}

.filter-list {
  .form-check {
    display: flex;
    align-items: center;
  }

  .form-check-label {
    margin-left: 10px;
  }

  .search-tab {
    margin: 10px;
    border-color: #dbdbdb;
    background-color: white;

    &:hover {
      color: #EE7800;
      border-color: #EE7800;
    }

    &.active {
      color: #EE7800;
      border-color: #EE7800;
    }
  }

  .dropdown-menu {
    padding: 0;
    min-width: 15rem;
    max-height: 300px;
    overflow-y: auto;

    li {
      padding: 0.75rem 1.25rem;
      border-bottom: 1px solid rgba(0, 0, 0, 0.125);

      input,
      label {
        cursor: pointer;
      }
    }
  }

  .search-btn-filter {
    button {
      border: none;
      background-color: white;

      &:hover {
        color: #EE7800;
      }

      &.active {
        color: #EE7800;
      }
    }
  }

  .search-tab-result {
    font-size: 14px;

    img {
      cursor: pointer;
      transition: all .3s;

      &:hover {
        opacity: .7;
      }
    }
  }

  .lists-card {
    height: 100%;

    &:hover {

      .title,
      .video-title {
        opacity: .7;
      }
    }

    .person-img {
      width: 100%;
      height: 80px;
      max-width: 80px;
      background-size: cover;
      background-position: top;
      border-radius: 50%;
      box-shadow: 2px 2px 10px -2px rgba(0, 0, 0, 0.15);

      @media (max-width: 991px) {
        height: 70px;
        max-width: 70px;
      }

      @media (max-width: 767px) {
        height: 80px;
        max-width: 80px;
      }
    }

    .cover-img {
      width: 100%;
      height: 235px;
      object-fit: cover;

      @media (max-width: 991px) {
        height: 160px;
      }

      @media (max-width: 767px) {
        height: 235px;
      }
    }

    .video-cover-img {
      height: 225px;
      object-fit: cover;

      @media (max-width: 1400px) {
        height: 190px;
      }

      @media (max-width: 1200px) {
        height: 160px;
      }

      @media (max-width: 991px) {
        height: 115px;
      }

      @media (max-width: 767px) {
        height: 275px;
      }

      @media (max-width: 575px) {
        height: 48.5vw;
      }
    }

    .card-body {

      h5,
      h6,
      p,
      .video-title {
        line-height: 1.5;
        font-size: 1rem;
        // 換行
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
      }

      h5 {
        -webkit-line-clamp: 1;
      }

      h6 {
        -webkit-line-clamp: 2;
      }

      p {
        font-weight: 400;
      }

      .video-title {
        font-weight: bold;
        color: #43484C;
        -webkit-line-clamp: 2;
        transition: all .3s;
      }

      .tags-container {
        span {
          display: inline-block;
          margin: 3px 6px 3px 0;
          padding: 4px 6px;
          border-radius: 3px;
          font-size: 0.75rem;
          color: #EE7800;
          border: 1px solid #EE7800;
          transition: all .3s;

          &:hover {
            opacity: .7;
          }
        }

        &.columns-tag {
          height: 30px;
          overflow: hidden;
        }
      }

      .title {
        font-weight: 500;
        transition: all .3s;
      }
    }
  }

  .category-btn {
    button {
      color: #212529;
      transition: all .3s;
    }

    .main {
      button {
        width: 18%;
        margin: .6em;
        padding: 1.25rem 0.5rem;
        font-weight: 400;
        border: 1px solid transparent;
        border-radius: 5px;
        background-color: #fff;
        box-shadow: 2px 3px 5px 2px #eee;
      }
    }

    .sub {
      display: none;
      margin: 2rem auto;
      padding: 1.5rem 1rem;
      border-radius: 5px;
      background-color: #F4F4F4;

      button {
        padding: .5rem 1rem;
        margin: 0 .7rem;
        color: #727679;
        font-weight: 400;
        border-radius: 5px;
        border: 1px solid #E0E0E0;
      }
    }

    .main,
    .sub {
      button {

        &:hover,
        &.active {
          color: #EE751B;
          border: 1px solid #EE751B;
        }
      }
    }
  }
}

#builderList {
  .card {
    h5 {
      font-size: 1.125rem;
    }

    h6 {
      -webkit-line-clamp: 1;
    }

    .play-img {
      width: 50px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
}

.date-item {
  color: #c3c3c3;
  font-size: 12px;
  ;
}

// AutoComplete
.autocomplete-items {
  max-height: 282px;
  overflow-y: auto;
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;

  div {
    padding: 15px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;

    &:hover {
      color: #fff;
      background-color: #EE7800;
    }
  }
}

.autocomplete-active {
  background-color: DodgerBlue !important;
  color: #ffffff;
}

#columnLoading {
  display: none;

  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }

  img {
    animation: rotate 2s linear infinite;
  }
}