/*
Theme Name: Kheyrine
Theme URI: 
Author: Kheyrine
Author URI: 
Description: تم سفارشی خیرینه - ساده، سریع و سازگار با المنتور. بدون هیچگونه لینک خارجی.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kheyrine
Tags: custom-logo, custom-menu, elementor, rtl-language-support, translation-ready
*/

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    direction: rtl;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
}

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

a:hover,
a:focus {
    color: #005177;
}

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

/* ===== Layout ===== */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* ===== Header ===== */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
}

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

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

.site-branding .site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-branding .site-description {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* ===== Navigation ===== */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-navigation a {
    color: #333;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* ===== Footer ===== */
.site-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

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

/* ===== Posts ===== */
.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 1.75rem;
}

.entry-title a {
    color: #1a1a1a;
}

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

.entry-meta {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

.entry-content {
    margin-bottom: 2rem;
}

.entry-footer {
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* ===== Sidebar ===== */
.widget-area {
    padding: 1rem 0;
}

.widget {
    margin-bottom: 2rem;
}

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

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 4rem 1rem;
}

.error-404 h1 {
    font-size: 6rem;
    color: #ddd;
}

/* ===== Accessibility ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.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;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    right: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    position: fixed !important;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .site-header .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .main-navigation ul {
        justify-content: center;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
}

/* ===== Elementor Overrides ===== */
.elementor-page .site-content {
    padding: 0;
    max-width: 100%;
}
