/*
Theme Name: Mina
Theme URI: https://example.com/mina
Author: Your Name
Author URI: https://example.com
Description: A lightweight, SEO-friendly, and modern WordPress theme inspired by GeneratePress.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mina
Tags: one-column, two-columns, right-sidebar, custom-menu, featured-images, footer-widgets, blog, seo-friendly, lightweight
*/

/* Variables */
:root {
	--font-main: system-ui, -apple-system, sans-serif;
	--font-heading: system-ui, -apple-system, sans-serif;
	
	--color-text: #2c3e50;
	--color-heading: #1a252f;
	--color-primary: #3498db;
	--color-primary-hover: #2980b9;
	--color-background: #ffffff;
	--color-secondary-background: #f8f9fa;
	--color-border: #e2e8f0;

	--container-width: 1100px;
	--gap: 2rem;
}

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

body {
	font-family: var(--font-main);
	color: var(--color-text);
	background-color: var(--color-secondary-background);
	line-height: 1.6;
	font-size: 16px;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-heading);
	margin-bottom: 1rem;
	line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

p {
	margin-bottom: 1.5rem;
}

/* Layout */
.site-header {
	background: var(--color-background);
	border-bottom: 1px solid var(--color-border);
	padding: 1rem 0;
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1rem;
}

.site-content {
	display: flex;
	gap: var(--gap);
	margin: 2rem auto;
}

.content-area {
	flex: 3;
	min-width: 0; /* Prevents flex items from overflowing */
}

.sidebar {
	flex: 1;
}

/* Header */
.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-title {
	font-size: 1.5rem;
	font-weight: bold;
	margin: 0;
}

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

.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
}

/* Posts */
.post {
	background: var(--color-background);
	padding: 2rem;
	margin-bottom: 2rem;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.entry-title {
	margin-top: 0;
}

.entry-title a {
	color: var(--color-heading);
}

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

.entry-meta {
	font-size: 0.875rem;
	color: #7f8c8d;
	margin-bottom: 1rem;
}

/* Pagination */
.pagination {
	margin-top: 2rem;
    display: flex;
    gap: 0.5rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
}

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

/* Sidebar Widgets */
.widget {
	background: var(--color-background);
	padding: 1.5rem;
	margin-bottom: 2rem;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.widget-title {
	font-size: 1.25rem;
	border-bottom: 2px solid var(--color-border);
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
}

.widget ul {
	list-style: none;
}

.widget ul li {
	margin-bottom: 0.5rem;
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 0.5rem;
}

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

/* Footer */
.site-footer {
	background: #1a252f;
	color: #ecf0f1;
	padding: 3rem 0;
	margin-top: auto;
}

.site-footer a {
	color: #fff;
	text-decoration: underline;
}

.site-info {
	text-align: center;
	margin-top: 2rem;
	font-size: 0.9rem;
	opacity: 0.8;
}

/* Utility */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Responsive */
@media (max-width: 768px) {
	.site-content {
		flex-direction: column;
	}
	
	.header-inner {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
