/* ==================================================== */
/* === Global Styles & Setup ========================== */
/* ==================================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

:root {
    /* 🎨 لوحة ألوان الموقع */
    --blue-dark: #1E3A8A;
    --blue-light: #3B82F6;
    --green: #10B981;
    --white: #FFFFFF;
    --gray-light: #F3F4F6;
    --yellow: #FACC15;
    --orange: #FB923C;

    /* ✨ متغيرات الموقع بناءً على اللوحة الجديدة */
    --primary-color: var(--blue-light); /* للأزرار الأساسية والروابط النشطة */
    --secondary-color: var(--orange); /* للأيقونات واللمسات المميزة (مثل أيقونة الشعار) */
    --accent-color: var(--yellow); /* لزر إنشاء الحساب وتأثيرات الـ hover على الأزرار */
    --text-dark: var(--blue-dark); /* للنصوص الداكنة والعناوين */
    --text-light: #555; /* للفقرات والنصوص الثانوية، ليبقى مقروءًا على الخلفيات */
    --background-light: var(--gray-light); /* لخلفية الصفحة بشكل عام */
    --white-color: var(--white); /* للعناصر ذات الخلفية البيضاء (البطاقات، القوائم) */
    --border-color: #ccc; /* للحدود الخفيفة */

    /* ألوان رسائل الحالة */
    --success-bg: #d4edda; /* خلفية خضراء فاتحة للنجاح */
    --success-text: #155724; /* نص أخضر داكن للنجاح */
    --error-bg: #f8d7da; /* خلفية حمراء فاتحة للخطأ */
    --error-text: #721c24; /* نص أحمر داكن للخطأ */
}

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-dark); /* النص الأساسي أزرق داكن */
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================================================== */
/* === Header Styles ================================== */
/* ==================================================== */
header {
    background-color: var(--blue-dark); /* الهيدر أزرق داكن */
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* حد أبيض خفيف */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right, .header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white-color); /* نص الشعار أبيض */
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo i {
    margin-left: 10px;
    font-size: 28px;
    color: var(--secondary-color); /* أيقونة الشعار بالبرتقالي */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--white-color); /* روابط التنقل أبيض */
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--yellow); /* هوفر أصفر */
}

.user-menu-container {
    position: relative;
    display: none; /* Hidden by default */
}

.user-menu-button {
    cursor: pointer;
}
.user-menu-button i { /* أيقونة الترس */
    color: var(--white-color) !important; /* لتبقى بيضاء في الهيدر */
}
.user-menu-button img { /* صورة المستخدم */
    border: 2px solid var(--white-color); /* إطار أبيض لصورة المستخدم */
}


.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 200px;
    z-index: 100;
    overflow: hidden;
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-dark); /* نص القائمة أزرق داكن */
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.user-menu-dropdown a:hover {
    background-color: var(--gray-light); /* خلفية رمادية فاتحة عند الهوفر */
}

.user-menu-dropdown a i {
    margin-left: 10px;
    color: var(--secondary-color); /* أيقونات القائمة برتقالي */
    width: 20px;
    text-align: center;
}

#certificateLink.disabled {
    color: #aaa;
    background-color: #f8f8f8;
    cursor: not-allowed;
    pointer-events: none;
}

body:not(.logged-in) .user-menu-container { display: none; }
body.logged-in .header-actions { display: none; }
body.logged-in .user-menu-container { display: block; }

