/* المتغيرات الافتراضية */
:root {
    --quote-primary-color: #1B3B36;
    --quote-secondary-color: #D2AE72;
    --quote-primary-color-rgb: 27, 59, 54;    /* #1B3B36 */
    --quote-secondary-color-rgb: 210, 174, 114; /* #D2AE72 */
}

/* الأنماط المشتركة للويدجت */
.quote-hatex-widget {
    --primary-color: var(--quote-primary-color);
    --secondary-color: var(--quote-secondary-color);
}

.quote-hatex-container {
    margin: 2em 0;
    padding: 1.5em;
    background: #f9f9f9;
    border-right: 4px solid #666;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* تنسيق عنوان الويدجت */
.quote-hatex-widget .bricks-widget-title {
    position: relative;
    margin: 0 0 1em;
    padding: 0.8em 1.2em;
    background-color: var(--quote-primary-color);
    color: #fff;
    font-family: "Noto Kufi Arabic", "Noto Sans Arabic", Arial, sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quote-hatex-widget .bricks-widget-title:before {
    content: "❞";
    position: absolute;
    right: 0.3em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: var(--quote-secondary-color);
    opacity: 0.6;
    font-family: Arial, sans-serif;
    transition: opacity 0.3s ease;
}

.quote-hatex-widget .bricks-widget-title:hover:before {
    opacity: 0.8;
}

.quote-hatex-widget .bricks-widget-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--quote-secondary-color);
    opacity: 0.3;
}

/* تحسين المظهر على الأجهزة المحمولة */
@media (max-width: 768px) {
    .quote-hatex-widget .bricks-widget-title {
        font-size: 1.1em;
        padding: 0.7em 1em;
        margin-bottom: 0.8em;
    }

    .quote-hatex-widget .bricks-widget-title:before {
        font-size: 1.8em;
        right: 0.2em;
    }
}

/* الأنماط المشتركة */
.quote-hatex-content {
    margin: 0;
    padding: 0;
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
}

.quote-hatex-content::before {
    content: '"';
    font-size: 3em;
    color: #666;
    line-height: 0.1em;
    margin-left: 0.25em;
    vertical-align: -0.4em;
}

.quote-hatex-footer {
    margin-top: 1em;
    padding-top: 0.5em;
    border-top: 1px solid #eee;
    font-style: normal;
    color: #666;
}

.quote-hatex-author {
    font-weight: bold;
    display: block;
    margin-bottom: 0.25em;
}

.quote-hatex-source {
    font-style: italic;
    font-size: 0.9em;
}

/* تنسيق عنوان تدوينة اليوم */
.quote-hatex-daily-title {
    position: relative;
    margin: 0 0 1.5em;
    padding: 0.8em 1.2em;
    background-color: var(--quote-primary-color);
    color: #fff;
    font-family: "Noto Kufi Arabic", "Noto Sans Arabic", Arial, sans-serif;
    font-size: 1.1em;
    font-weight: 500;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
}

.quote-hatex-daily-title:before {
    content: "❝";
    position: absolute;
    left: -5px;
    top: -15px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Arial, sans-serif;
    line-height: 1;
    transform: rotate(-10deg);
}

.quote-hatex-daily-title:after {
    content: "❞";
    position: absolute;
    right: -5px;
    bottom: -15px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Arial, sans-serif;
    line-height: 1;
    transform: rotate(-10deg);
}

@media (max-width: 768px) {
    .quote-hatex-daily-title {
        font-size: 1em;
        padding: 0.7em 1em;
    }

    .quote-hatex-daily-title:before,
    .quote-hatex-daily-title:after {
        font-size: 60px;
    }
}

/* النمط العصري */
.quote-hatex-widget-modern .quote-hatex-container {
    background: #ffffff;
    border-right: 4px solid var(--quote-secondary-color);
    border-radius: 15px;
    padding: 2em 1.5em;
    box-shadow: 0 10px 30px rgba(var(--quote-primary-color-rgb), 0.1);
    transition: transform 0.3s ease;
}

.quote-hatex-widget-modern .quote-hatex-container:hover {
    transform: translateY(-5px);
}

.quote-hatex-widget-modern .quote-hatex-content {
    font-family: "Dubai", "Noto Kufi Arabic", sans-serif;
    color: var(--quote-primary-color);
    position: relative;
    padding: 0;
}

.quote-hatex-widget-modern .quote-hatex-content:before {
    display: none;
}

/* النمط الإسلامي */
.quote-hatex-widget-islamic {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><path fill="%23f8f9fa" d="M40 0A40 40 0 1080 40 40 40 0 0040 0zm0 60A20 20 0 1160 40 20 20 0 0140 60z"/></svg>') center/80px repeat;
}

