/*
Theme Name: معین وردپرس
Theme URI: https://moeinwp.com
Author: تیم معین وردپرس
Author URI: https://moeinwp.com
Description: قالب رسمی تیم معین وردپرس - فوق سبک، تمیز و استاندارد با پشتیبانی از RTL فارسی، پورتفولیو، بلاگ و فرم تماس
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moeinwp
Tags: rtl-language, persian, portfolio, blog, custom-colors, custom-logo, full-width-template
*/

/* --- WP Core Overrides --- */
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-size: 0.875rem; color: #888; margin-top: 0.25rem; }
.alignleft { float: right; margin-left: 1.5rem; }
.alignright { float: left; margin-right: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }
img[class*="wp-image-"] { max-width: 100%; height: auto; }
.sticky { /* wp sticky post indicator */ }
.gallery { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gallery-item { flex: 1 1 auto; }
.screen-reader-text {
    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;
}

/* --- Admin bar offset fix for fixed header --- */
.admin-bar header.max-\[991px\]\:fixed {
    top: calc(1rem + 32px) !important;
}
@media (max-width: 782px) {
    .admin-bar header.max-\[991px\]\:fixed {
        top: calc(1rem + 46px) !important;
    }
}

/* --- Contact form messages --- */
.form-response { padding: 1rem 1.5rem; border-radius: 1rem; font-size: 0.875rem; font-weight: 600; margin-top: 1rem; display: none; }
.form-response.success { background: #d1fae5; color: #065f46; display: block; }
.form-response.error   { background: #fee2e2; color: #991b1b; display: block; }

/* --- Blog content styles --- */
.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4 { font-family: 'Morabba', sans-serif; font-weight: 700; margin: 1.5rem 0 0.75rem; line-height: 1.4; }
.entry-content p  { margin-bottom: 1rem; line-height: 2; }
.entry-content ul,.entry-content ol { padding-right: 1.5rem; margin-bottom: 1rem; }
.entry-content li { margin-bottom: 0.5rem; line-height: 2; }
.entry-content blockquote { border-right: 4px solid #7B2FE0; padding: 1rem 1.5rem; margin: 1.5rem 0; background: #f5f3ff; border-radius: 0.5rem; }
.entry-content img { border-radius: 1rem; max-width: 100%; height: auto; }
.entry-content a { color: #7B2FE0; text-decoration: underline; }
.entry-content pre { background: #1e1e2e; color: #cdd6f4; padding: 1.5rem; border-radius: 1rem; overflow-x: auto; direction: ltr; text-align: left; }
.entry-content code { background: #f0e8ff; color: #7B2FE0; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875em; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.entry-content th,.entry-content td { border: 1px solid #e2e8f0; padding: 0.75rem 1rem; text-align: right; }
.entry-content th { background: #f5f3ff; font-weight: 700; }
img.w-14.h-auto.lg\:w-24.lg\:h-7.lg\:ml-26 {
    object-fit: contain !important;
    height: 110px !important;
}