.gap {
  /* may not need this */
}

.time-gap {
  border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
  color: lighten($primary, 50%);
  padding-bottom: 3px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: bold;
  .topic-avatar {
    margin: 0 5px 0 10px;
  }
}

.topic-post {
  border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
  padding: 6px 0 3px 0;
}

span.badge-posts {
  margin-right: 5px;
}

.show-replies {
  display: none;
}

nav.post-controls {
  clear: both;
}

.who-liked {
  margin-left: 10px;
}

button.like-count {
  font-size: 1em;
  padding: 8px 4px;
}

button {
  border: none;
  font-size: 1.214em;
  padding: 8px 10px;
  vertical-align: top;
  background: transparent;
  color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
  float: left;
  &.hidden {
    display: none;
  }
  &.admin {
    position: relative;
  }
  &.expand-post {
    margin:10px 0 10px 0;
  }
  &.has-like {color: $love;}
  .read-icon {
    &:before {
      font-family: "FontAwesome";
      content: "\f02e";
    }
    &.unseen {
      &:before {
        content: "\f097";
      }
    }
    &.bookmarked {
      &:before {
        color: $tertiary;
      }
    }
  }
}


/* shift post reply button to the right and make it black */
.post-controls button.create {
  float: right;
  color: $primary;
}


.post-admin-menu {
  background-color: $secondary;
  width: 205px;
  padding: 10px;
  border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
  position: absolute;
  text-align: left;
  bottom: 0;
  left: 135px;
  z-index: 1000;
  display: none;

  h3 {
    margin-top: 0;
    color: $primary;
    font-size: 1em;
  }

  ul {
    list-style: none;
    margin: 10px 0 0 0;
  }

  li {
    width: 176px;
    margin-bottom: 5px;

    i.fa {
      width: 14px;
      margin-right: 14px;
    }
  }
}


.embedded-posts {
  .topic-meta-data h5 a {
    margin-left: 10px;
  }
}

.reply-new {
  display: none;
}

.post-actions {
  display: inline-block;
  width: 100%;
}

.post-action {
  float: right;
  margin-right: 10px;
  clear: right;
}

.post-action .relative-date {
  margin-left: 5px;
}

a.reply-to-tab {
  position: absolute;
  z-index: 400;
  right: 80px;
  color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
  span { display: none; }
}

a.star {
  display: inline-block;
  float: left;
  font-size: 1.3em;
}

.topic-post .boxed .contents {
  float: none;
  padding-top: 5px;
  clear: both;
  position: relative;
}

.topic-map {

  margin: 10px 0;
  background: blend-primary-secondary(5%);
  border: 1px solid dark-light-diff($primary, $secondary, 90%, -65%);
  border-top: none; // would cause double top border

  section {
    border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -65%);
  }

  h3 {
    margin-bottom: 4px;
    margin-top: 0;
    color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
    line-height: 23px;
    font-weight: normal;
    font-size: 1em;
  }

  h4 {
    margin: 0 0 3px 0;
    color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
    font-weight: normal;
    font-size: 0.857em;
    line-height: 15px;
  }

  .user {
    float: left;
    margin-right: 10px;
  }

  ul {
    margin: 0;
    list-style: none;
  }

  .avatars {
    > div {
      float: left;
      position: relative;
      margin: 3px 0;
    }
    .post-count {
      position: absolute;
      right: 3px;
      border-radius: 100px;
      padding: 4px 5px 2px 5px;
      text-align: center;
      font-weight: normal;
      font-size: 11px;
      line-height: 1;
    }
  }

  .avatar {
    float: left;
    margin-right: 4px;
  }

  .map-collapsed {
    .secondary {
      display: none;
    }
  }

  .map {
    li {
      float: left;
      padding: 7px 8px;
      &:last-of-type {
        border-right: 0;
      }
    }
    a, .number {
      line-height: 20px;
    }
    .number, i {
      color: dark-light-choose(scale-color($primary, $lightness: 20%), scale-color($secondary, $lightness: 80%));
      font-size: 110%;
    }

    .avatar + a {
      float: left;
    }
  }
  li.avatars {
    display: none;
  }

  .links, .information, .avatars {
    padding: 7px 10px;
    color: $primary;
    overflow: auto;
  }

  .participants { // PMs //
    .user {float: left; margin: 0 10px 10px 0;}
  }

  .domain {
    color: dark-light-choose(scale-color($primary, $lightness: 75%), scale-color($secondary, $lightness: 25%));
  }

  .topic-links {
    .badge-notification {
      margin: 1px 5px 2px 0;
    }
  }

  td {
    vertical-align: top;
    padding:1px;
  }

  .buttons {
    float: right;
    .btn {
      border: 0;
      padding: 0 15px;
      color: $primary;
      background: blend-primary-secondary(5%);
      border-left: 1px solid dark-light-diff($primary, $secondary, 90%, -65%);
      border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -65%);
      .fa {
        margin: 0;
        font-size: 1.286em;
        line-height: 52px;
      }
    }
  }
}