.quote-hatex-widget-islamic .quote-hatex-container {
    background: rgba(var(--quote-primary-color-rgb), 0.02);
    border: 2px solid var(--quote-secondary-color);
    border-radius: 15px;
    padding: 2em;
    margin: 0;
}

.quote-hatex-widget-islamic .quote-hatex-content {
    font-family: "Amiri", "Noto Naskh Arabic", serif;
    font-size: 1.2em;
    color: #4a4a4a;
    text-align: center;
}

.quote-hatex-widget-islamic .widget-title {
    background-color: var(--quote-primary-color);
    color: #fff;
    border-radius: 8px;
    text-align: center;
    font-family: "Amiri", "Noto Naskh Arabic", serif;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--quote-secondary-color);
}

.quote-hatex-widget-islamic .quote-hatex-footer {
    text-align: center;
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid var(--quote-secondary-color);
}

/* النمط الخطي */
.quote-hatex-widget-calligraphy .quote-hatex-container {
    background: linear-gradient(135deg, 
        rgba(var(--quote-primary-color-rgb), 0.05),
        rgba(var(--quote-secondary-color-rgb), 0.05)
    );
    border: none;
    padding: 2em;
}

.quote-hatex-widget-calligraphy .quote-hatex-content {
    font-family: "Aref Ruqaa", "Noto Nastaliq Urdu", serif;
    font-size: 1.4em;
    line-height: 2;
    color: var(--quote-primary-color);
    text-align: center;
}

.quote-hatex-widget-calligraphy .quote-hatex-footer {
    font-family: "Noto Kufi Arabic", sans-serif;
    text-align: center;
}

.quote-hatex-widget-calligraphy .widget-title {
    background-color: var(--quote-primary-color);
    color: #fff;
    font-family: "Aref Ruqaa", "Noto Nastaliq Urdu", serif;
    font-size: 20px;
    text-align: center;
    border-radius: 0;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--quote-secondary-color);
}

/* النمط المتدرج */
.quote-hatex-widget-gradient .quote-hatex-container {
    background: linear-gradient(135deg, 
        var(--quote-primary-color),
        var(--quote-secondary-color)
    );
    border: none;
    border-radius: 20px;
    padding: 2em;
    position: relative;
    overflow: hidden;
}

.quote-hatex-widget-gradient .quote-hatex-container:before {
    content: "\201C";
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Arial, sans-serif;
}

.quote-hatex-widget-gradient .quote-hatex-content {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.quote-hatex-widget-gradient .quote-hatex-footer {
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1em;
}

.quote-hatex-widget-gradient .widget-title {
    background: linear-gradient(135deg, 
        var(--quote-primary-color),
        var(--quote-secondary-color)
    );
    color: #fff;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .quote-hatex-container {
        margin: 1.5em 0;
        padding: 1.5em 1em;
    }

    .quote-hatex-content {
        font-size: 1em;
    }

    .quote-hatex-widget-calligraphy .quote-hatex-content {
        font-size: 1.2em;
    }
}

/* تأثيرات التحديث */
.quote-hatex-widget-container {
    transition: opacity 0.3s ease-in-out;
}

.quote-hatex-widget-container.updating {
    opacity: 0.5;
}

/* أنماط الويدجت */
.quote-hatex-widget-container {
    transition: opacity 0.3s ease-in-out;
}

