/*
Theme Name: Cateh Pro
Theme URI: https://cateh.ir
Description: قالب حرفه‌ای، راست‌چین و بسیار سریع مخصوص فروش رسپی و معرفی شف‌های برتر. سازگار کامل با المنتور، ووکامرس و سئو فوق‌العاده قوی همراه با Schema Markup.
Version: 2.0.0
Author: GapGPT
Author URI: https://cateh.ir
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cateh-pro
Domain Path: /languages
Tags: grid-layout, one-column, custom-colors, custom-menu, featured-images, rtl-language-support, theme-options, translation-ready, e-commerce

Designed with CSS Grid, Custom Variables and modern Fluid Typography.
*/

:root {
    --primary: #d946ef; /* Magenta Accent */
    --primary-dark: #a21caf;
    --secondary: #0f172a; /* Slate 900 */
    --bg-light: #f8fafc; /* Slate 50 */
    --bg-card: #ffffff;
    --text-main: #334155; /* Slate 700 */
    --text-muted: #64748b; /* Slate 500 */
    --border-color: #e2e8f0; /* Slate 200 */
    --font-sans: 'Vazirmatn', 'IRANSans', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Base WordPress Styles */
.aligncenter { display: block; margin: 2rem auto; }
.alignleft { float: left; margin: 0 2rem 2rem 0; }
.alignright { float: right; margin: 0 0 2rem 2rem; }
.wp-caption { background: var(--bg-card); border: 1px solid var(--border-color); padding: 0.5rem; text-align: center; border-radius: 8px; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Grid & Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Modern Header Style */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.site-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -1px;
}
.site-logo span { color: var(--primary); }
.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.main-nav a {
    font-weight: 600;
    color: var(--text-main);
}
.main-nav a:hover, .main-nav .current-menu-item a {
    color: var(--primary);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: var(--bg-light);
    color: var(--secondary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--border-color);
}

/* Hero Section (Replicating modern original layout) */
.hero {
    padding: 5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; text-align: center; gap: 2rem; padding: 3rem 0;}
    .hero-actions { justify-content: center; }
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}
.hero-title span {
    color: var(--primary);
}
.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}
.hero-actions {
    display: flex;
    gap: 1rem;
}
.hero-image-wrapper {
    position: relative;
}
.hero-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Sections Global */
.section {
    padding: 5rem 0;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}
.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Recipe Card styling */
.recipe-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.recipe-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.recipe-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.recipe-card:hover .recipe-img-container img {
    transform: scale(1.05);
}
.recipe-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}
.recipe-content {
    padding: 1.5rem;
}
.recipe-chef-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.chef-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
.recipe-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}
.recipe-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.recipe-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

/* WooCommerce Integrations & Formats */
.woocommerce-Price-amount {
    color: var(--primary);
    font-weight: 800;
}
.onsale {
    background-color: var(--primary) !important;
}

/* Footer Styling */
.site-footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.footer-logo span { color: var(--primary); }
.footer-about p { color: #94a3b8; max-width: 320px; }
.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: white; padding-right: 5px; }
.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
}

/* Custom Plans section */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}
.plan-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.plan-card.featured::before {
    content: 'پیشنهادی';
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.plan-card:hover {
    transform: translateY(-8px);
}
.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
    margin: 1.5rem 0;
}
.plan-price span { font-size: 1rem; color: var(--text-muted); }
.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}
.plan-features li {
    margin-bottom: 0.75rem;
    color: var(--text-main);
}
