/*
  @package amaaaze
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# base
    ## Normalize
	## Common
	## Media
	## Menus
	## Mixins
	## Placeholders
	## Variables
	## Wordpress
# admin
	## Sidebar

--------------------------------------------------------------*/
/* Import
  ---------------------
*/
@import "base/normalize"; //normalize
@import "base/variables"; //variables
@import "base/mixins";  //mixins
@import "base/placeholders";  //placeholders
@import "base/wordpress";  //wordpress default classes
@import "base/menus";  //wordpress default menus
@import "base/common";  //Global styles
@import "base/media";  //Media styles
@import "base/widget";  // Widget styles

@import 'admin/sidebar';		//admin classes

/*
  Home page styles
  ---------------------
*/
.home{
  .amaaaze-breadcrumb{
    display: none;
  }
}

// Breadcrumbs
.amaaaze-breadcrumb{
  margin-top: 1px;
  padding: 30px 0;
  border: 1px solid $gray-lightest;
  background-color: $lighter-grey;
  margin-bottom: 40px;
  line-height: 2.5;
  h1.page-title{
    margin: 0px;
    text-transform: capitalize;
    font-size: 26px;
    line-height: 44px;
  }
}
// Section title
.sec-title{
  margin-top: -5px;
  padding-bottom: 40px;
  position: relative;
  h2{
    color: $dark-grey;
    font-size: 32px;
    font-weight: 700;
    line-height: 34px;
    text-transform: uppercase;
    margin: 0;
    mark{
      color: $brand-primary;
      background: none;
    }
  }
  .decor{
    background: $brand-primary none repeat scroll 0 0;
    height: 2px;
    width: 78px;
    display: inline-block;
    position: relative;
    z-index: 1;
    &:before{
      position: absolute;
      top: -3px;
      left: 0;
      width: 8px;
      height: 8px;
      background: $brand-primary;
      border-radius: 50%;
      content: "";
    }
  }
}


// Home page

// Post slider
h1{
  font-size: 36px;
}

// Post
.amaaaze-posts-container{
  margin-top: 30px;
}
.amaaaze-blog-container{
}
article{
  // portfolio
  &.type-portfolio{
    header.entry-header{
      .entry-image{
        display: none;
      }
    }
    .entry-image{
      margin-bottom: 25px;
    }
    .entry-content{
      header.entry-header{
        h1.entry-title{
            margin-bottom: 15px;
          a{
            font-size: 28px;
          }
        }
        .entry-meta{
          margin-bottom: 15px;
        }
      }
      .button-container{
        margin: 20px 0;
      }
    }
    h1.entry-title{
      margin-top: 0px;
    }
    .single-entry-meta{
      margin-bottom: 25px;
      .posted-on{
        margin-right: 10px;
        &:before{
          content: "\f133";
          font-family: FontAwesome;
        }
      }
      .posted-by{
        margin-right: 10px;
        &:before{
          content: "\f2be";
          font-family: FontAwesome;
          padding-right: 5px;
        }
      }
      .comments-counter-list, .posted-in{
        display: none;
      }
    }
  }
  // sticky
  &.sticky{
    overflow: hidden;
    border-width: 1px;
    border-style: solid;
    border-color: $gray-lightest;
    margin-bottom: 30px;
    padding: 15px;
    &:before{
      content: "\f005";
      font-family: FontAwesome;
      position: absolute;
      width: 50px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      color: $brand-primary;
      right: 30px;
    }
    &.type-post{
      .entry-content{
        margin-bottom: 0px;
        padding: 0px;
      }
      header.entry-header{
        padding-bottom: 15px;
        h1.entry-title{
          margin-bottom: 15px;
        }
        .post_date{
          margin-bottom: 0px;
        }
      }
    }
  }
  &.type-post, &.page{
    header.entry-header{

      h1.entry-title{
        margin: 15px 0;
        font-size: 28px;
        a{
          color: $brand-secondary;
          &:hover{
            color: $brand-primary;
          }
        }
      }
    }
    .entry-image{
      img{
        margin-bottom: 30px;
      }
    }
    .entry-content{
      padding-bottom: 20px;
      margin-bottom: 30px;
      .button-container{
        margin: 20px 0;
        a{
        }
      }
      .entry-footer{
        .text-left{
          a{
            color: $grey;
            &:hover{
              color: $brand-primary;
            }
          }
          .comments-counter-list{
            a{
              &:before{
                content: "\f0e5";
                font-family: FontAwesome;
                margin-right: 5px;
              }
            }
          }
        }
        .text-left{
          display: inline-flex;
          @media(max-width: $screen-xs-max){
            display: block;
          }
          a{
            color: $grey;
            text-transform: capitalize;
            &:before{
              content: "\f2c0";
              font-family: FontAwesome;
              padding-right: 5px;
            }
            &:hover{
              color: $brand-primary;
            }
          }
          .tags-list{
            margin-left: 10px;
            @media(max-width: $screen-xs-max){
              margin-left: 0px;
            }

            a{
              &:before{
                content: none;
              }
            }
          }
        }
      }
    }
  }
}