/* النمط الافتراضي */
.quote-hatex-widget-default .quote-hatex-container {
    margin: 0;
    padding: 2em 1.5em;
    background-color: #fff;
    border-right: 4px solid var(--quote-secondary-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quote-hatex-widget-default .quote-hatex-content {
    color: var(--quote-primary-color);
}

.quote-hatex-widget-default .quote-hatex-footer {
    border-top: 1px solid var(--quote-secondary-color);
}

/* النمط البسيط */
.quote-hatex-widget-minimal .quote-hatex-container {
    margin: 0;
    padding: 1em;
    background-color: transparent;
    border-right: 2px solid var(--quote-secondary-color);
}

.quote-hatex-widget-minimal .quote-hatex-content {
    color: var(--quote-primary-color);
}

.quote-hatex-widget-minimal .quote-hatex-footer {
    color: var(--quote-primary-color);
}

/* النمط الأنيق */
.quote-hatex-widget-elegant .quote-hatex-container {
    background: linear-gradient(to right, rgba(var(--quote-primary-color-rgb), 0.05), transparent);
    border: 1px solid var(--quote-secondary-color);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.quote-hatex-widget-elegant .quote-hatex-content {
    font-family: "Noto Kufi Arabic", "Noto Sans Arabic", Arial, sans-serif;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--quote-primary-color);
}

.quote-hatex-widget-elegant .quote-hatex-content:before {
    content: "\201C";
    font-size: 3em;
    line-height: 0.1em;
    margin-right: 0.25em;
    vertical-align: -0.4em;
    color: var(--quote-secondary-color);
    opacity: 0.5;
}

.quote-hatex-widget-elegant .quote-hatex-footer {
    margin-top: 1.2em;
    padding-top: 1em;
    border-top: 1px solid var(--quote-secondary-color);
    text-align: left;
}

.quote-hatex-widget-elegant .quote-hatex-author {
    color: var(--quote-primary-color);
    font-weight: 600;
}

.quote-hatex-widget-elegant .quote-hatex-source {
    color: #7f8c8d;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .quote-hatex-container {
        margin: 1.5em 0;
        padding: 1em;
    }

    .quote-hatex-content {
        font-size: 1em;
    }

    .quote-hatex-widget-elegant .quote-hatex-container {
        padding: 1em;
    }
}

/* النمط الجديد - علامة الاقتباس */
.quote-hatex-widget-quote-mark .widget-title {
    position: relative;
    margin: 0 0 25px 0;
    padding: 5px 5px;
    background-color: var(--quote-primary-color);
    color: #fff;
    font-family: "Noto Kufi Arabic", "Noto Sans Arabic", Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    text-align: right;
    overflow: hidden;
}

.quote-hatex-widget-quote-mark .widget-title:before {
    content: "❝";
    position: absolute;
    left: -10px;
    top: -20px;
    font-size: 100px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Arial, sans-serif;
    line-height: 1;
    transform: rotate(-10deg);
}

.quote-hatex-widget-quote-mark .quote-hatex-container {
    position: relative;
    margin: 0;
    padding: 1em 1em;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--quote-secondary-color);
}

.quote-hatex-widget-quote-mark .quote-hatex-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.quote-hatex-widget-quote-mark .quote-hatex-content {
    position: relative;
    padding: 0.2em 0.5em;
    font-family: "Markazi Text", "Noto Kufi Arabic", Arial, sans-serif;
    font-size: 1.4em;
    line-height: 1.7;
    color: var(--quote-primary-color);
    text-align: right;
}

/* حذف علامات الاقتباس */
.quote-hatex-widget-quote-mark .quote-hatex-content:before,
.quote-hatex-widget-quote-mark .quote-hatex-content:after {
    display: none;
}

.quote-hatex-widget-quote-mark .quote-hatex-container:hover .quote-hatex-content:before,
.quote-hatex-widget-quote-mark .quote-hatex-container:hover .quote-hatex-content:after {
    display: none;
}

.quote-hatex-widget-quote-mark .quote-hatex-footer {
    margin-top: 1.2em;
    padding-top: 0.8em;
    border-top: 1px solid var(--quote-secondary-color);
    text-align: left;
    color: var(--quote-primary-color);
    font-family: "Markazi Text", "Noto Kufi Arabic", Arial, sans-serif;
    font-size: 1.1em;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .quote-hatex-widget-quote-mark .widget-title {
        font-size: 16px;
        padding: 12px 15px;
    }

    .quote-hatex-widget-quote-mark .widget-title:before {
        font-size: 80px;
        top: -15px;
    }

    .quote-hatex-widget-quote-mark .quote-hatex-container {
        padding: 0.8em 0.8em;
    }

    .quote-hatex-widget-quote-mark .quote-hatex-content {
        padding: 0.2em 1.2em;
        font-size: 1.3em;
        line-height: 1.6;
    }

    .quote-hatex-widget-quote-mark .quote-hatex-content:before,
    .quote-hatex-widget-quote-mark .quote-hatex-content:after {
        font-size: 2.5em;
    }
}

/* إزالة الخط الرمادي */
blockquote {
    border-right: none !important;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .quote-hatex-container {
        margin: 1.5em 0;
        padding: 1.5em 1em;
    }

    .quote-hatex-content {
        font-size: 1em;
    }

    .quote-hatex-widget-calligraphy .quote-hatex-content {
        font-size: 1.2em;
    }
}

/* تصميم متجاوب */
@media screen and (max-width: 768px) {
    .quote-hatex-container {
        margin: 1.5em 0;
        padding: 1em;
    }

    .quote-hatex-content {
        font-size: 1.1em;
    }
}

/* تصميم الوضع المظلم */
@media (prefers-color-scheme: dark) {
    .quote-hatex-container {
        background: rgba(var(--quote-primary-color-rgb), 0.1);
        border-color: #444;
    }

    .quote-hatex-content {
        color: rgba(var(--quote-secondary-color-rgb), 0.9);
    }

    .quote-hatex-footer {
        border-color: var(--quote-secondary-color);
        color: rgba(var(--quote-secondary-color-rgb), 0.7);
    }
} 