//
// Post
// --------------------------------------------------

.hentry {
  overflow: hidden;
  border-top: 1px solid #e5e5e5;

  &:first-child  {
    border-top: none;
  }
  
  .entry-thumbnail img {
    width: 100%;
    height: auto;
  }

  .entry-header {
    position: relative;
  }

  .entry-title {
    font-size: 18px;
    padding-right: 35px;

    a {
      color: #111;

      &:hover {
        color: @link-hover-color;
      }
    }
  }

  .meta-top {
    font-size: 11px;
    
    > span {
      margin-left: 10px;

      &:first-child {
        margin-left: 0;
      }
    }

    a {
      color: #666;

      &:hover {
        color: @link-hover-color;
      }
    }

    .comments-link {
      position: absolute;
      top: 2px;
      right: 0;
      text-align: center;
      line-height: 1;

      a {
        color: #fff;
        padding: 5px 12px;
        background: #f26432;
        display: block;

        &:before {
          position: absolute;
          border-left: 0 dashed transparent;
          border-right: 6px solid transparent;
          border-top: 6px solid #f26432;
          content: "";
          bottom: -6px;
        }
      }
    }
  }

  .entry-summary,
  .entry-content  {
    margin-top: 10px;
  }

  .carousel {
    margin-bottom: 20px;
  }
}

.more-link {
  font-size: 12px;
  margin-top: 10px;
  display: block;

  &:before {
    content: "\f061";
    font-family: FontAwesome;
    font-size: 9px;
    margin-right: 5px;
    position: relative;
    top: -1px;
    border: 2px solid #999;
    border-radius: 50%;
    display: inline-block;
    line-height: 11px;
    text-align: center;
    .transition(.3s);
    .square(12px);
  }

  &:hover:before {
    border-color: @link-hover-color;
  }
}

//
// Post formats
// --------------------------------------------------
.format-video {
  .entry-thumbnail {
    position: relative;

    a:before {
      content: "\f0da";
      bottom: 10px;
      color: #fff;
      font-family: FontAwesome;
      font-size: 23px;
      position: absolute;
      right: 10px;
      border: 2px solid #fff;
      border-radius: 50%;
      text-align: center;
      text-indent: 4px;
      line-height: 27px;
      .square(25px);
      .opacity(0.5);
      .transition( all .3s);

    }
  }

  &:hover {
    .entry-thumbnail a:before {
      .opacity(1);
    }
  }
}

.format-gallery {
  .entry-thumbnail {
    position: relative;

    a:before {
      content: "\f03e";
      bottom: 0;
      color: #fff;
      font-family: FontAwesome;
      font-size: 28px;
      position: absolute;
      right: 10px;
      .opacity(0.5);
      .transition( all .3s);
    }
  }

  &:hover {
    .entry-thumbnail a:before {
      .opacity(1);
    }
  }
}

.no-results {
  padding: @grid-gutter-width;
}

//
// Main content
// --------------------------------------------------
#main-content {
  .hentry {
    padding: @grid-gutter-width;
  }
}

//
// Site layout
// --------------------------------------------------
@media(min-width: @screen-sm) {
  .layout-narrow {
    .hentry {
      .entry-thumbnail {
        width: 210px;
        margin-right: 20px;
        float: left;

        img {
          width: 100%;
          height: auto;
        }
      }

      .entry-header {
        padding-right: 35px;
      }

      .entry-title {
        margin-top: 0;
      }
    }
  }
}

#main-content {
  .layout-wide .hentry {
      padding-top: 2*@grid-gutter-width;

      &:first-child {
        padding-top: @grid-gutter-width;
      }
  }
}

//
// Single
// --------------------------------------------------
.single {
  .hentry {
    .entry-title {
      margin-top: 0;
      font-size: 24px;
      color: #111;
    }

    .meta-top {
      margin-bottom: 20px;
    }

    .entry-content {
      color: #333;
    }
    
    // Entry footer
    .entry-footer {
      font-size: 11px;
      margin-top: 40px;
    }

    .tags-title {
      font-weight: bold;
      font-size: 12px;

      @media (max-width: @screen-xs-max) {
        display: block;
        margin-bottom: 10px;
      }
    }

    .tags-links a {
      padding: 5px 10px;
      margin: 0 5px 0 3px;
      background: #f0f0f0;
      color: #999;

      &:hover {
        color: #fff;
        background: @link-hover-color;
      }
    }
  }
}

.related-posts {
  margin: @grid-gutter-width @grid-gutter-width 0;
}

.related-posts-title {
  margin-bottom: 20px;
  font-size: 18px;
  color: #111;
  text-transform: uppercase;

  span {
    color: @link-hover-color;
  }
}

.related-title {
  font-size: 14px;
  margin-bottom: 5px;
  margin-top: 10px;
  a {
    color: #111;

    &:hover {
      color: @link-hover-color;
    }
  }
}

.related-meta {
  font-size: 11px;
  color: #999;
}

@media (max-width: @screen-xs-max) {
  .related-post {
    margin-top: 20px;

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

    .entry-thumbnail img {
      width: 100%;
    }
  }
}

//
// Single
// --------------------------------------------------
.search-no-results {
  .main-content-actions {
    display: none;
  }
}

.dd_post_share {
  .twitter-share-button {
    width: 89px !important;
  }
}