/*
Theme Name: Sevenseek Guides
Theme URI: https://www.sevenseek.com/guides/
Description: A WordPress theme matching the Sevenseek Web Directory design, for editorial guides and articles.
Version: 1.0
Author: Sevenseek
Author URI: https://www.sevenseek.com
*/

/* ==========================================================================
   BASE — matches csshome.css / css.css
   ========================================================================== */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	text-align: center;
	background-color: #e3decd;
	color: #444444;
	font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	font-size: 100%;
	line-height: 1.6;
}

h1 {
	font-size: 1.6em;
	font-weight: 700;
	color: #333333;
	margin-bottom: 8px;
	margin-top: 0;
	line-height: 1.3;
}

h2 {
	font-size: 1.35em;
	font-weight: 600;
	color: #5ea620;
	margin-bottom: 12px;
	margin-top: 24px;
}

h3 {
	font-size: 1.15em;
	font-weight: 600;
	color: #444444;
	margin-bottom: 8px;
	margin-top: 20px;
}

p {
	margin-bottom: 14px;
}

a, a:visited {
	color: #3a8fc2;
	text-decoration: none;
	transition: color 0.2s ease;
}
a:hover {
	color: #276d9a;
	text-decoration: underline;
}

a img {
	border: none;
}

li {
	list-style-type: none;
}

img {
	max-width: 100%;
	height: auto;
}


/* --- OUTER WRAPPER --- */
#outwrap {
	background: linear-gradient(
		to bottom,
		#c8dff0 0%,
		#dde9f2 80px,
		#eef3f0 160px,
		#f0ede4 260px,
		#e8e3d2 400px,
		#e3decd 500px
	);
	float: left;
	width: 100%;
}


/* --- MAIN CONTAINER --- */
#wrap {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 0 20px;
}


/* --- HEADER --- */
#header {
	background-image: url(https://www.sevenseek.com/images/people.jpg);
	background-repeat: no-repeat;
	background-position: calc(100% - 18px) top;
	height: 186px;
	position: relative;
}

.logo {
	height: 89px;
	width: 275px;
	position: absolute;
	left: 0;
	top: 46px;
	display: block;
	background-image: url(https://www.sevenseek.com/images/logo.jpg);
	background-repeat: no-repeat;
	background-size: contain;
}


/* --- NAVIGATION --- */
#mainnav {
	float: left;
	height: 44px;
	width: 49%;
	margin-top: 13px;
	list-style-type: none;
	display: flex;
}

#mainnav li {
	float: left;
	margin-right: 0;
}

#mainnav li a {
	background-repeat: no-repeat;
	display: block;
	height: 44px;
}

#mainnav .home    { background-image: url(https://www.sevenseek.com/images/home.gif);     width: 68px; }
#mainnav .add     { background-image: url(https://www.sevenseek.com/images/add.gif);      width: 50px; }
#mainnav .about   { background-image: url(https://www.sevenseek.com/images/about.gif);    width: 89px; }
#mainnav .how     { background-image: url(https://www.sevenseek.com/images/how.gif);      width: 95px; }
#mainnav .linktous { background-image: url(https://www.sevenseek.com/images/linktous.gif); width: 60px; }
#mainnav .tutorials { background-image: url(https://www.sevenseek.com/images/tutorials.gif); width: 120px; }

/* Text-based nav for Guides section */
#guidesnav {
	float: left;
	margin-top: 20px;
	list-style-type: none;
	display: flex;
	gap: 0;
}

#guidesnav li a {
	display: block;
	padding: 8px 14px;
	color: #3a8fc2;
	font-weight: 600;
	font-size: 0.9em;
	text-decoration: none;
	transition: color 0.2s ease;
}

#guidesnav li a:hover {
	color: #276d9a;
	text-decoration: underline;
}


/* --- SEARCH BOX --- */
#searchbox {
	float: right;
	width: 47%;
	margin-top: 20px;
}

.input {
	background-color: #ffffff;
	border: 1px solid #c5cedb;
	border-radius: 20px;
	padding: 8px 16px;
	font-size: 0.95em;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
	outline: none;
	border-color: #3a8fc2;
	box-shadow: 0 0 0 3px rgba(58, 143, 194, 0.15);
}

.searchbutton {
	padding: 8px 18px;
	background-color: #3a8fc2;
	color: #ffffff;
	border: none;
	border-radius: 20px;
	font-size: 0.9em;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.searchbutton:hover {
	background-color: #276d9a;
}


/* --- BREADCRUMB / LOCATION --- */
.location {
	line-height: 1.6;
	clear: both;
	min-height: auto;
	text-align: left;
	margin-bottom: 14px;
	padding: 14px 0;
	border-bottom: 1px solid #d9d4c5;
	font-size: 0.9em;
}

.location a {
	color: #4e96b8;
	font-weight: bold;
}


/* --- MAIN CONTENT AREA --- */
#main {
	background: linear-gradient(
		to bottom,
		#f6f4ee 0%,
		#f0ede5 40px,
		#ece8de 100%
	);
	border-radius: 18px;
	box-shadow:
		0 2px 8px rgba(0, 0, 0, 0.07),
		0 0 0 1px rgba(0, 0, 0, 0.04);
	margin-bottom: 30px;
	overflow: hidden;
}

#maintop {
	text-align: left;
	padding: 28px 30px 10px 30px;
	margin-bottom: 20px;
	border-top: 3px solid rgba(255, 255, 255, 0.5);
	border-radius: 18px 18px 0 0;
}

