/*
Theme Name: The Cooking Project
Theme URI: https://github.com/a8cteam51/thecookingproject
Template: pique
Author: WordPress.com Special Projects Team
Author URI: https://wpspecialprojects.wordpress.com
Description: A custom theme designed and built for The Cooking Project
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
*/

/* Change main link color to blue with pink hover */
a,
.pique-panel .edit-link a {
	color: #3f7da2;
}

a:hover {
	color: #e91572;
}

.main-navigation a:hover,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a {
	color: #e91572 !important;
}

/* Change button style to more closely match original  */
button,
.archive .read-more a,
.blog .read-more a,
.search-results .read-more a,
.button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	background-color: #e91572;
	border-radius: 10px;
	padding-left: 2em;
	padding-right: 2em;
}

@media (max-width: 767px) {
  .button {
	display: block;
	margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .button + .button {
    margin-top: -1em;
  }
}


button:hover,
.archive .read-more a:hover,
.blog .read-more a:hover,
.search-results .read-more a:hover,
.button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #e91572;
	color: #e91572;
}

button:focus,
.archive .read-more a:focus,
.blog .read-more a:focus,
.search-results .read-more a:focus,
.button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
	background-color: #d9146a;
	border-color: #e91572;
	color: #fff;
}

/* Minimal button  */
button.minimal,
.button.minimal {
	background-color: transparent;
	border-color: #0180b9;
	color: #0180b9;
}

button.minimal:hover,
.button.minimal:hover {
	background-color: #0180b9;
	border-color: none;
	color: #fff;
}

button.minimal:focus,
.button.minimal:focus {
	background-color: transparent;
	border-color: #0175a8;
	color: #0175a8;
}

/* Ensure buttons align when centered */
.aligncenter {
	text-align: center;
}

/* Change main text color to grey */
.pique-panel-content,
.pique-panel-content h2 {
	color: #747474;
}

.pique-panel-content h2 a {
	color: #3f7da2;
}

/* Adjust Pique Panel headings */
.pique-panel-content h2,
.pique-panel-content h2::before,
.pique-panel-content h2::after {
	border: none;
}

.pique-panel-content h2.entry-title {
	border-color: #ccc;
	font-weight: normal;
}

/* Fine-tune hero image to use full height and have no overlay. */
#pique-hero {
	min-height: 100vh;
}

#pique-hero .pique-panel-background {
	background-size: cover;
	opacity: 1;
}

#pique-hero .pique-panel-background::before {
	display: none;
}

#pique-hero .pique-panel-content .entry-content p:first-of-type {
    font-size: 1.4em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.75);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

#pique-hero .pique-panel-content .entry-content p:first-of-type a {
	color: white;
}

/* Make main panels white and light grey */
.pique-panel {
	background: #fff;
	border-bottom: 1px solid #ddd;
}

.pique-panel:nth-of-type(even) {
	background-color: #fbfbfb;
}

.pique-panel-background {
	opacity: 0.25;
}

.pique-panel-background::before {
	background: #ffffff95;
}

/* Remove text shadows on panels */
.pique-panel-content {
	text-shadow: none;
}

/* Add some padding to the Good Food Guide featured badge, because we're not animals here. */
.featured-badge {
	margin: -90px auto 40px;
}

@media (max-width: 480px) {
	.featured-badge {
		margin: -45px auto 20px;
		max-width: 150px;
	}
}

/* Override Elements in the Masthead */
#masthead,
.pique-frontpage #masthead {
	background: #eee;
	height: 65px !important;
	text-align: left;
}

.site-branding .site-title {
	font-size: 1.5em;
	margin: 40px 0 50px;
	letter-spacing: -1px;
	text-shadow: none;
}

.home .site-branding .site-title {
	display: none;
}

.site-branding .site-title a {
	color: #3f7da2;
}

.site-branding .site-description {
	display: none;
}

.pique-frontpage .main-navigation:not(.sticky) {
    margin-top: 0;
}

.pique-frontpage .main-navigation.sticky {
	padding-top: .4em;
}

.main-navigation {
	background: #eee;
	border-bottom: 0;
	border-top: 0;
}

.main-navigation a {
	padding-right: 2px;
}

.main-navigation a,
.main-navigation ul ul a {
	color: #999;
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: normal;
}

.home #primary-menu {
	float: left;
	padding-top: 6px;
	text-align: center;
	width: 56%;
}

.main-navigation a:hover {
	color: #282d30;
}

/*Top Widgets */
#top-widgets {
	float: right;
	margin: 5px auto 0;
	padding-right: 0;
	width: 22%;
}

#top-widgets .widget-area {
	width: 100%;
}

#top-widgets .widget {
	border-top: 0;
	margin-bottom: 0;
}

#top-widgets .widget.widget_wpcom_social_media_icons_widget ul {
    margin: 0;
}

#top-widgets .widget.widget_wpcom_social_media_icons_widget ul a {
	background: #e91572;
	border-color: #e91572;
}

#top-widgets .widget.widget_wpcom_social_media_icons_widget ul a:hover {
	opacity: 0.6;
}

#top-widgets .widget.widget_wpcom_social_media_icons_widget ul a::before {
	color: #fff;
}

/* Main Nav on Single Pages & archives */
.single .main-navigation:not(.sticky) {
    border: none;
	margin-top: 1em;
	position: relative;
}

.archive .main-navigation,
.page .main-navigation {
	top: 1.1em;
}

.home .main-navigation {
	top: 0;
}

/* Floating and positioning of header elements */
.logo {
	float: left;
	width: 20%;
}

@media (min-width: 1024px) {
	.main-navigation .site-logo-link {
	    padding: 10px 0 0 40px;
	}
}

.main-navigation {
	width: 100%;
}

.main-navigation.sticky {
	padding-top: .5em;
	width: 100%;
}

#site-navigation-wrapper {
	bottom: 11px;
	position: relative;
}

/* Banner */
.thecookingproject-banner {
	background-color: #767676;
	clear: both;
	color: white;
	padding: 5px;
	text-align: center;
	width: 100%;
}

.thecookingproject-banner a {
	color: #ddd;
	font-size: 1rem;
	font-weight: 400;
	text-transform: none;
}

.thecookingproject-banner a:hover {
	color: white !important;
}

/* New Category links on front news panel */
.archive-link {
	text-align: center;
}
.archive-link a {
	font-weight: 700;
}

/* Responsive Tabs Style Adjustments */
.responsive-tabs .responsive-tabs__panel br {
	display: none;
}

/* Media Queries Adjustments */
@media ( max-width: 850px ) {
	.logo,
	.menu-main-container,
	.home #primary-menu,
	#top-widgets {
	    float: none;
	    width: 100%;
	    text-align: center;
	}
	#pique-hero .pique-panel-content .entry-content {
		margin-top: 4em;
	}
	.site-content {
		padding-top: 8em;
	}

	.pique-frontpage .site-content, .pique-frontpage .content-area, .archive .site-content, .archive .content-area, .blog .site-content, .blog .content-area, .search-results .site-content, .search-results .content-area {
		padding-top: 2.2em;
	}
}

@media (min-width: 768px) {
	.main-navigation ul ul {
	    min-width: 210px;
	}
	.pique-frontpage #site-navigation:not(.sticky) {
    	background: #eee;
	}
}

@media (min-width: 1024px) {
	.single.pique-sidebar .site-content .content-area,
	.page.pique-sidebar .site-content .content-area {
	    width: 75%;
	}
	.home.pique-sidebar .site-content .content-area {
		width: 100%;
	}
	.pique-sidebar .widget-area {
	    width: 23%;
	}
}
