/*
Theme Name: هاریکا
Theme URI: https://example.com/harika
Author: AI Developer
Author URI: https://example.com
Description: A Persian RTL magazine theme inspired by Harika.
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: harika
Tags: right-to-left-language-support, two-columns, custom-colors
*/

:root {
    --primary-color: #ff9500;
    --secondary-color: #00f094;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f4f6f8;
    --white: #ffffff;
    --border-color: #e1e1e1;
    --font-main: 'Vazirmatn', sans-serif;
}

/* Reset & Basics */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

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

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

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

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

.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 4px solid var(--primary-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-branding h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.site-branding a {
    color: var(--text-dark);
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-navigation ul li a {
    font-weight: 500;
    font-size: 16px;
}

.main-navigation ul li.current-menu-item a {
    color: var(--primary-color);
}

/* Main Content Grid */
.site-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

/* Posts */
.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    border-bottom: 3px solid transparent;
}

.post-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--secondary-color);
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.post-title {
    margin: 0 0 15px;
    font-size: 20px;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-read-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.btn-read-more:hover {
    background-color: #e68600;
    color: var(--white);
}

/* Sidebar */
.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.widget-title {
    font-size: 18px;
    border-right: 4px solid var(--secondary-color);
    padding-right: 15px;
    margin-bottom: 20px;
    margin-top: 0;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

/* Footer */
.site-footer {
    background: #222;
    color: #aaa;
    padding: 40px 0;
    margin-top: auto;
}

.footer-inner {
    text-align: center;
}

.footer-inner p {
    margin: 0;
}

/* Single Post */
.single-post-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
}

.entry-content {
    margin-top: 20px;
    font-size: 18px;
}

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

.pagination .page-numbers {
    background: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

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