.sign-in-button {
    background-color: var(--yellow); /* زر تسجيل الدخول أصفر */
    color: var(--blue-dark); /* نص أزرق داكن */
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.sign-in-button:hover {
    background-color: var(--green); /* هوفر أخضر */
    color: var(--white-color); /* نص أبيض */
}

/* ==================================================== */
/* === Main Content & Cards =========================== */
/* ==================================================== */
main {
    padding: 40px 0;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    gap: 40px;
    padding: 40px 20px;
}

.hero-section {
    flex: 1;
    min-width: 300px;
    max-width: 600px; /* Adjust as needed for layout */
    text-align: right;
}

.hero-section h1 {
    font-size: 3em;
    color: var(--text-dark); /* عناوين أزرق داكن */
    margin-bottom: 20px;
    line-height: 1.3;
}
/* لمسات برتقالية للعناوين */
.accent-text { /* كلاس جديد للنصوص المميزة */
    color: var(--orange);
}


.hero-section p {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.get-started-button {
    background-color: var(--orange); /* زر "ابدأ الآن" برتقالي */
    color: var(--white-color);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.get-started-button:hover {
    background-color: #e6802a; /* برتقالي أغمق عند الهوفر */
}

.auth-container {
    max-width: 450px;
    margin: 50px auto;
}

.signup-card {
    background-color: var(--white-color); /* بطاقات التسجيل أبيض */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.signup-card h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark); /* عنوان البطاقة أزرق داكن */
    margin-bottom: 30px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    text-align: right;
    color: var(--text-dark); /* لون النص داخل حقول الإدخال */
}
.input-group input::placeholder {
    color: #888; /* لون الـ placeholder */
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light); /* لون أيقونة العين */
}

.create-account-button {
    background-color: var(--accent-color); /* زر إنشاء الحساب أصفر */
    color: var(--blue-dark); /* نص أزرق داكن */
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    text-decoration: none; /* For links styled as buttons */
    display: inline-block; /* For links styled as buttons */
    text-align: center;   /* For links styled as buttons */
}

.create-account-button:hover {
    background-color: var(--green); /* هوفر أخضر */
    color: var(--white-color); /* نص أبيض */
}

.login-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: var(--text-light);
}

.login-prompt a {
    color: var(--primary-color); /* رابط أزرق فاتح */
    font-weight: 600;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 0.9em;
    text-align: center;
    display: none;
}
.message.success { background-color: var(--success-bg); color: var(--success-text); }
.message.error { background-color: var(--error-bg); color: var(--error-text); }

/* Responsive Adjustments */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    .hero-section {
        flex-direction: column; /* الصورة ثم المحتوى */
        margin-bottom: 40px;
        text-align: center;
    }
    .signup-card {
        width: 100%;
    }
    .hero-visual {
        max-width: 80%; /* زيادة عرض الصورة على الشاشات الصغيرة */
        margin-bottom: 30px; /* مسافة بين الصورة والمحتوى */
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-right, .header-left {
        width: 100%;
        justify-content: center;
    }
    .header-left {
        justify-content: flex-end; /* Push auth buttons to the end */
    }
}

/* Divider for social login */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}
.divider:not(:empty)::before {
    margin-left: .25em;
}
.divider:not(:empty)::after {
    margin-right: .25em;
}
.divider span {
    padding: 0 10px;
    color: #888;
    font-size: 0.9em;
}

/* Social Login Buttons */
/* Google button usually renders itself, but adjust container margin */
.g_id_signin {
    margin-bottom: 15px !important;
    display: flex;
    justify-content: center;
}

.facebook-login-button {
    background-color: #3b5998; /* Facebook blue */
    color: var(--white-color);
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px; /* Space above Facebook button */
}

.facebook-login-button:hover {
    background-color: #2d4373;
}
.facebook-login-button i {
    font-size: 1.2em;
}


/* ==================================================== */
/* === topicsgamein.html specific styles (from previous request) */
/* ==================================================== */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px;
    margin-top: 30px;
}
.topic-card {
    background-color: var(--white-color); /* White background */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* ظل أعمق */
    padding: 30px;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* Center all text content inside the card */
    min-height: 250px; /* Give a minimum height for consistent look */
    justify-content: space-between; /* Push button to bottom if content is short */
}
.topic-card:hover {
    transform: translateY(-3px); /* حركة رفع خفيفة */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15); /* ظل أعمق عند الهوفر */
}
.topic-icon {
    font-size: 40px;
    color: var(--secondary-color); /* أيقونة برتقالية */
    margin-bottom: 20px; /* Space below icon */
    margin-left: 0; /* Reset margin-left from RTL default */
    flex-shrink: 0;
}
.topic-info {
    flex-grow: 1; /* Allow info section to take available space */
    margin-bottom: 20px; /* Space below info before button/status */
}
.topic-info h3 {
    font-size: 1.4em;
    color: var(--text-dark); /* عنوان الموضوع أزرق داكن */
    margin-bottom: 5px;
}
.topic-info p {
    font-size: 0.95em;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}
