/*
Theme Name: Rasta Portfolio Theme - Website Support & WordPress
Theme URI: https://rastawww.ir
Author: Rasta Esfahanian
Author URI: https://rastawww.ir
Description: قالب اختصاصی، فوق‌العاده سریع و استاندارد مرکز خدمات پشتیبانی سایت و وردپرس رستا اصفهانیان. بهینه‌سازی شده برای Core Web Vitals و سئو با پشتیبانی کامل از ۳ زبان (فارسی، عربی و انگلیسی).
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: rasta-portfolio
Tags: custom-menu, featured-images, flexible-header, theme-options, translation-ready, two-columns, rtl-language-support
*/

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

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

body {
    font-family: Vazirmatn, Tahoma, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
}

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

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

.max-w-6xl {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress Default Alignment Classes */
.aligncenter {
    display: block;
    margin: 1.5rem auto;
}
.alignleft {
    float: right;
    margin: 0 0 1rem 1.5rem;
}
.alignright {
    float: left;
    margin: 0 1.5rem 1rem 0;
}
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}
.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* Base Utility Layouts */
.grid-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
