// Widget scss

.amaaaze-topbar-widget{
    display: inline-block;
    .amaaaze-widget-title{
        display: none;
    }
    &.amaaaze-widget{
        margin: 0;
        padding: 0;
        .amaaaze-widget-title{
            display: none;
        }
    }
}
.amaaaze-widget{
    margin: 30px 0 50px;
    padding: 0 20px;
    ul {
    	list-style: none;
    	margin: 0;
    	padding: 0;
    }

    li {
    	padding: 0;
    	margin-bottom: 10px;
        color: $grey;
    	a {
    		color: $darker-grey;
        &:hover{
            color: $brand-primary;
        }
    	}
      .post_count{
        color: $brand-primary;
        float: right;
      }
    }
    h2.amaaaze-widget-title{
      display: block;
      font-size: 26px;
      font-weight: 500;
      text-transform: capitalize;
      color: $darker-grey;
      padding-bottom: 10px;
      line-height: 1.4;
      margin-bottom: 20px;
      a {
          color: $darker-grey;
          &:hover{
              color: $brand-primary;
          }
      }
    }
    select{
      border-radius: 0px;
      border: 1px solid $gray-light;
      padding: 8px;
      background: white;
    }
    input, select, textarea{
        width: 100%;
    }
    @media(min-width: $screen-sm-min) and (max-width: $screen-sm-max){
        padding: 0;
    }
}
.widget_text{
    .textwidget{
        p{
            font-size: 16px;
        }
    }
}
// Recent

.widget_recent_entries{
  ul{
    li{
      a{
        display: block;
      }
    }
  }
}

// categories

.widget_categories{
  ul{
    li{
      span{
        &:before{
          content: "(";
        }
        &:after{
          content: ")";
        }
      }
    }
  }
}

// Tag
.widget_tag_cloud{
  .tagcloud{
    a.tag-cloud-link{
      background-color: $brand-secondary;
      padding: 8px 10px;
      font-size: 14px !important;
      color: white;
      line-height: 2.6;
      font-weight: 500;
      &:hover{
        background-color: $grey;
      }
    }
  }
}

