/*
Theme Name: Moblak Mag | مجله مبلک
Theme URI: https://moblak.com
Author: Moblak Team
Author URI: https://moblak.com
Description: قالب اختصاصی، فوق‌سریع و بهینه‌سازی‌شده برای مجله و وبلاگ مبلک و راهنمای خرید ایکیا و دکوراسیون. با قابلیت Zero-Bloat، سئو استاندارد گوگل دیسکاور، دارک مود هوشمند، تایپوگرافی فارسی و اتصال به فروشگاه.
Version: 1.1.7
Tested up to: 6.7
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: moblak-mag
Domain Path: /languages
Tags: blog, news, e-commerce, custom-colors, custom-menu, featured-images, full-width-template, rtl-language-support, theme-options, translation-ready
*/

/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Brand & Accent Colors */
    --mm-primary: #f59e0b;
    --mm-primary-hover: #d97706;
    --mm-primary-light: rgba(245, 158, 11, 0.12);
    --mm-secondary: #0f172a;
    --mm-accent: #3b82f6;
    --mm-gold: #c5a059;
    --mm-gold-hover: #b08d48;
    
    /* Backgrounds & Surfaces */
    --mm-bg-main: #f8fafc;
    --mm-bg-surface: #ffffff;
    --mm-bg-surface-elevated: #ffffff;
    --mm-bg-card: #ffffff;
    --mm-bg-card-hover: #f1f5f9;
    --mm-bg-input: #f8fafc;
    --mm-bg-tag: #f1f5f9;
    --mm-border: #e2e8f0;
    --mm-border-light: #f1f5f9;
    
    /* Typography & Sizing */
    --mm-font-family: 'YekanBakh', 'IRANSansX', 'Dana', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mm-font-title: 'YekanBakh', 'IRANSansX', 'Dana', var(--mm-font-family);
    --mm-container-width: 1280px;
    --mm-content-width: 820px;
    --mm-header-height: 72px;
    
    /* Text Colors */
    --mm-text-main: #1e293b;
    --mm-heading: #0f172a;
    --mm-text-muted: #64748b;
    --mm-text-subtle: #94a3b8;
    --mm-text-light: #cbd5e1;
    
    /* Functional Colors */
    --mm-success: #10b981;
    --mm-warning: #f59e0b;
    --mm-danger: #ef4444;
    --mm-info: #06b6d4;

    /* Shadows & Radii */
    --mm-radius-xs: 4px;
    --mm-radius-sm: 6px;
    --mm-radius-md: 10px;
    --mm-radius-lg: 16px;
    --mm-radius-xl: 24px;
    --mm-radius-full: 9999px;
    --mm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --mm-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --mm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --mm-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
    --mm-shadow-glow: 0 0 15px rgba(245, 158, 11, 0.35);
    --mm-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --mm-bg-main: #0b0f19;
    --mm-bg-surface: #131b2e;
    --mm-bg-surface-elevated: #192238;
    --mm-bg-card: #131b2e;
    --mm-bg-card-hover: #1c263f;
    --mm-bg-input: #192238;
    --mm-bg-tag: #192238;
    --mm-border: #222f49;
    --mm-border-light: #1c263f;
    --mm-text-main: #e2e8f0;
    --mm-heading: #f8fafc;
    --mm-text-muted: #94a3b8;
    --mm-text-subtle: #64748b;
    --mm-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --mm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --mm-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
}

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

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

body {
    font-family: var(--mm-font-family);
    background-color: var(--mm-bg-main);
    color: var(--mm-text-main);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    max-width: 100%;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mm-site-wrapper {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mm-font-heading);
    color: var(--mm-heading);
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 0.75rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    box-sizing: border-box;
}

/* Accessibility & Screen Readers */
.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: var(--mm-bg-surface);
    border-radius: var(--mm-radius-sm);
    box-shadow: var(--mm-shadow-md);
    clip: auto !important;
    clip-path: none;
    color: var(--mm-primary);
    display: block;
    font-size: 0.875rem;
    height: auto;
    left: 1rem;
    line-height: normal;
    padding: 0.75rem 1.25rem;
    position: fixed;
    top: 1rem;
    text-decoration: none;
    width: auto;
    z-index: 100000;
}