.topic-actions {
    width: 100%;
    text-align: center;
}
.play-button, .login-required {
    display: inline-block;
    background-color: var(--primary-color); /* زر اللعب أزرق فاتح */
    color: var(--white-color);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
    min-width: 150px;
}
.play-button:hover, .login-required:hover {
    background-color: #357ae8; /* أزرق أغمق عند الهوفر */
}
.topic-status {
    font-weight: 500;
    color: var(--green); /* أخضر لحالة "تم الإكمال" */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border: 2px solid var(--green);
    border-radius: 8px;
    background-color: #e6ffe6; /* خلفية خضراء فاتحة جداً */
    min-width: 150px;
}
.topic-status.topic-locked {
    color: #6c757d; /* رمادي للحالة المغلقة */
    border: 2px solid #6c757d;
    background-color: #f0f0f0; /* خلفية رمادية فاتحة */
}
.topic-status i {
    color: var(--green);
}
.topic-status.topic-locked i {
    color: #6c757d;
}


/* ==================================================== */
/* === Accordion Styles for topics.html =============== */
/* ==================================================== */
.accordion-container {
    width: 100%;
    margin-top: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    background-color: var(--white-color);
    border-bottom: 1px solid #eee;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-title {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes topic icon to right, chevron to left in RTL */
    padding: 15px 20px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-dark); /* نص العنوان أزرق داكن */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-title:hover {
    background-color: var(--gray-light); /* خلفية رمادية فاتحة عند الهوفر */
}

.accordion-title.active {
    background-color: var(--primary-color); /* أزرق فاتح عند التفعيل */
    color: var(--white-color); /* نص أبيض عند التفعيل */
}

/* Style for the Topic Icon (the first <i> in accordion-title, and not the chevron) */
.accordion-title > i:first-of-type:not(.accordion-icon) {
    font-size: 1.8em; /* Make it larger */
    color: var(--secondary-color); /* أيقونة برتقالية */
    order: 2; /* Move it to the right in RTL flexbox */
    margin-right: 0; /* Reset any previous margin-right */
    margin-left: 15px; /* Space between topic icon and text (on its right in RTL) */
}

/* Style for the Text (the <span> in accordion-title) */
.accordion-title span {
    flex-grow: 1; /* Allow text to take available space */
    text-align: right; /* Ensure text aligns right within its flex-grow space */
    order: 1; /* Place text to the left of the topic icon in RTL */
}

/* Style for the Chevron Icon (has accordion-icon class) */
.accordion-title i.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 1em; /* Smaller size */
    color: var(--white-color); /* أبيض عند التفعيل */
    order: 0; /* Move it to the far left in RTL */
    margin-right: 0; /* Remove any previous margin */
    margin-left: 0; /* Remove any previous margin */
}

/* Adjust margin between chevron and text for better spacing in RTL */
.accordion-title i.accordion-icon + span { /* Target span directly after chevron */
    margin-right: 15px; /* Add space between chevron and text (on its right in RTL) */
}


/* Active states for icons */
.accordion-title.active > i:first-of-type:not(.accordion-icon) {
    color: var(--yellow); /* أيقونة صفراء عند التفعيل */
}

/* Note: Chevron icon color is already set to white-color for active state */
.accordion-title.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    background-color: var(--white-color); /* خلفية المحتوى أبيض */
}