// Image
.widget_media_image{
  img.banner_ad{
    position: relative;
    &:before{
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      content: "";
      background-color: rgba(0,0,0,2.5);
    }
  }
}
// Footer
.amaaaze-footer-container{
  padding-bottom: 75px;
  padding-top: 80px;
  .contact-info{
    text-align: center;
    color: $grey;
    a{
      color: $grey;
    }
    .fa-icon{
      color: $brand-primary;
      font-family: FontAwesome;
      font-size: 26px;
      margin-bottom: 20px;
    }
  }
}
.amaaaze-footer-copyright{
  .container{
    border-top: 1px solid $gray-lightest;
    padding: 30px 0;
  }
  .site-info{
    position: relative;
    top: 5px;
    a{
      color: $text-color;
      &:hover{
        color: $brand-primary;
      }
    }
    h1.site-title{
      font-size: 42px;
      a{
        color: $white;
        &:hover{
          color: $brand-primary;
        }
        img{
          max-width: 200px;
          width: 100%;
        }
      }
    }
  }
}
.amaaaze-footer{
  background-color: $lighter-grey;
  .amaaaze-widget{
    margin: 0;
    padding: 0;
    h2.amaaaze-widget-title{
      color: $brand-primary;
      margin: 0px;
      text-transform: capitalize;
      font-size: 24px;
      font-weight: 500;
      padding-bottom: 40px;
      padding-top: 6px;
    }
    .single-footer-widget{
      .footer-logo{
        padding: 0 0 10px;
        br{
          display: none;
        }
      }
      .amaaaze-info{
        margin: 0 0 30px;
        p{
          mark{
            background: none;
            color: $brand-primary;
            font-weight: 700;
          }
        }
      }
      ul.footer-contact-info{
        li{
          border-bottom: 1px solid $brand-secondary;
          margin-bottom: 7px;
          padding-bottom: 9px;
          padding-left: 30px;
          position: relative;
          p{
            margin: 0;
            color: $gray-lighter;
          }
          .icon-holder{
            position: absolute;
            left: 0;
            top: 0;
            em{
              color: $brand-primary;
            }
          }
        }
      }
    }
    &.amaaaze-popular-posts-widget{
      .popular-post{
        position: relative;
        margin-bottom: 10px;
        .img-holder{
          width: 20%;
          height: auto;
          top: 0;
          left: 0;
          overflow: hidden;
          float: left;
          position: relative;
          img{
            -webkit-transform: scale(1);
            transform: scale(1);
            -webkit-transition: all 0.5s ease 0s;
            transition: all 0.5s ease 0s;
            width: 100%;
            height: 60px;
          }
          a{
            position: absolute;
            z-index: 1;
            margin: 0 auto;
            left: 35%;
            top: 28%;
            width: 20px;
            height: 20px;
            opacity: 0;
            filter: alpha(opacity=0);
            -webkit-transition: all 450ms ease-out 0s;
            transition: all 450ms ease-out 0s;
            -webkit-transform: rotateY(180deg) scale(0.5,0.5);
            transform: rotateY(180deg) scale(0.5,0.5);
            &:after{
              content: "\f0c1";
              font-family: FontAwesome;
              position: absolute;
              color: $white;
            }
          }
          &:before{
            position: absolute;
            content: "";
            background-color: rgba(0, 0, 0, 0.6);
            height: 100%;
            width: 100%;
            left: 0;
            top: 0;
            right: 0;
            -webkit-transition: all 500ms ease;
            margin: 0 auto;
            opacity: 0;
            filter: alpha(opacity=0);
            -webkit-transition: all 450ms ease-out 0s;
            transition: all 450ms ease-out 0s;
            -webkit-transform: rotateY(180deg) scale(0.5,0.5);
            transform: rotateY(180deg) scale(0.5,0.5);
            z-index: 1;
          }
        }
        .text-holder{
          position: relative;
          top: -4px;
          width: 80%;
          float: left;
          padding-left: 35px;
          margin-bottom: 20px;
          .post-title{
            margin: 0 0 10px;
            a{
              color: $gray-lighter;
              transition: all 500ms ease;
              &:hover{
                color: $brand-primary;
              }
            }
          }
          ul{
            li{
              border-right: 1px solid $brand-primary;
              display: inline-block;
              float: left;
              line-height: 15px;
              margin-right: 10px;
              padding-right: 10px;
              transition: all 500ms ease;
              a{
                color: $brand-primary;
              }
              &:nth-last-child(1){
                border-right: 0px none;
              }
            }
          }
        }
        &:hover{
          .img-holder{
            &:before,a{
              opacity: 1;
              filter: alpha(opacity=100);
              -webkit-transform: rotateY(0deg) scale(1,1);
              transform: rotateY(0deg) scale(1,1);
            }
          }
        }
      }
    }
  }
}
.third{
  .textwidget{
    p{
      color: $gray-lighter;
      margin: 0 0 11px;
    }
    h4{
      color: $gray-lighter;
      font-weight: 400;
      font-style: italic;
      font-size: 16px;
      line-height: 28px;
      margin: 12px 0 10px;
    }
  }
}
.tnp-subscription-minimal{
  form{
    position: relative;
    input.tnp-email{
      background: #1e1e1e;
      border: 1px solid $brand-secondary;
      color: $gray-lighter;
      display: block;
      font-size: 14px;
      font-weight: 400;
      font-style: italic;
      height: 50px;
      padding-left: 15px;
      padding-right: 55px;
      position: relative;
      -webkit-transition: all 500ms ease 0s;
      transition: all 500ms ease 0s;
      width: 100%;
      max-width: 350px;
      box-shadow: none;
      &:focus{
        border: 1px solid $brand-primary;
        background: $gray-lighter;
        color: $darker-grey;
      }
      &:focus + input.tnp-submit{
        background: $brand-primary none repeat scroll 0 0;
        color: $darker-grey;
        border-color: $brand-primary;
      }
      &:focus + input.tnp-submit + *:before{
        color: $brand-secondary;
      }
    }
    input.tnp-submit{
      background: #1e1e1e none repeat scroll 0 0;
      border-left: 2px solid $brand-secondary;
      color: $brand-primary;
      display: block;
      height: 50px;
      padding: 10.5px 0;
      position: absolute;
      right: 0;
      text-align: center;
      top: 0;
      -webkit-transition: all 500ms ease 0s;
      transition: all 500ms ease 0s;
      width: 50px;
      border-top: 1px solid $brand-secondary;
      border-right: 1px solid $brand-secondary;
      border-bottom: 1px solid $brand-secondary;
      font-size: 0px;
      &:hover{
        background: $brand-primary none repeat scroll 0 0;
        border-color: $brand-primary;
      }
      &:hover + *:before{
          color: $darker-grey;
      }
    }

    input.tnp-submit + *:before {
      content: "\f1d8";
      font-family: FontAwesome;
      color: $brand-primary;
      font-size: 14px;
      &:hover + input.tnp-submit{
        background: $brand-primary none repeat scroll 0 0;
        border-color: $brand-primary;
      }
    }
    .icon{
      position: absolute;
      right: 20px;
      top: 10px;
      z-index: 1;
    }
  }
}