// entry meta and post meta
.entry-meta, .post-meta{
  margin-bottom: 15px;
  a{
    text-transform: capitalize;
  }
  span{
    margin-right: 5px;
  }
  .posted-by{
    &:before{
      content: "\f2c0";
      font-family: FontAwesome;
      padding-right: 5px;
    }
  }
  .posted-on{
    &:before{
      content:"\f073";
      font-family: FontAwesome;
      margin-right: 5px;
    }
  }
  .tags-list{
    &:before{
      content: "\f02b";
      font-family: FontAwesome;
      margin-right: 5px;
    }
  }
}

// Single portfolio
.tlp-portfolio-detail-wrap{
  margin-top: 10px;
  .portfolio-detail-desc{
    padding: 0 15px 15px 15px;
    .portfolio-title{
      text-transform: capitalize;
      margin-top: 0px;
    }
  }
}
// Single post
.single-post{
  article.post{
    .entry-header{
      .entry-image{
      }
      h1.entry-title{
        font-size: 30px;
        font-weight: 600;
      }
      .single-entry-meta{
        margin-bottom: 15px;
        span{
          margin-right: 10px;
          &:before{
            font-family: FontAwesome;
            margin-right: 3px;
          }
          a{
            color: $grey;
            &:hover{
              color: $brand-primary;
            }
          }
        }
        .posted-on{
          &:before{
            content: "\f133";
          }
        }
        .posted-by{
          &:before{
            content: "\f2be";
          }
        }
        .comments-counter-list{
          &:before{
            content: "\f0e5";
          }
        }
        .posted-in{
          &:before{
            content: "\f0a3";
          }
        }
        .tags-list{
          &:before{
            content: "\f02b";
          }
        }
      }
    }
  }

  // Related posts

  .related-posts{
    padding-bottom: 10px;
    .related-posts_title{
    }
    ul.related-posts_list{
      padding-left: 0px;
      margin-left: 0px;
      margin-top: 10px;
      li{
        list-style: none;
        padding: 5px 0;
        &:before{
          content: "\f105";
          font-family: fontawesome;
          color: $grey;
        }
        a{
        color: $grey;
        }
        &:hover{
          a{
            color: $brand-primary;
          }
          &:before{
            color: $brand-primary;
          }
        }
      }
    }
  }
}

// navigation