.accordion-content p {
    padding-bottom: 15px;
    margin: 0;
    font-size: 1em;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==================================================== */
/* === Certificate page specific styles =============== */
/* ==================================================== */
.certificate-page { display: flex; flex-direction: column; align-items: center; }
.certificate-container {
    width: 800px;
    height: 565px;
    margin: 50px auto;
    border: 10px solid var(--secondary-color); /* استخدام اللون البرتقالي للحدود */
    padding: 40px;
    background-color: var(--white-color);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    box-sizing: border-box;
    text-align: center;
}
.cert-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.cert-logo {
    font-size: 40px;
    color: var(--secondary-color); /* لون أيقونة الشعار برتقالي */
    margin-left: 10px;
}
.cert-title {
    font-size: 28px;
    color: var(--text-dark); /* لون عنوان الشهادة أزرق داكن */
    font-weight: 700;
    margin: 0;
}
.cert-main-statement {
    font-size: 22px;
    color: var(--text-light);
    margin-top: 30px;
    margin-bottom: 10px;
}
.cert-name {
    font-size: 60px;
    font-weight: 800;
    color: var(--primary-color); /* اسم اللاعب باللون الأزرق الفاتح */
    margin: 10px auto 30px auto;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color); /* خط سفلي بنفس لون الاسم */
    width: fit-content;
    max-width: 90%;
    line-height: 1.2;
}
.cert-congrats {
    font-size: 22px;
    color: var(--text-light);
    margin-top: 10px;
}
.cert-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 20px;
}
.cert-signature {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color); /* خط رقيق فوق التوقيع */
    padding-top: 5px;
}
.download-button {
    background-color: var(--yellow); /* زر التنزيل أصفر */
    color: var(--text-dark); /* نص أزرق داكن */
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.download-button:hover {
    background-color: var(--green); /* هوفر أخضر */
    color: var(--white-color); /* نص أبيض */
}

/* ==================================================== */
/* === Scenario page specific styles ================== */
/* ==================================================== */
.scenario-container { max-width: 800px; margin: 40px auto; background-color: var(--white-color); padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); position: relative; overflow: hidden; }
.scenario-title { font-size: 2.5em; color: var(--text-dark); text-align: center; margin-bottom: 20px; }
.scenario-story { font-size: 1.2em; line-height: 1.8; color: var(--text-light); margin-bottom: 30px; text-align: justify; }
.scenario-question { font-size: 1.4em; font-weight: 600; color: var(--text-dark); margin-bottom: 30px; text-align: center; border-top: 1px solid var(--border-color); padding-top: 20px; }
.choices-container { display: flex; flex-direction: column; gap: 15px; }
.choice-button {
    padding: 15px 20px;
    font-size: 1.1em;
    background-color: var(--gray-light); /* خلفية رمادية فاتحة للاختيارات */
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    color: var(--text-dark);
}
.choice-button:hover:not(:disabled) {
    background-color: #e6f0ff; /* لون أزرق فاتح جداً */
    border-color: var(--primary-color); /* حدود زرقاء فاتحة */
    transform: scale(1.01); /* حركة طفيفة */
}
.choice-button:disabled { cursor: not-allowed; opacity: 0.7; }
/* ألوان الفيدباك */
.feedback-container { margin-top: 30px; padding: 20px; border-radius: 8px; display: none; }
.feedback-container.visible { display: block; }
.feedback-container p { margin: 0; font-size: 1.1em; font-weight: 500; color: var(--text-dark); }
#next-button {
    display: none;
    margin: 30px auto 0;
    background-color: var(--green); /* زر التالي أخضر */
    color: var(--white-color);
}
#next-button:hover {
    background-color: #0d8a5e; /* أخضر أغمق */
}
.star-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    color: var(--yellow); /* النجمة باللون الأصفر */
    z-index: 10;
    opacity: 0;
    animation: star-burst 1.5s ease-out forwards;
}
@keyframes star-burst {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

/* ==================================================== */
/* === Profile page specific styles =================== */
/* ==================================================== */
.profile-card {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}
.profile-card h2 { font-size: 2em; color: var(--text-dark); margin-bottom: 30px; }
.avatar-upload {
    position: relative; margin-bottom: 30px; cursor: pointer; width: 150px; height: 150px; border-radius: 50%;
    background-color: var(--gray-light); /* خلفية رمادية فاتحة */
    border: 2px dashed var(--border-color);
    display: flex; justify-content: center; align-items: center; overflow: hidden; margin-left: auto; margin-right: auto;
}
.avatar-upload input[type="file"] { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.avatar-upload img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-upload .upload-icon { font-size: 3em; color: var(--primary-color); } /* أيقونة الكاميرا زرقاء فاتحة */
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-light); text-align: right; }
.profile-card input[type="text"] {
    width: calc(100% - 30px); padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 8px;
    font-size: 1.1em; box-sizing: border-box; margin-bottom: 25px; text-align: right;
    color: var(--text-dark);
}
.profile-card input[type="text"]::placeholder {
    color: #888;
}
.profile-actions { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; }
.profile-actions button { flex: 1; padding: 15px 25px; border: none; border-radius: 8px; cursor: pointer; font-size: 1.1em; font-weight: 600; transition: background-color 0.3s ease; }
.profile-actions .save-button { background-color: var(--primary-color); color: var(--white-color); } /* زر حفظ أزرق فاتح */
.profile-actions .save-button:hover { background-color: #357ae8; } /* أزرق أغمق */
.profile-actions .skip-button { background-color: var(--gray-light); color: var(--text-dark); border: 1px solid var(--border-color); } /* زر تخطي رمادي فاتح */
.profile-actions .skip-button:hover { background-color: #e0e0e0; }

/* ==================================================== */
/* === Image Specific Styles ========================== */
/* ==================================================== */

/* كلاس عام للصور المتجاوبة */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block; /* لإزالة أي مسافات إضافية تحت الصورة */
}

/* كلاسات لتطبيق الفلاتر اللونية (يمكن استخدامها على أي صورة) */
.ai-positive-illustration {
    /* تطبيق فلتر يميل للصدارة الأزرق أو الأخضر مع الحفاظ على الحيوية */
    filter: brightness(1.05) saturate(1.1); /* زيادة الإشراق والتشبع قليلاً */
    /* يمكنك تجربة hue-rotate لضبط الألوان إذا كانت الصورة الأصلية متباينة جداً */
    /* hue-rotate(10deg); */
    position: relative;
    overflow: hidden; /* لمنع تجاوز الـ overlay للحواف الدائرية */
}

.ai-positive-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color); /* لون أزرق فاتح */
    opacity: 0.1; /* شفافية خفيفة جداً */
    mix-blend-mode: overlay; /* طريقة دمج لتحقيق تناسق لطيف */
    border-radius: 12px; /* ليتوافق مع الصورة الأصلية */
}

