/*
Theme Name: Classic Blog Theme
Theme URI: https://wordpress.org/themes/classic-blog-theme
Author: Your Name
Author URI: https://example.com
Description: A clean, professional blog theme inspired by modern business websites. Features extensive customization options with show/hide settings for all major elements.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.2
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: classic-blog-theme
Tags: blog, business, clean, professional, responsive, custom-header, custom-menu, featured-images, threaded-comments, translation-ready

Classic Blog Theme WordPress Theme, Copyright 2024
Classic Blog Theme is distributed under the terms of the GNU GPL
*/

/* Reset & Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-color: #2563eb;
	--secondary-color: #1e40af;
	--text-color: #1f2937;
	--text-light: #6b7280;
	--bg-color: #ffffff;
	--bg-light: #f9fafb;
	--border-color: #e5e7eb;
	--hover-color: #1d4ed8;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--bg-color);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--hover-color);
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
	color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
	margin-bottom: 1rem;
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header Styles */
.site-header {
	background: var(--bg-color);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-top {
	background: var(--bg-light);
	padding: 10px 0;
	border-bottom: 1px solid var(--border-color);
}

.header-top .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.header-main {
	padding: 20px 0;
}

.header-main .container {
	width: 100%;
}

.header-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
	width: 100%;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-shrink: 0;
	min-width: 0;
}

.site-logo {
	display: flex;
	align-items: center;
}

.site-logo img {
	max-height: 60px;
	width: auto;
	display: block;
}

.site-identity {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.site-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

.site-title a {
	color: var(--text-color);
	text-decoration: none;
}

.site-title a:hover {
	color: var(--primary-color);
}

.site-description {
	font-size: 0.9rem;
	color: var(--text-light);
	margin: 0;
	line-height: 1.4;
}

/* Header Right Section */
.header-right {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

/* Navigation */
.main-navigation {
	display: flex;
	align-items: center;
}

.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 30px;
	align-items: center;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.main-navigation li {
	margin: 0;
	padding: 0;
}

.main-navigation a {
	color: var(--text-color);
	font-weight: 500;
	padding: 10px 0;
	display: block;
	position: relative;
	text-decoration: none;
	white-space: nowrap;
}

.main-navigation a:hover {
	color: var(--primary-color);
}

.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary-color);
	transition: width 0.3s ease;
}

.main-navigation a:hover::after {
	width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	background: none;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	padding: 10px 20px;
	cursor: pointer;
	font-size: 1rem;
	border-radius: 4px;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	transition: all 0.3s ease;
}

.menu-toggle:hover {
	background: var(--primary-color);
	color: #fff;
}

.menu-toggle .menu-text {
	margin-right: 5px;
}

.menu-toggle .menu-icon {
	font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
	color: #fff;
	padding: 80px 0;
	text-align: center;
}

.hero-section h1 {
	color: #fff;
	font-size: 3rem;
	margin-bottom: 20px;
}

