/* ==========================================================================
# Search style - begin
========================================================================== */

.edgtf-search-opener {
	@include edgtfTransition(all 0.15s ease-out);

	.edgtf-search-icon-text {
		@include edgtfTransition(all 0.15s ease-out);
	}
}

.edgtf-light-header .edgtf-page-header > div:not(.edgtf-sticky-header) .edgtf-search-opener,
.edgtf-light-header.edgtf-header-style-on-scroll .edgtf-page-header .edgtf-search-opener,
.edgtf-light-header .edgtf-top-bar .edgtf-search-opener {
	color: $header-light-color !important; //Color can be set inline from widget opener
}

.edgtf-dark-header .edgtf-page-header > div:not(.edgtf-sticky-header) .edgtf-search-opener,
.edgtf-dark-header.edgtf-header-style-on-scroll .edgtf-page-header .edgtf-search-opener,
.edgtf-dark-header .edgtf-top-bar .edgtf-search-opener {
	color: $header-dark-color !important; //Color can be set inline from widget opener
}

/* Search slides from window top - begin
========================================================================== */
.edgtf-search-slides-from-window-top {

	.edgtf-top-bar,
	.edgtf-page-header {
		top: 0;
		@include edgtfTransition(all 0.25s ease-out);
	}

	.edgtf-mobile-header {
		@include edgtfTransition(all 0.25s ease-out);
	}

	.content_inner {
		margin-top: 0;
		@include edgtfTransition(all 0.25s ease-out);
	}

	.mobile-header-appear .edgtf-mobile-header-inner {
		padding-top: 0;
		@include edgtfTransition(all 0.25s ease-out);
	}

}

.edgtf-search-slides-from-window-top.edgtf-search-open {

	.edgtf-page-header,
	.edgtf-top-bar {
		top: 50px;
	}

	.edgtf-search-slide-window-top {
		height: 50px;
	}

	.edgtf-mobile-header {
		top: 50px !important; /* Mobile header has important top on max-width (1000px) */
	}

	.mobile-header-appear .edgtf-mobile-header-inner {
		padding-top: 50px;
	}

	.content_inner {
		margin-top: 50px;
	}

	.edgtf-sticky-header.header-appear {
		@include edgtfTransform(translateY(50px));
	}

}

.edgtf-fixed-wrapper.fixed .edgtf-search-slide-window-top {
	position: static;
}

