// Styles for the default question list view

div.question-list-header {
  @extend h1.top-header;
  display: block;
  margin-bottom: 0px;
  padding-bottom: lh(.5);
  overflow: hidden;
  width: flex-grid(9,9);

  h1 {
    margin: 0;
    font-size: 1em;
    font-weight: 100;
    padding-bottom: lh(.5);

    > a.light-button {
      float: right;
      font-size: em(14, 24);
      letter-spacing: 0;
      font-weight: 400;
    }
  }

  section.question-list-meta  {
    display: block;
    overflow: hidden;
    width: 100%;

    div {
      display: inline-block;
      float: left;
    }

    h1 {
      margin: 0;
    }
    span.label {
      color: #555;
    }

    div.question-list-title {
      margin-right: flex-gutter();

      h1 {
        margin-top: 0;
      }
    }


    div.question-sort {
      float: right;
      margin-left: flex-gutter();
      margin-top: 6px;

      nav {
        @extend .action-link;
        float: right;
        font-size: em(16, 24);

        a {
          font-size: 1em;

          &.on span{
            font-weight: bold;
          }

          &:before {
            content: '|';
            color: #ccc;
            font-size: 16px;
          }
        }
      }
    }
  }

  section.question-tags-list {
    display: block;
    min-height: 26px;
    padding-top:15px;
    width: 100%;

    div {
      display: inline-block;
      float: left;
    }

    div.back {
      margin-right: 10px;
      margin-top: 4px;

      a {
        color: #555;
        font-size: em(14, 24);
      }
    }

    div.tags-list {

    }

    ul.tags {
      span, div {
        line-height: 1em;
        margin-left: 6px;
        cursor: pointer;
      }
    }
  }
}

ul.question-list, div#question-list {
  width: flex-grid(9,9);
  padding-left: 0;
  margin: 0;

  li.single-question {
    border-bottom: 1px solid #eee;
    list-style: none;
    padding: lh() 0;
    width: 100%;

    &:first-child {
      border-top: 0;
    }

    div {
      display: inline-block;

      &.question-body {
        @include box-sizing(border-box);
        margin-right: flex-gutter();
        width: flex-grid(5,9);

        h2 {
          font-size: em(20);
          font-weight: bold;
          letter-spacing: 0;
          margin: 0 0 lh() 0;
          text-transform: none;
          line-height: lh();

          a {
            line-height: lh();
          }
        }

        p.excerpt {
          color: #777;
        }


        div.user-info {
          display: inline-block;
          vertical-align: top;
          margin: lh() 0 0 0;
          line-height: lh();

          span.relative-time {
            font-weight: normal;
            line-height: lh();
          }
        }

        ul.tags {
          display: inline-block;
          margin: lh() 0 0 0;
          padding: 0;
        }

      }

      &.question-meta {
        float: right;
        width: flex-grid(3,9);

        ul {
          @include clearfix;
          margin: 0;
          padding: 0;
          list-style: none;

          li {
            border: 1px solid lighten($border-color, 10%);
            @include box-sizing(border-box);
            @include box-shadow(0 1px 0 #fff);
            height:60px;
            float: left;
            margin-right: flex-gutter(3);
            width: flex-grid(1,3);

            &:last-child {
              margin-right: 0px;
            }

            &:hover {
              span, div {
                color: #555;
              }
            }

            &.answers {
              &.accepted {
                border-color: lighten($border-color, 10%);

                span, div {
                  color: darken(#c4dfbe, 35%);
                }
              }

              &.no-answers {
                span, div {
                  color: $pink;
                }
              }
            }

            span, div {
              @include box-sizing(border-box);
              color: #888;
              display: block;
              text-align: center;
            }

            span {
              font-size: 16px;
              font-weight: bold;
              height: 35px;
              padding-top: 15px;
              vertical-align: middle;
            }

            div {
              height: 25px;
              font-size: 12px;
            }
          }
        }
      }
    }

  }

  div.post-own-question {
    padding: 11px;
    margin-top: 10px;
    color: #888;
    text-align: center;

    a {
      font-weight: bold;
      @extend .light-button;
      padding: 20px;
      display: block;
      margin: 10px auto;
          text-align: center;
          width: flex-grid(5);
    }
  }
}

.search-result-summary {
}