.post-navigation{
  margin-top: 20px;
  margin-bottom: 40px;
  .post-link-nav{
    span{
      a{
        border: 1px solid $gray-lightest;
        padding: 8px;
        background-color: $white;
        color: $brand-secondary;
        -webkit-transition: all 0.3s;
        &:hover{
          border: 1px solid $brand-secondary;
          background-color: $brand-secondary;
          color: $white;
        }
      }
    }
  }
}
// Pagination
.amaaaze-navigation{
  text-align: center;
  margin: 20px 0;
  padding-bottom: 30px;
  ul{
    padding-left: 0px;
    display: inline-block;
    li{
      list-style: none;
      display: inline-block;
      a{
        padding: 10px 15px;
        border: 1px solid $gray-light;
        color: $gray-light;
        -webkit-transition: all 0.3s;
        &:hover{
          color: $white;
          background-color: $brand-primary;
          border: 1px solid $brand-primary;
        }
      }
      &.active{
        a{
          background-color: $brand-primary;
          border: 1px solid $brand-primary;
        }
      }
    }
  }
}
// Comments
.comments-area{
  background: $lighter-grey;
  margin-top: 20px;
  margin-bottom: 40px;
  padding: 40px;
}
.last_field{
  margin-bottom: 40px;
}
.comments-list {
	padding: 0;
	list-style: none;
    li{
        padding: 10px 0;
    }
}
.comment-body {
	padding-bottom: 0;
}
.comment-meta{
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  width: 100%;
  .comment-author, .comment-metadata{
    display: inline-block;
    width: 49%;
  }
  .comment-metadata{
    text-align: right;
  }

}
.children {
	background-color: #F5F5F5;
	padding-right: 20px;
	padding-left: 20px;
	list-style: none;
	margin-left: 60px;
	.comment-author {
		&:before {
		}
	}
    @media(max-width: $screen-xs-max){
        margin-left: 0;
        padding-right: 5px;
    	padding-left: 5px;
    }
}
.comment-author {
	position: relative;
	display: block;
	font-size: 18px;
	font-weight: 300;
	&:before {
		position: absolute;
		content: '';
		display: block;
		top: 10px;
		bottom: 13px;
		left: 40px;
		right: 0;
		background-color: #f5f5f5;
		z-index: 1;
		border-radius: 4px;
	}
	& * {
		z-index: 1;
		position: relative;
	}
	b {
		font-weight: 400;
	}
	.avatar {
		border-radius: 50%;
		margin-right: 10px;
		border: 3px solid $white;
	}
}
.comment-content{
  border-bottom: 1px solid #e1e1e1;
  padding: 20px 0;
  margin-left: 60px;
}
.reply{
  text-align: right;
  margin-top: 15px;
  .comment-reply-link{
    border: 1px solid $grey;
    background: $grey;
    color: $white;
    padding: 5px 10px;
  }
}

.comment-respond {
    .comment-reply-title{
        display: block;
    }
    .comment-form{
        .form-control{
            border-radius: 0;
        }
        label{
          font-weight: 400;
          margin-bottom: 10px;
        }
        textarea.form-control {
            height: auto;
            min-height: 200px;
        }
        .form-submit{
            .review-submit-button{
                @include animate(all, 320ms);
                -moz-appearance: none;
                background-color: $gray-lighter;
                border-color: rgba(0, 0, 0, 0);
                border-radius: 0;
                border-style: solid;
                border-width: 1px;
                color: $dark-grey;
                cursor: pointer;
                margin: 0;
                padding: 20px 40px;
                &:hover,&:focus{
                    background: $brand-primary;
                    color: $white;
                }
            }
        }
    }
}


// Gallery post format
.amaaaze-format-gallery{
  .entry-content{
    header.entry-header{
      .carousel{

      }
    }
  }
}

// Status post format
.amaaaze-format-status{
  .entry-header{
    border: 1px solid $gray-lightest;
    text-align: center;
    .post-details{
      .avatar{
        margin-top: 10px;
        margin-bottom: 5px;
        img{
          border-radius: 50%;
        }
      }
      .status-info{
        p{
          margin-top: 5px;
        }
      }
    }
  }
}

// Link format
article.amaaaze-format-link{
  padding: 10px 0;
  border: 1px solid $brand-primary;
  margin-bottom: 30px;
  background-color: $brand-primary;
  header.entry-header{
    h1.entry-title{
      a{
        color: $white;
        &:hover{
          color: $brand-secondary;
        }
      }
    }
  }
  .entry-excerpt{
    p{
      color: $gray-lightest;
    }
  }
}

// Aside format
.amaaaze-format-aside{
  .aside-container{
    .aside-featured{
      height: 120px;
      max-width: 120px;
      background-attachment: scroll;
    }
  }
}