// gallery
.widget_media_gallery{
  .gallery{
    .gallery-item{
      margin: 0px;
      .gallery-icon{
        position: relative;
        &:before{
          background-color: rgba(0,0,0,0.6);
          width: 100%;
          height: 100%;
          z-index: 1;
          opacity:0;
          position: absolute;
          content: "";
          filter: alpha(opacity=0);
          -webkit-transition: all 450ms ease-out 0s;
          transition: all 450ms ease-out 0s;
          -webkit-transform: rotateY(180deg) scale(0.5,0.5);
          transform: rotateY(180deg) scale(0.5,0.5);
        }
        a{
          &:before{
            position: absolute;
            content: "\f0c1";
            font-family: fontawesome;
            z-index: 1;
            opacity: 0;
            color: $white;
            top: 35%;
            left: 40%;
            filter: alpha(opacity=0);
            -webkit-transition: all 450ms ease-out 0s;
            transition: all 450ms ease-out 0s;
            -webkit-transform: rotateY(180deg) scale(0.5,0.5);
            transform: rotateY(180deg) scale(0.5,0.5);
          }
          img{
            position: relative;
          }
        }
        &:hover{
          &:before, a:before{
            opacity: 1;
            filter: alpha(opacity=100);
            -webkit-transform: rotateY(0deg) scale(1,1);
            transform: rotateY(0deg) scale(1,1);
          }
        }
      }
    }
  }
}

// Search
.widget_search{
  form.searchform{
    .input-group{
      input{
        border-radius: 0px;
        height: 50px;
      }
      span.input-group-btn{
        button{
          border-radius: 0px;
          width: 50px;
          height: 50px;
        }
      }
    }
  }
}

// Newsletter
.widget_newsletterwidgetminimal{
  border: 2px solid $brand-primary;
  .tnp-widget-minimal{
    margin-bottom: 20px;
    form.tnp-form{
      display: inline-flex;
      input.tnp-email{
        width: 80%;
      }
      input.tnp-submit{
        float: right;
        width: 50px;
        font-weight: 600;
      }
    }
  }
}

// Home widget
.home-sidebar{
  h2.amaaaze-widget-title{
    text-align: center;
    font-size: 14px;
  }
  .widget_nav_menu{
    margin-top: 50px !important;
  }
  .menu-social-container{
    text-align: center;
  }
}
//  Social menu
.menu-social-container{
  margin-top: 0px;
  margin-bottom: 0px;
  width: 100%;
  box-shadow: none;
  li{
    max-width: 58px;
    display: inline-block;
    margin-bottom: 0px;
    a{
      color: transparent;
      font-size: 0;
      padding: 0;
      background-color: $brand-secondary;
      line-height: 36px;
      color: $white;
      border: 1px solid $brand-secondary;
      width: 36px;
      height: 36px;
      text-align: center;
      border-radius: 50%;
      display: block;
      &:after{
        font-family: fontawesome;
        font-size: 14px;
        color: $white;
      }
    }
    &.facebook{
      a{
        &:after{
          content: "\f09a";
        }
      }
    }
    &.twitter{
      a{
        &:after{
          content: "\f099";
        }
      }
    }
    &.linkedin{
      a{
        &:after{
          content: "\f0e1";
        }
      }
    }
    &.google{
      a{
        &:after{
          content: "\f1a0";
        }
      }
    }
    &.youtube{
      a{
        &:after{
          content: "\f16a";
        }
      }
    }
  }
}

// Popular post
.amaaaze-popular-posts-widget{
  .popular-post:last-child{
    border-bottom: 0px none;
  }
  .popular-post{
    display: inline-flex;
    width: 100%;
    margin-bottom: 20px;
    border-bottom: 1px solid $gray-lightest;
    .img-holder{
      width: 30%;
      img{
        width: 60px;
        height: 60px;
        border-radius: 50%;
      }
    }
    .text-holder{
      width: 70%;
      .post-title{
        a{
          font-weight: 500;
          color: $brand-secondary;
        }
      }
      ul{
        li{
          &.author{
            display: none;
          }
          &.date{
            font-style: italic;
            font-weight: lighter;
            a{
              color: $light-grey;
            }
          }
        }
      }
    }
  }
}
