/* 
 * 🐆 CheetahFox Guide CSS - دليل المعداد المُعلم
 * تصميم احترافي، متجاوب، ومناسب للتعليم الرقمي
 * الإصدار: 1.0
 */

/* --- تعيين المتغيرات (الألوان، الخطوط، القياسات) --- */
:root {
    --primary: #4CAF50;        /* أخضر أساسي */
    --primary-dark: #2E7D32;   /* أخضر داكن */
    --accent: #FFC107;         /* أصفر ذهبي (مميز) */
    --accent-dark: #FF8F00;    /* برتقالي ذهبي */
    --secondary: #4DD0E1;      /* أزرق فاتح (مميزات) */
    --tertiary: #FF7043;       /* برتقالي فاتح (تحفيز) */
    --light-bg: #F8F9FA;       /* خلفية فاتحة */
    --light-gray: #f5f5f5;     /* خلفية فاتحة جداً */
    --dark-text: #2E2E2E;      /* نص داكن */
    --light-text: #FFFFFF;     /* نص أبيض */
    --border-color: #E0E0E0;   /* حدود رمادية فاتحة */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 12px;
    --spacing: 20px;
}

/* --- إعادة تعيين القيم الأساسية --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
}

/* --- التصميم العام للصفحة --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* --- الهيدر --- */
header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
    padding: 60px 20px 30px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.vision-box {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px dashed var(--accent);
    margin: 15px 0;
    max-width: 90%;
}

/* --- روابط التصفح السريع (البريماند) --- */
.legal-links {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    font-size: 0.9rem;
}

.legal-breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.legal-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 6px;
}

.legal-breadcrumb a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.legal-breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* --- الأقسام العامة --- */
.section {
    background: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: var(--radius);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--tertiary));
    border-radius: 2px;
}

.section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* --- الشبكة: المكونات الرئيسية --- */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.component-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    border-right: 5px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.component-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.component-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 10px;
}

.component-card h3::before {
    content: "🔧";
    position: absolute;
    left: 0;
    top: 0;
}

.component-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.component-card ul {
    list-style: none;
    padding-right: 15px;
}

.component-card li {
    position: relative;
    padding-right: 25px;
    margin: 8px 0;
    font-size: 0.95rem;
}

.component-card li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: bold;
}

/* --- الشبكة: المميزات --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}

.feature-card:hover {
    background: white;
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
}

/* --- المستويات التعليمية --- */
.levels-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.level-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.level-card h3 {
    background: var(--light-gray);
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.level-card h3 .badge {
    background: var(--accent);
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.level-card h3::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.level-card.active h3::after {
    content: "−";
    transform: rotate(180deg);
}

.level-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
}

.level-card.active .level-content {
    max-height: 1000px;
    padding: 20px 20px 20px;
    background: var(--light-gray);
}

.level-description {
    color: #444;
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

/* --- أشرطة التقدم --- */
.progress-container {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    width: 0;
    border-radius: 6px;
    transition: width 1s ease;
    position: relative;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.2) 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.level-progress {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

/* --- مراحل المستوى --- */
.stage-container {
    margin-top: 20px;
    border-top: 2px dashed var(--secondary);
    padding-top: 15px;
}

.stage-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border-right: 4px solid var(--secondary);
    transition: var(--transition);
}

.stage-card:hover {
    background: #f0f8ff;
    transform: translateX(5px);
}

.stage-card h4 {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.stage-icon {
    margin-left: 10px;
    font-size: 1.3rem;
    animation: float 3s infinite ease-in-out;
}

.stage-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.stage-features ul {
    list-style: none;
    padding-right: 15px;
}

.stage-features li {
    position: relative;
    padding-right: 25px;
    margin: 6px 0;
    font-size: 0.9rem;
}

.stage-features li::before {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--accent);
    font-size: 1.6em;
    line-height: 0;
}

/* --- نظام التحفيز --- */
.motivation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.motivation-badge {
    background: linear-gradient(135deg, var(--accent), var(--tertiary));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.motivation-badge::before {
    content: "⭐";
}

.motivation-badge:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- أزرار CTA --- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin: 10px 5px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn i {
    margin-left: 8px;
}

/* --- وسائط متعددة --- */
.media-container {
    margin: 20px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.media-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.media-container img,
.media-container video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.media-container:hover img,
.media-container:hover video {
    transform: scale(1.02);
}

video {
    max-width: 100%;
    height: auto;
}

/* --- التصميم المتجاوب --- */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 40px 15px 20px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 20px;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .components-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .legal-breadcrumb {
        font-size: 0.85rem;
    }

    .btn {
        display: block;
        margin: 10px auto;
        max-width: 250px;
        text-align: center;
    }
}

/* --- تأثيرات حركة --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.bounce-animation {
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}