.edgtf-search-slide-window-top {
	background: none repeat scroll 0 0 #1f1f1f;
	color: #fff;
	margin: 0;
	overflow: hidden;
	width: 100%;
	height: 0;
	position: fixed;
	top:0;
	left:0;
	@include edgtfTransition(all 0.25s ease-out);

	.form-inner {
		padding: 0 45px;
	}

	.edgtf-container-inner {
		position: relative;
	}

	.edgtf-icon-search {
		color: #fff;
		font-size: 13px;
		display: inline-block;
		float: left;
		line-height: 50px;
		width: 50px;
		text-align: center;
	}

	.edgtf-container {

		i {
			padding: 0;
		}

		input{
			width: 90%;
			padding: 0 0 0 10px;
		}

		.edgtf-search-close {
			right: 0;
		}

	}

	input,
	input:focus {
		background-color: inherit;
		border: medium none;
		box-shadow: none;
		color: #fff;
		display: inline-block;
		font-size: 14px;
		line-height: 20px;
		font-weight: 700;
		height: 20px;
		margin: 15px 0;
		width: 90%;
		padding: 0 0 0 10px;
		font-family: inherit;
		outline: none;
		outline-offset:0;
		-webkit-appearance: none;
		border-radius: 0;
		float: left;
		@include placeholder(#fff);
	}

	input:focus{
		outline-offset: 0 !important;
	}

	input[type="submit"] {
		border: 0 none;
		clip: rect(0px, 0px, 0px, 0px);
		height: 1px;
		margin: -1px;
		padding: 0;
		position: absolute;
		width: 1px;
		visibility: hidden;
	}

	.edgtf-search-close {
		color: #fff;
		font-size: 13px;
		position: absolute;
		line-height: 50px;
		height: 50px;
		top: 0;
		right: 45px;

		a{
			color: inherit;
		}
	}

}

/* Search slides from window top - end
========================================================================== */

/* Search covers header - begin
========================================================================== */

.edgtf-search-cover {
	display: none;
	color: #fff;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 115;
	background:#303030;

	.edgtf-form-holder-outer {
		display: table;
		width: 100%;
		height:100%;
	}

	.edgtf-form-holder {
		display: table-cell;
		vertical-align: middle;
		padding:0 45px;
		position:relative;
	}

	.edgtf-form-holder-inner {
		display: inline-block;
		vertical-align: middle;
		width: 100%;
	}

	.edgtf-container-inner {

		.edgtf-form-holder {
			padding: 0;
		}

		.edgtf-search-close {
			right: 0;
		}

	}
	
	.edgtf-search-submit-holder{
		display: table-cell;
		vertical-align: middle;
		text-align: center;
		width: 85px;

		&:after{
			content: '';
			height: 100%;
			width: 1px;
			position: absolute;
			top:0;
			left: 85px;
			background-color: rgba(255,255,255,0.2);
		}
	}

	input,
	input:focus {
		background-color: transparent;
		border: medium none;
		box-shadow: none;
		color: #fff;
		font-size: 16px;
		font-weight: 700;
		display: inline-block;
		width: 90%;
		padding:0;
		font-family: inherit;
		outline: none;
		outline-offset:0px;
		-webkit-appearance: none;
		border-radius: 0;
		float: left;
		margin: 0;
		@include placeholder(#fff);
	}

	input:focus {
		outline-offset: 0 !important;
	}

	input[type="submit"] {
		padding: 0;
		border:none;
		background:transparent;
		outline:none;
		width: 100%;
		cursor: pointer;
		font-family: "Ionicons";
		font-size:20px;
		line-height:1.1em;
		font-weight: 400;
		color: #fff;
		@include edgtfTransition(color 0.2s ease);
	}

	.edgtf-search-close {
		font-size: 14px;
		position: absolute;
		top:50%;
		@include edgtfTransform(translateY(-50%));
		line-height:1em;
	}

	.edgtf-search-close {

		a {
			color: #fff;
			display: inline-block;
		}

		a:hover {
			color: #ababab;
		}

		a i {
			vertical-align: top;
		}

	}

}

.edgtf-search-cover.disabled {

	input,
	input:focus{
		font-weight: normal;
	}

}

::-webkit-input-placeholder,
:-moz-placeholder,
::-moz-placeholder,
:-ms-input-placeholder{
	color: #959595;
	margin: 10px 0px 0px 0px;
}

/* Fullscreen search general style - start
========================================================================== */

.edgtf-fullscreen-search-holder {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:105;
	opacity:0;

	.edgtf-field-holder {
		width:62%;
		display:inline-block;
		vertical-align:bottom;
		position:relative;
		border-bottom:1px solid #a1a1a1;

		.edgtf-line {
			position:absolute;
			bottom:-1px;
			left:0;
			height:1px;
			width:0;
			background-color: #fff;
			@include edgtfTransition(width 0.3s ease);
		}

	}

	.edgtf-search-field {
		width:100%;
		border-left:none;
		border-top:none;
		border-right:none;
		border-bottom:none;
		background:transparent;
		outline:none;
		height:100%;
		font-size:44px;
		font-family: inherit;
		color: #fff;
		line-height:1em;
		font-weight: 700;
		position:relative;
		padding: 0 20px 20px;
		@include edgtfBoxSizing(border-box);
		@include placeholder(#fff);
	}

	.edgtf-search-submit {
		position: absolute;
		top: 10px;
		right: 12px;
		border:none;
		background:transparent;
		outline:none;
		width: auto;
		cursor: pointer;
		font-family: 'Linearicons-Free';
		font-size:30px;
		font-weight: 600;
		line-height:1em;
		color: #fff;
		@include edgtfTransition(color 0.2s ease);
	}

	.edgtf-search-submit:hover {
		color: #696969;
	}

	.edgtf-search-close-holder {
		float:right;
		margin-right: 45px;
	}

	.edgtf-fullscreen-search-close-container {
		position:absolute;
		left:0;
		top:0;
		width:100%;

		a {
			opacity:0;
			visibility:hidden;
			-webkit-transition: opacity 0.2s ease, color 0.2s ease;
			transition: opacity 0.2s ease, color 0.2s ease;
			position: absolute;
			top: 40px;
			right: 40px;
			color: #fff;
			font-size: 20px;
		}

	}

}

.edgtf-fullscreen-search-table {
	display: table;
	width:100%;
	height:100%;
	background-color: #1f1f1f;
}

.edgtf-fullscreen-search-cell {
	display: table-cell;
	vertical-align: middle;
	width:100%;
	height:100%;
	text-align:center;
}

//Fix for woocommerce page
.edgtf-fullscreen-search-opened .edgtf-form-holder .edgtf-search-field {
	width:100%;
	border-left:none;
	border-top:none;
	border-right:none;
	border-bottom:none;
	background:transparent;
	outline:none;
	height:100%;
	font-size:44px;
	font-family: inherit;
	color: #fff;
	line-height:1em;
	font-weight: 700;
	position:relative;
	padding: 0 20px 20px;
	@include edgtfBoxSizing(border-box);
}

/* Fullscreen search general style - end
========================================================================== */

/* Fullscreen search from circle style - start
========================================================================== */

.edgtf-fullscreen-search-overlay {
	position:absolute;
	width:2000px;
	height:2000px;
	margin-top:-1000px;
	margin-left:-1000px;
	top:50%;
	left:0;
	border-radius:100%;
	opacity:0;
	z-index:99;
	-ms-transform-origin: 50%;
	-webkit-transform-origin: 50%;
	transform-origin: 50%;
	@include edgtfTransform(scale(0));
	background-color: #1f1f1f;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-ms-transition: -ms-transform 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.6s cubic-bezier(0.4,0,0.2,1);
	-webkit-transition: -webkit-transform 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.6s cubic-bezier(0.4,0,0.2,1);
	transition: transform 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.6s cubic-bezier(0.4,0,0.2,1);
}


.edgtf-fullscreen-search-overlay.edgtf-animate{
	@include edgtfTransform(scale(3));
	opacity:1;
}

.edgtf-search-from-circle .edgtf-fullscreen-search-holder {
	@include edgtfTransition(opacity 0.3s ease);
	display:none;
	opacity:0;
	visibility:visible;
	z-index:111;
}

/* Fullscreen search from circle style - end
========================================================================== */

/* Fullscreen search fade style - start
========================================================================== */

.edgtf-search-fade .edgtf-fullscreen-search-holder {
	visibility: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	opacity: 0;
	z-index:111;
	box-sizing: border-box;
}

.edgtf-search-fade-out.edgtf-search-fade .edgtf-fullscreen-search-holder {
	@include edgtfAnimation(search_fade_out .25s linear both);
}

.edgtf-search-fade-in.edgtf-search-fade .edgtf-fullscreen-search-holder.edgtf-animate{
	@include edgtfAnimation(search_fade_in .25s linear both);
}

.edgtf-search-fade .edgtf-fullscreen-search-holder.edgtf-animate .edgtf-fullscreen-search-close {
	opacity:1;
	visibility:visible;
}


@-webkit-keyframes search_fade_out {
	0%{
		opacity:1;
		visibility: visible;
	}
	100%{
		opacity:0;
		visibility: hidden;
	}
}
@keyframes search_fade_out{
	0%{
		opacity:1;
		visibility: visible;
	}
	100% {
		opacity:0;
		visibility: hidden;
	}
}
@-webkit-keyframes search_fade_in {
	0% {
		opacity:0;
		visibility: hidden;
	}
	100% {
		opacity:1;
		visibility: visible;
	}
}
@keyframes search_fade_in{
	0%{
		opacity:0;
		visibility: hidden;
	}
	100%{
		opacity:1;
		visibility: visible;
	}
}

/* Fullscreen search fade style - end
========================================================================== */

/*---------------Fade animation with PUSH TEXT TOP------------*/

@-webkit-keyframes search_push_text_top{
	0%{
		opacity:0;
		-webkit-transform:translateY(60px);
		transform:translateY(60px)
	}
	100%{
		opacity:1;
		-webkit-transform:translateY(0);
		transform:translateY(0)
	}
}

@keyframes search_push_text_top{
	0%{
		opacity:0;
		-webkit-transform:translateY(60px);
		transform:translateY(60px);
	}
	100%{
		opacity:1;
		-webkit-transform:translateY(0);
		transform:translateY(0)
	}
}

.edgtf-search-fade.edgtf-fullscreen-search-opened .edgtf-fullscreen-search-holder .edgtf-form-holder {
	-webkit-backface-visibility:hidden;
	backface-visibility:hidden;
	@include edgtfAnimation(search_push_text_top .4s ease-out both .25s);
}

.edgtf-search-fade-out.edgtf-search-fade .edgtf-fullscreen-search-holder .edgtf-search-submit,
.edgtf-search-fade-out.edgtf-search-fade .edgtf-fullscreen-search-holder .edgtf-field-holder {
	-webkit-backface-visibility:hidden;
	backface-visibility:hidden;
	@include edgtfTransform(translateY(-30px));
	@include edgtfTransition(transform 0.75s ease-out);
}

/*----------------------FULLSCREEN SEARCH style end--------------------------*/

.edgtf-blog-holder.edgtf-search-page {
	article {
		padding-bottom: 37px;
		margin-bottom: 30px;
		border-bottom: 1px solid $default-border-color;

		&:last-child {
			border-bottom: none;
		}

		&.format-link,
		&.format-quote {
			.edgtf-post-text {
				background-color: transparent;
				padding: 0;
				border: none;
			}
		}

		.edgtf-post-text-inner > h2:not(.edgtf-post-title) {
			margin: 30px 0;
		}
	}

}
.search-results .edgtf-content .edgtf-content-inner > .edgtf-container > .edgtf-container-inner {
	padding: 57px 0 69px;
}

/* ==========================================================================
# Search style - end
========================================================================== */
