/*
Theme Name: Mawsua Quotes
Theme URI: https://7srey.com/
Description: قالب احترافي متخصص لموسوعات المقولات والحكم، مبني للسيو القوي والأداء العالي.
Author: Web Developer
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: mawsua-quotes
*/

/* 1. إعدادات المتغيرات العامة */
:root {
    --primary: #2c3e50;
    --accent: #e74c3c;
    --secondary: #3498db;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-body: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
}

/* 2. التنسيقات الأساسية */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

/* 3. الهيدر (Header) */
.site-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.header-search input {
    padding: 10px 20px;
    border: 1px solid #eee;
    border-radius: 50px;
    background: #f9f9f9;
    width: 250px;
    font-family: 'Cairo';
}

/* 4. بطاقات المقولات (Grid & Cards) */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

.quote-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid #f1f1f1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.quote-content p {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 20px;
}

/* 5. صفحة المقولة المنفردة (Single Quote) */
.quote-box {
    background: var(--white);
    border-right: 6px solid var(--secondary);
    padding: 50px;
    margin: 40px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    position: relative;
    box-shadow: var(--shadow);
}

.quote-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.5;
}

.quote-meta {
    margin-top: 30px;
    text-align: left;
}

.author-name {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 700;
}

/* 6. أزرار التفاعل (Action Buttons) */
.quote-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-action {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-action.primary { background: var(--secondary); color: white; }
.btn-action.whatsapp { background: #25D366; color: white; }
.btn-action.copy { background: #f1f2f6; color: var(--primary); }

.btn-action:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* 7. تصميم الصورة المولدة (Image Capture Area) */
#quote-capture-area {
    background: #fff;
}

.image-design-box {
    width: 1080px; /* مقاس إنستجرام المثالي */
    height: 1080px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f2f6 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px;
    text-align: center;
    border: 30px solid var(--primary);
}

.design-text {
    font-size: 4.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 50px;
    line-height: 1.3;
}

.design-author {
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 700;
}

.design-footer {
    margin-top: auto;
    font-size: 1.5rem;
    color: var(--text-light);
    border-top: 2px solid #ddd;
    padding-top: 30px;
    width: 100%;
}

/* 8. الفوتر (Footer) */
.site-footer {
    background: var(--primary);
    color: #ecf0f1;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    color: var(--secondary);
    margin-bottom: 25px;
}

.popular-authors-list a {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 5px;
    margin: 5px;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* 9. الترقيم (Pagination) */
.pagination {
    margin: 50px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.pagination .current {
    background: var(--secondary);
    color: white;
}

/* 10. التجاوب (Responsive) */
@media (max-width: 768px) {
    .quote-text { font-size: 1.6rem; }
    .header-search { display: none; }
    .quote-box { padding: 30px; }
    .image-design-box { width: 100%; height: auto; } /* للتأكد من عدم كسر العرض في المعاينة */
}