/*
Theme Name: WSD Classic
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A classic PHP-based WordPress theme
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wsd
Domain Path: /languages
*/

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */

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

html {
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
	color: #333;
	background-color: #f9f9f9;
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0.8em 0;
	line-height: 1.2;
	font-weight: 600;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.3em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1em; }

p {
	margin: 0.8em 0;
}

a {
	color: #0073aa;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #005a87;
	text-decoration: underline;
}

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

/* ============================================================
   STRUCTURE & LAYOUT
   ============================================================ */

#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#masthead {
	background-color: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	margin-bottom: 2em;
}

.site-header-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5em 2em;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 2em;
}

.site-branding {
	flex: 1;
	min-width: 200px;
}

.site-title {
	font-size: 1.8em;
	font-weight: 700;
	margin: 0;
}

.site-title a {
	color: #333;
}

.site-title a:hover {
	color: #0073aa;
}

.site-description {
	font-size: 0.9em;
	color: #666;
	font-style: italic;
	margin: 0.5em 0 0 0;
}

.site-content {
	flex: 1;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	padding: 0 2em;
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2em;
}

#main {
	flex: 1;
}

#colophon {
	background-color: #333;
	color: #fff;
	margin-top: 3em;
	padding: 2em;
	text-align: center;
}

.site-footer-wrapper {
	max-width: 1200px;
	margin: 0 auto;
}

.site-info {
	margin-top: 1em;
	font-size: 0.9em;
	opacity: 0.8;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 0.5em;
	flex-wrap: wrap;
}

.main-navigation a {
	display: block;
	padding: 0.5em 1em;
	color: #333;
	border-radius: 4px;
	transition: background-color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
	background-color: #f0f0f0;
	text-decoration: none;
}

.main-navigation .current-menu-item > a {
	color: #0073aa;
	font-weight: 600;
}

.menu-toggle {
	display: none;
	background-color: #0073aa;
	color: #fff;
	border: none;
	padding: 0.5em 1em;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1em;
}

.menu-toggle:hover {
	background-color: #005a87;
}

/* ============================================================
   ARTICLES & POSTS
   ============================================================ */

article {
	background-color: #fff;
	padding: 2em;
	margin: 0 0 2em 0;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.entry-header {
	margin: 0 0 1.5em 0;
}

.entry-title {
	margin: 0 0 0.5em 0;
}

.entry-title a {
	color: #333;
}

.entry-title a:hover {
	color: #0073aa;
}

.entry-meta {
	font-size: 0.9em;
	color: #666;
}

.entry-meta a {
	color: #0073aa;
}

.post-thumbnail {
	margin: 0 0 1.5em 0;
	overflow: hidden;
	border-radius: 4px;
}

.post-thumbnail img {
	width: 100%;
	height: auto;
}

.entry-content {
	margin: 1.5em 0;
}

.entry-content p {
	margin: 1em 0;
}

.entry-footer {
	margin-top: 1.5em;
	padding-top: 1.5em;
	border-top: 1px solid #eee;
	font-size: 0.9em;
	color: #666;
}

.entry-categories,
.entry-tags {
	margin: 0.5em 0;
}

.read-more {
	display: inline-block;
	padding: 0.5em 1em;
	background-color: #0073aa;
	color: #fff;
	border-radius: 4px;
	transition: background-color 0.3s ease;
	margin-top: 1em;
}

.read-more:hover {
	background-color: #005a87;
	text-decoration: none;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.widget-area {
	background-color: #fff;
	padding: 1.5em;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget {
	margin: 0 0 1.5em 0;
}

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

.widget-title {
	font-size: 1.2em;
	margin: 0 0 1em 0;
	padding-bottom: 0.5em;
	border-bottom: 2px solid #0073aa;
}

.widget ul {
	list-style: none;
}

.widget ul li {
	margin: 0.5em 0;
	padding: 0.5em 0;
	border-bottom: 1px solid #eee;
}

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

.widget a {
	color: #0073aa;
}

/* ============================================================
   FORMS & BUTTONS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
	width: 100%;
	padding: 0.5em;
	margin: 0.5em 0;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	font-size: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
	background-color: #0073aa;
	color: #fff;
	border: none;
	padding: 0.5em 1em;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1em;
	transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
	background-color: #005a87;
}

/* ============================================================
   COMMENTS
   ============================================================ */

.comments-area {
	margin: 2em 0;
	padding: 1.5em;
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.comment {
	margin: 1.5em 0;
	padding: 1em;
	border-left: 3px solid #0073aa;
	background-color: #f9f9f9;
	border-radius: 4px;
}

.comment-meta {
	font-size: 0.9em;
	color: #666;
	margin: 0 0 0.5em 0;
}

.comment-content {
	margin: 0.5em 0;
}

.comment-reply-link {
	font-size: 0.9em;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.posts-pagination {
	display: flex;
	justify-content: center;
	gap: 1em;
	margin: 2em 0;
	flex-wrap: wrap;
}

.page-numbers {
	list-style: none;
	display: flex;
	gap: 0.5em;
	justify-content: center;
	flex-wrap: wrap;
}

.page-numbers a,
.page-numbers span {
	display: block;
	padding: 0.5em 0.8em;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #0073aa;
	transition: all 0.3s ease;
}

.page-numbers a:hover {
	background-color: #0073aa;
	color: #fff;
	text-decoration: none;
}

.page-numbers .current {
	background-color: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

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

@media (max-width: 768px) {
	.site-header-wrapper {
		flex-direction: column;
		gap: 1em;
	}

	.site-content {
		grid-template-columns: 1fr;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0;
	}

	.menu-toggle {
		display: block;
	}

	.main-navigation {
		width: 100%;
	}

	h1 { font-size: 1.8em; }
	h2 { font-size: 1.5em; }
	h3 { font-size: 1.3em; }

	article {
		padding: 1em;
	}

	.widget-area {
		padding: 1em;
	}
}