#topic-footer-buttons {
  @include clearfix;
  border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
  padding: 20px 0 0 0;
  .fa-bookmark.bookmarked { color: $tertiary; }
}

/* this is to force the drop-down notification state description para below the button */
#topic-footer-buttons p {
  clear: both;
  margin: 0;
}

#suggested-topics {
  clear: left;
  padding: 20px 0 15px 0;
    th.views, td.views, td.activity, th.activity, th.likes, td.likes {
    display: none;
    }

   a.badge-category, a.badge-category-parent {
    font-size: 0.714em;
    vertical-align: top;
    }
}



span.post-count {
  background: $primary;
  color: $secondary;
  opacity: .8;
}


#topic-footer-buttons {
  .btn {
    margin-bottom: 5px;
    margin-right: 10px;
    .fa-star {margin-right: 5px;}
  }
}

#topic-title {
  z-index: 1000;
  margin: 0 0 0 0 !important;
  padding: 15px 0;
}

.topic-post {
  &.moderator {
    background-color: dark-light-diff($highlight, $secondary, 70%, -80%);
  }
}

.quote-button.visible {
  display: block;
}

iframe {
  max-width: 100%;
}

.extra-info {
  display: none;
}

.open>.dropdown-menu {
  display: block;
}

.dropdown-menu li  {
  margin: 5px 0;
  .fa {
    float: left;
    margin-right: 5px;
    padding-top: 1px;
  }
}

.btn-group {
  margin-top: 25px;
  position: relative;
}

.dropdown-toggle {
  float: left;
  position: relative;
}

#share-link {
  width: 290px;
  left: auto;
  right: 4px;
}

#selected-posts {
  float: left;
  width: 97%;
  padding-left: 3%;
  background-color: srgb-scale($tertiary, $secondary, 15%);
  .btn {
    margin-bottom: 10px;
    color: $secondary;
    background: $tertiary;
    clear: both;
  }
  p {
    clear: both;
  }
}

// hide the full set of selection buttons on mobile
.select-posts button { display: none; }

// unhide the simple "select just this post" button
button.select-post {
  display: inline-block;
  position: absolute;
  z-index: 401; // 400 is the reply-to tab
  left: 200px;
  background-color: srgb-scale($tertiary, $secondary, 60%);
  color: $secondary;
  padding: 5px;
}


.post-select {
  float: right;
  margin-right: 20px;
  margin-top: -20px;
}



.deleted {
  background-color: dark-light-diff(rgba($danger,.7), $secondary, 50%, -60%);
}

#show-topic-admin {
  color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
  right: 0;
  border-right: 0;
  padding-right: 4px;
  padding-left: 5px;
}

.deleted-user-avatar {
  font-size: 2.571em;
}

span.btn-text {display: none;}

blockquote {
  clear:both;
  /* leave browser defaults for top and bottom here */
  margin-left: 0;
  margin-right: 0;
}

.gutter { display: none; }

.posts-wrapper {  position: relative; }

span.highlighted {
  background-color: dark-light-choose(scale-color($highlight, $lightness: 70%), $highlight);
}

.topic-avatar {
  float: left;
  position: relative;
  z-index:999; /* must render on top of topic-body + topic-meta-data, otherwise not tappable */
}

.topic-meta-data {
  white-space: nowrap;
  position: absolute;
  width: 100%;
  left: 0px;
  .names {
    margin: 5px 0 0 5px;
    line-height: 17px;
    padding-left: 60px;
    span {
      display: block;
    }
  }
  .post-info {
    float: right;
    font-size: 0.929em;
    margin: 4px 10px 0 0;
    .edits { margin-right: 5px; }
  }
}

.username.new-user a {
  color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%));
}

.user-title {
  color: #aaa;
  padding-top: 2px;
  overflow: hidden;
  margin-right: 50px;
}

.read-state {
  display: none;
}

.small-action .small-action-desc {
  p {
    padding-top: 0;
  }
  .custom-message {
    margin-left: -40px;
  }
}

.small-action .topic-avatar {
  padding: 0;
  margin: 0;
}

.small-action.time-gap .topic-avatar {
  margin-top: -5px;
}