#mainbottom {
	height: 18px;
}


/* --- FOOTER --- */
.center {
	color: #5e5e5e;
	clear: both;
	line-height: 30px;
	height: 30px;
	font-size: 0.85em;
}

.center a {
	color: #3a8fc2;
}


/* --- UTILITY --- */
.clear {
	font-size: 0;
	line-height: 0;
	clear: both;
	height: 0;
}


/* ==========================================================================
   ARTICLE STYLES — specific to the guides/blog
   ========================================================================== */

/* --- ARTICLE LIST (index/archive pages) --- */
.article-list {
	text-align: left;
}

.article-preview {
	padding: 20px 0;
	border-bottom: 1px solid #ddd8c9;
}

.article-preview:last-child {
	border-bottom: none;
}

.article-preview h2 {
	margin-top: 0;
	margin-bottom: 6px;
}

.article-preview h2 a {
	color: #3a8fc2;
	text-decoration: none;
	font-size: 1em;
}

.article-preview h2 a:hover {
	color: #276d9a;
	text-decoration: underline;
}

.article-meta {
	font-size: 0.82em;
	color: #888888;
	margin-bottom: 10px;
}

.article-meta a {
	color: #5ea620;
}

.article-excerpt {
	color: #555555;
	font-size: 0.95em;
	line-height: 1.6;
	margin-bottom: 8px;
}

.read-more {
	font-size: 0.9em;
	font-weight: 600;
}


/* --- SINGLE ARTICLE --- */
.article-content {
	text-align: left;
	line-height: 1.8;
	font-size: 1.02em;
}

.article-content p {
	margin-bottom: 16px;
}

.article-content h2 {
	margin-top: 30px;
	margin-bottom: 14px;
	color: #5ea620;
	font-size: 1.3em;
}

.article-content h3 {
	margin-top: 24px;
	margin-bottom: 10px;
	color: #444444;
	font-size: 1.1em;
}

.article-content ul,
.article-content ol {
	margin: 14px 0 14px 28px;
}

.article-content ul li,
.article-content ol li {
	list-style-type: disc;
	margin-bottom: 8px;
	line-height: 1.6;
}

.article-content ol li {
	list-style-type: decimal;
}

.article-content blockquote {
	border-left: 4px solid #5ea620;
	padding: 12px 20px;
	margin: 16px 0;
	background-color: rgba(255, 255, 255, 0.4);
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #555555;
}

.article-content img {
	border-radius: 8px;
	margin: 16px 0;
}

.article-header {
	text-align: left;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #d9d4c5;
}

.article-header h1 {
	margin-bottom: 8px;
}

.article-header .article-meta {
	margin-bottom: 0;
}

/* Featured image */
.article-featured-image {
	margin-bottom: 20px;
	border-radius: 10px;
	overflow: hidden;
}

.article-featured-image img {
	display: block;
	width: 100%;
	border-radius: 10px;
}

/* Tags */
.article-tags {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #d9d4c5;
	font-size: 0.85em;
	text-align: left;
}

.article-tags span {
	color: #888888;
	font-weight: 600;
}

.article-tags a {
	display: inline-block;
	padding: 3px 10px;
	background-color: rgba(255, 255, 255, 0.5);
	border: 1px solid #d9d4c5;
	border-radius: 12px;
	font-size: 0.9em;
	margin: 2px 4px 2px 0;
	transition: background-color 0.2s ease;
}

.article-tags a:hover {
	background-color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
}

/* Post navigation */
.post-navigation {
	display: flex;
	justify-content: space-between;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #d9d4c5;
	font-size: 0.9em;
	text-align: left;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	max-width: 48%;
}

.post-navigation .nav-next {
	text-align: right;
}

/* Pagination (index/archive) */
.pagination {
	text-align: center;
	padding: 20px 0;
	font-size: 0.95em;
}

.pagination a,
.pagination span {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 3px;
	border-radius: 12px;
	transition: background-color 0.2s ease;
}

.pagination .current {
	background-color: #3a8fc2;
	color: #ffffff;
	font-weight: 600;
}

.pagination a:hover {
	background-color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
}

/* Directory link callout box */
.directory-callout {
	background-color: rgba(255, 255, 255, 0.4);
	border: 1px solid #d9d4c5;
	border-radius: 10px;
	padding: 16px 20px;
	margin: 24px 0;
	text-align: left;
}

.directory-callout p {
	margin-bottom: 0;
	font-size: 0.92em;
}

.directory-callout a {
	font-weight: 600;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 768px) {
	#header {
		background-position: right bottom;
		min-height: 140px;
	}

	.logo {
		top: 20px;
		width: 200px;
		height: 65px;
	}

	#mainnav,
	#guidesnav {
		float: none;
		width: 100%;
		flex-wrap: wrap;
		margin-top: 8px;
		height: auto;
	}

	#searchbox {
		float: none;
		width: 100%;
		margin-top: 10px;
	}

	.input {
		width: 100%;
	}

	#maintop {
		padding: 20px 18px 10px 18px;
	}

	#main {
		border-radius: 12px;
	}

	#maintop {
		border-radius: 12px 12px 0 0;
	}

	.post-navigation {
		flex-direction: column;
		gap: 12px;
	}

	.post-navigation .nav-previous,
	.post-navigation .nav-next {
		max-width: 100%;
		text-align: left;
	}
}