// Image format
.amaaaze-format-image{
  header{
    position: relative;
    &.background-image{
      &:before{
        position: absolute;
        content: "";
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.55);
      }
    }
    .entry-category{
      text-align: center;
      font-style: italic;
      position: relative;
      span{
        &:before, &:after{
          content: "";
          position: absolute;
          height: 1px;
          border-bottom-width: 1px;
          border-bottom-style: solid;
          top: 50%;
          width: 10px;
        }
        &:before{
          margin-left: -15px;
        }
      }
      a{
        color: $grey;
        margin-right: 5px;
        &:hover{
          color: $brand-primary;
        }
      }
    }
    h1.entry-title{
      text-align: center;
      a{
        text-transform: capitalize;
        margin: 15px 0;
        color: $brand-secondary;
      }
    }
  }
}

// Search page
.search{
  .search-content{
    h3{
      margin-top: 0px;
    }
    form.searchform{
      margin-bottom: 30px;
      .input-group{
        max-width: 350px;
        input, button{
          border-radius: 0px;
        }
      }
    }
  }
}

// Loader
#preloader{
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: $white;
}
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 100px;
  height: 100px;
}
.lds-ripple div {
  position: absolute;
  border: 5px solid $brand-primary;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  -webkit-animation: lds-ripple 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  }
.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}
@keyframes lds-ripple {
  0% {
    top: 40px;
    left: 40px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: -1px;
    left: -1px;
    width: 80px;
    height: 80px;
    opacity: 0;
  }
}

.bypostauthor{
    .comment-meta{
        .comment-author {
            &:before {
        		background-color: rgba(0, 162, 228, 0.1);
        	}
            b {
        		color: $brand-primary;
        	}
        }
    }
    .comment-content{
        border-bottom: 1px solid $brand-primary;
    }
}

// Banner text
h3.banner{
  line-height: 1.5;
  font-size: 33px;
  color: $brand-secondary;
  margin-bottom: 70px;
  b{
    font-weight: 500;
    color: $brand-primary;
  }
}

// portfolio
.tlp-portfolio{
  .isotope1{
    .button-group{
      margin-bottom: 30px;
      margin-left: 0;
      text-align: left;
      button{
        padding: 5px 0;
        margin: 10px 15px;
        background: transparent;
        color: $brand-primary;
        position: relative;
        &:hover{
          background: transparent;
          color: $brand-primary;
          transition: all 0.5s;
        }
        &:before{
          position: absolute;
          content: "";
          top: 0;
          background-color: $brand-primary;
          width: 30px;
          left: 0;
          height: 2px;
          transform: scale(0);
          transition: all 0.5s;
        }
        &.selected{
          background: transparent;
          &:before{
            transform: scale(1);
          }
        }
      }
    }
    .tlp-portfolio-isotope{
      .tlp-item{
        .tlp-portfolio-item{
          position: relative;
          &:before{
            content: "";
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            position: absolute;
            background-color: rgba(0,0,0,0.3);
            width: 100%;
            height: 100%;
            z-index: 1;
            transition: all 0.3s;
            transform: scale(0);
          }
          .tlp-portfolio-thum{

            .tlp-overlay{
              display: none;
            }
          }
          .tlp-content{
            background: transparent;
            position: absolute;
            top: 40%;
            text-align: center;
            z-index: 2;
            display: none;
            transition: all 0.3s;
            h3{
              a{
                color: $brand-primary;
                text-transform: capitalize;
              }
            }
          }
          &:hover{
            &:before{
              transform: scale(1);
            }
            .tlp-content{
              display: block;
              h3{
                a{
                  color: $white;
                }
              }
            }
          }
        }
      }
    }
  }
}

// portfolio detail
.tlp-portfolio-detail{
  margin-bottom: 30px;
  padding-bottom: 30px;
  .portfolio-detail-desc{
    .portfolio-title{
      margin-top: 0px;
      text-transform: capitalize;
    }
    .others-info{
      ul.single-item-meta{
        li{
          color: $grey;
        }
      }
    }
  }
}