/* ==================================================== */
/* === About Page Specific Styles ===================== */
/* ==================================================== */
.about-visual {
    margin: 30px auto; /* توسيط الصورة وترك مسافة حولها */
    max-width: 600px; /* تحديد أقصى عرض للصورة في هذه الصفحة */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-visual img {
    border-radius: 8px; /* حواف دائرية خفيفة للصورة */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* ظل خفيف للصورة */
}

/* لتجنب تكرار الأنماط المضمنة, يمكن تعريف كلاسات هنا واستخدامها في HTML */
.about-page-title {
    color: var(--text-dark); /* التأكد من استخدام لون العنوان الجديد */
}
.about-page-text-1, .about-page-text-2 {
    color: var(--text-light); /* التأكد من استخدام لون النص الجديد */
}

/* ==================================================== */
/* === How To Play Page Specific Styles =============== */
/* ==================================================== */
.how-to-play-visual {
    margin: 20px auto 40px auto; /* توسيط الصورة وترك مسافة حولها */
    max-width: 500px; /* تحديد أقصى عرض للصورة في هذه الصفحة */
    display: flex;
    justify-content: center;
    align-items: center;
}
.how-to-play-visual img {
    border-radius: 8px; /* حواف دائرية خفيفة للصورة */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* ظل خفيف جداً للصورة الشفافة */
}

.how-to-play-page-title {
    color: var(--text-dark);
}
.how-to-play-page-step-1, .how-to-play-page-step-2, .how-to-play-page-step-3, .how-to-play-page-conclusion {
    color: var(--text-dark);
}

/* ==================================================== */
/* === Topics Informational Page Specific Styles ====== */
/* ==================================================== */
.topics-informational-visual {
    margin: 20px auto 40px auto;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.topics-informational-visual img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.topics-page-title, .topics-page-intro, .topics-page-more {
    color: var(--text-dark);
}

/* ==================================================== */
/* === Topics Game Page Specific Styles =============== */
/* ==================================================== */
.topics-game-visual {
    margin: 20px auto 40px auto;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.topics-game-visual img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.topics-game-page-title, .topics-game-page-intro {
    color: var(--text-dark);
}

/* ==================================================== */
/* === Rewards Page Specific Styles =================== */
/* ==================================================== */
.rewards-visual {
    margin: 20px auto 40px auto;
    max-width: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.rewards-visual img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.rewards-page-title, .rewards-page-intro, .rewards-page-conclusion {
    color: var(--text-dark);
}
.rewards-page ul li i {
    /* ألوان الأيقونات في صفحة المكافآت */
    color: var(--secondary-color); /* برتقالي كافتراضي */
}
.rewards-page ul li:nth-child(1) i { color: var(--yellow); } /* شارة ذهبية */
.rewards-page ul li:nth-child(2) i { color: var(--primary-color); } /* نجمة زرقاء */
.rewards-page ul li:nth-child(3) i { color: var(--orange); } /* تحليلات برتقالية */
.rewards-page ul li:nth-child(4) i { color: var(--green); } /* شهادة خضراء */
```