/*
Theme Name: Peti Food Blog
Theme URI: https://blog.peti.food
Author: Alireza Aminzadeh
Author URI: https://blog.peti.food
Description: تم وبلاگ پتی فود - راهنمای جامع سلامت و تغذیه حیوانات خانگی. طراحی مدرن، ریسپانسیو و بهینه برای محتوای فارسی (RTL).
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: petifoodblog
*/

/* Base & reset */
:root {
	--color-primary: #6ee619;
	--color-primary-dark: #5bc215;
	--color-bg-light: #f7f8f6;
	--color-bg-dark: #182111;
}

* {
	box-sizing: border-box;
}

body {
	direction: rtl;
	font-family: 'Vazirmatn', 'Plus Jakarta Sans', sans-serif;
	margin: 0;
	line-height: 1.6;
	color: #374151;
	background: var(--color-bg-light);
}

a {
	color: var(--color-primary-dark);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Layout */
.site-header {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	padding: 0.75rem 1rem;
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-branding .site-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 1.25rem;
	color: #111;
}

.site-logo-icon {
	width: 2.5rem;
	height: 2.5rem;
	background: var(--color-primary);
	border-radius: 0.5rem;
}

.main-navigation .primary-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 1.5rem;
}

.main-navigation a {
	color: #4b5563;
}

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

.content-area {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem 1rem;
}

.content-area.has-sidebar {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2rem;
}

.content-area .posts-list {
	display: grid;
	gap: 1.5rem;
}

.post-card {
	background: #fff;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
	border: 1px solid #e5e7eb;
}

.post-thumbnail-link {
	display: block;
	overflow: hidden;
}

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

.post-card-body {
	padding: 1.25rem;
}

.entry-title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

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

.entry-meta {
	font-size: 0.875rem;
	color: #6b7280;
	margin-bottom: 0.75rem;
}

.entry-meta .byline::before {
	content: ' · ';
}

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

.site-footer {
	background: #fff;
	border-top: 1px solid #e5e7eb;
	padding: 2rem 1rem 1rem;
	margin-top: 2rem;
}

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

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.site-info {
	text-align: center;
	font-size: 0.875rem;
	color: #6b7280;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
}

.theme-credit {
	margin-top: 0.5rem;
	opacity: .8;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 400px;
	margin: 1rem auto 0;
}

.search-form .search-field {
	flex: 1;
	padding: 0.5rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
}

.search-form .search-submit {
	padding: 0.5rem 1rem;
	background: var(--color-primary);
	color: #fff;
	border: none;
	border-radius: 0.375rem;
	cursor: pointer;
}

@media (max-width: 768px) {
	.content-area.has-sidebar {
		grid-template-columns: 1fr;
	}
}