.hero-section p {
	font-size: 1.25rem;
	margin-bottom: 30px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.hero-buttons {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	display: inline-block;
	padding: 12px 30px;
	border-radius: 4px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.btn-primary {
	background: #fff;
	color: var(--primary-color);
}

.btn-primary:hover {
	background: var(--bg-light);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
}

.btn-secondary:hover {
	background: #fff;
	color: var(--primary-color);
}

/* Content Area */
.site-content {
	padding: 60px 0;
}

.content-area {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
}

/* Main Content */
.main-content {
	min-height: 400px;
}

.content-area-header {
	margin-bottom: 1.5em;
}

.latest-posts-title {
	font-size: 1.75rem;
	margin: 0 0 0.5em;
	color: var(--heading-color, #1a1a1a);
}

/* Posts */
.post {
	margin-bottom: 50px;
	padding-bottom: 50px;
	border-bottom: 1px solid var(--border-color);
}

.post:last-child {
	border-bottom: none;
}

.post-header {
	margin-bottom: 20px;
}

.post-title {
	font-size: 2rem;
	margin-bottom: 10px;
}

.post-title a {
	color: var(--text-color);
}

.post-title a:hover {
	color: var(--primary-color);
}

.post-meta {
	display: flex;
	gap: 20px;
	font-size: 0.9rem;
	color: var(--text-light);
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.post-thumbnail {
	margin-bottom: 25px;
	border-radius: 8px;
	overflow: hidden;
}

.post-thumbnail img {
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
	transform: scale(1.05);
}

.post-content {
	margin-bottom: 20px;
}

.post-content p {
	margin-bottom: 1rem;
}

.read-more {
	display: inline-block;
	color: var(--primary-color);
	font-weight: 600;
	margin-top: 15px;
}

.read-more:hover {
	color: var(--hover-color);
}

/* Sidebar */
.sidebar {
	background: var(--bg-light);
	padding: 30px;
	border-radius: 8px;
	height: fit-content;
}

.widget {
	margin-bottom: 40px;
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title {
	font-size: 1.5rem;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--primary-color);
}

.widget ul {
	list-style: none;
}

.widget li {
	padding: 10px 0;
	border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
	border-bottom: none;
}

/* Footer */
.site-footer {
	background: var(--text-color);
	color: #fff;
	padding: 60px 0 20px;
	margin-top: 60px;
}

.footer-widgets {
	margin-bottom: 40px;
}

.footer-widget {
	color: rgba(255,255,255,0.8);
}

.footer-widget h3 {
	color: #fff;
	margin-bottom: 20px;
}

.footer-widget a {
	color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
	color: #fff;
}

.footer-widget ul {
	list-style: none;
}

.footer-widget li {
	padding: 8px 0;
}

.site-info {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255,255,255,0.1);
	color: rgba(255,255,255,0.6);
}

/* SEO Footer Content */
.seo-footer-content {
	background: var(--bg-light);
	color: var(--text-color);
	padding: 40px 0;
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

.seo-footer-content p {
	margin-bottom: 1rem;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.pagination a,
.pagination span {
	padding: 10px 15px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-color);
}

.pagination .current {
	background: var(--primary-color);
	color: #fff;
	border-color: var(--primary-color);
}

.pagination a:hover {
	background: var(--bg-light);
	border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
	.content-area {
		grid-template-columns: 1fr;
	}
	
	.header-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	
	.site-branding {
		width: 100%;
	}
	
	.header-right {
		width: 100%;
		justify-content: space-between;
		flex-wrap: nowrap;
	}
	
	.menu-toggle {
		display: flex;
		order: 2;
	}
	
	.header-search-left {
		order: 0;
		width: 100%;
		margin-right: 0;
		margin-bottom: 15px;
	}
	
	.header-search-right {
		order: 1;
		flex: 1;
		margin-right: 15px;
	}
	
	.header-search .search-field {
		min-width: auto;
		flex: 1;
	}
	
	.main-navigation {
		display: none;
		width: 100%;
		order: 3;
		margin-top: 20px;
	}
	
	.main-navigation.active {
		display: block;
	}
	
	.main-navigation ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}
	
	.main-navigation li {
		width: 100%;
		border-bottom: 1px solid var(--border-color);
	}
	
	.main-navigation a {
		padding: 15px 0;
		width: 100%;
	}
	
	.hero-section h1 {
		font-size: 2rem;
	}
	
	.hero-section p {
		font-size: 1rem;
	}
}

/* Footer Widgets Grid */
.footer-widgets-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}

.footer-widgets-grid .footer-widget {
	flex: 1;
	min-width: 250px;
}

/* Related Posts */
.related-posts {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid var(--border-color);
}

.related-posts h3 {
	margin-bottom: 30px;
	font-size: 1.75rem;
}

.related-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
}

.related-post {
	background: var(--bg-light);
	padding: 20px;
	border-radius: 8px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-post-thumbnail {
	margin-bottom: 15px;
	border-radius: 4px;
	overflow: hidden;
}

.related-post-thumbnail img {
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.related-post:hover .related-post-thumbnail img {
	transform: scale(1.05);
}

.related-post-title {
	font-size: 1.1rem;
	margin-bottom: 10px;
}

.related-post-title a {
	color: var(--text-color);
}

.related-post-title a:hover {
	color: var(--primary-color);
}

.related-post-meta {
	font-size: 0.9rem;
	color: var(--text-light);
}

/* Header Top Content */
.header-top-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.top-bar-text {
	font-size: 0.9rem;
	color: var(--text-light);
}

.social-icons {
	display: flex;
	gap: 15px;
}

.social-icons a {
	width: 35px;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--primary-color);
	color: #fff;
	border-radius: 50%;
	transition: all 0.3s ease;
	text-decoration: none;
}

.social-icons a:hover {
	background: var(--hover-color);
	transform: translateY(-3px);
}

/* Header Search */
.header-search {
	display: flex;
	align-items: center;
}

.header-search-left {
	order: -1;
	margin-right: 20px;
}

.header-search-right {
	order: 1;
}

.header-search .search-form {
	display: flex;
	align-items: center;
	margin: 0;
}

.header-search .search-field {
	padding: 10px 15px;
	border: 1px solid var(--border-color);
	border-radius: 4px 0 0 4px;
	font-size: 0.9rem;
	height: 40px;
	min-width: 200px;
	outline: none;
}

.header-search .search-field:focus {
	border-color: var(--primary-color);
}

.header-search .search-submit {
	padding: 10px 15px;
	background: var(--primary-color);
	color: #fff;
	border: 1px solid var(--primary-color);
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	transition: background 0.3s ease;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-search .search-submit:hover {
	background: var(--hover-color);
}

.header-search .search-submit i {
	font-size: 0.9rem;
}

/* Footer Social */
.footer-social {
	margin-top: 20px;
	display: flex;
	gap: 15px;
	justify-content: center;
}

.footer-social a {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.1);
	color: rgba(255,255,255,0.8);
	border-radius: 50%;
	transition: all 0.3s ease;
	text-decoration: none;
}

.footer-social a:hover {
	background: var(--primary-color);
	color: #fff;
	transform: translateY(-3px);
}

/* Screen Reader Text */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Utility Classes */
.text-center {
	text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Back to Top */
.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: var(--primary-color);
	color: #fff;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transition: all 0.3s ease;
	z-index: 999;
	opacity: 0;
	visibility: hidden;
}

.back-to-top.show {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	background: var(--hover-color);
	transform: translateY(-5px);
}

/* Comments */
.comments-area {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid var(--border-color);
}

.comments-title {
	font-size: 1.75rem;
	margin-bottom: 30px;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment {
	margin-bottom: 30px;
	padding: 20px;
	background: var(--bg-light);
	border-radius: 8px;
}

.comment-author {
	font-weight: 600;
	margin-bottom: 10px;
}

.comment-meta {
	font-size: 0.9rem;
	color: var(--text-light);
	margin-bottom: 15px;
}

.comment-content {
	margin-bottom: 15px;
}

.comment-reply-link {
	color: var(--primary-color);
	font-weight: 600;
}

.comment-form {
	margin-top: 40px;
}

.comment-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	margin-bottom: 15px;
	font-family: inherit;
}

.comment-form input[type="submit"] {
	background: var(--primary-color);
	color: #fff;
	padding: 12px 30px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.3s ease;
}

.comment-form input[type="submit"]:hover {
	background: var(--hover-color);
}
