# 🏍️ المغامرة الكبرى: كيف حول عاشق للدراجات النارية معرفته بالسلامة الطرقية

اكتشف قصة ليو، عاشق للدراجات النارية الذي حول معرفته بالسلامة الطرقية. مغامرة ملهمة في 6 فصول.

---

import ArticleScript from '@/components/ArticleScript';
import ArticleStyle from '@/components/ArticleStyle';


{/* Hero Section Premium */}
<div className="article-container" dir="rtl" style={{textAlign: 'center', padding: '40px 20px'}}>
    <div style={{display: 'inline-block', background: 'linear-gradient(135deg, #f59e0b 0%, #d97706 100%)', padding: '8px 20px', borderRadius: '20px', marginBottom: '20px'}}>
        <span style={{color: 'white', fontWeight: '700', fontSize: '0.9em'}}>📖 قصة دراج</span>
    </div>
    
    <h1 style={{fontSize: '2.5em', lineHeight: '1.2', marginBottom: '20px', background: 'linear-gradient(135deg, #ffffff 0%, #94a3b8 100%)', WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent', backgroundClip: 'text'}}>
        قصة ليو: تحول دراج
    </h1>
    
    <p style={{fontSize: '1.2em', color: '#cbd5e1', maxWidth: '700px', margin: '0 auto 30px', lineHeight: '1.6'}}>
        اكتشف كيف حول شاب عاشق رؤيته للسلامة الطرقية. <strong style={{color: '#f59e0b'}}>مغامرة في 6 فصول</strong> ستغير نظرتك للدراجة النارية.
    </p>
    
    <img src="/images/articles/leo-story-hero.webp" alt="دراجة نارية على طريق متعرج" style={{width: '100%', maxWidth: '800px', borderRadius: '20px', margin: '30px auto', display: 'block', boxShadow: '0 20px 60px rgba(245, 158, 11, 0.3)'}} />
    
    <div style={{display: 'flex', gap: '15px', justifyContent: 'center', flexWrap: 'wrap', marginTop: '30px'}}>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>📚</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>6 فصول</div>
        </div>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>⏱️</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>5 دقائق قراءة</div>
        </div>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>🛡️</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>قصة حقيقية</div>
        </div>
    </div>
    
    <button id="start-story-leo" style={{background: 'linear-gradient(135deg, #f59e0b, #d97706)', color: 'white', border: 'none', padding: '18px 50px', borderRadius: '50px', fontSize: '1.3em', fontWeight: '700', cursor: 'pointer', boxShadow: '0 10px 30px rgba(245, 158, 11, 0.4)', marginTop: '40px', transition: 'all 0.3s'}}>
        📖 ابدأ القصة
    </button>
</div>

{/* Progress Bar */}
<div id="story-progress-container-leo" dir="rtl" style={{position: 'sticky', top: '0', zIndex: '100', background: 'rgba(2, 6, 23, 0.95)', backdropFilter: 'blur(10px)', padding: '15px 20px', borderBottom: '1px solid rgba(255,255,255,0.1)', display: 'none'}}>
    <div style={{maxWidth: '800px', margin: '0 auto'}}>
        <div style={{display: 'flex', justifyContent: 'space-between', marginBottom: '8px'}}>
            <span style={{fontSize: '0.9em', color: '#94a3b8'}} id="story-progress-text-leo">الفصل 1/6</span>
            <span style={{fontSize: '0.9em', color: '#f59e0b', fontWeight: '600'}}>📖 قصة ليو</span>
        </div>
        <div style={{height: '6px', background: 'rgba(255,255,255,0.1)', borderRadius: '10px', overflow: 'hidden'}}>
            <div id="story-progress-bar-leo" style={{height: '100%', width: '16.66%', background: 'linear-gradient(90deg, #f59e0b, #d97706)', transition: 'width 0.3s ease', borderRadius: '10px'}}></div>
        </div>
    </div>
</div>

{/* Story Container */}
<div id="story-container-leo" dir="rtl" style={{display: 'none', maxWidth: '800px', margin: '40px auto', padding: '0 20px'}}>
    <div style={{background: 'rgba(255,255,255,0.02)', border: '1px solid rgba(255,255,255,0.1)', borderRadius: '20px', padding: '40px', marginBottom: '20px'}}>
        <div style={{display: 'flex', alignItems: 'center', gap: '15px', marginBottom: '15px'}}>
            <div id="story-badge-leo" style={{background: 'linear-gradient(135deg, #f59e0b, #d97706)', minWidth: '50px', height: '50px', borderRadius: '12px', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: '1.5em', fontWeight: '800', color: 'white', flexShrink: '0'}}>1</div>
            <div id="story-category-leo" style={{textTransform: 'uppercase', fontSize: '0.85em', letterSpacing: '1.5px', color: '#f59e0b', background: 'rgba(245, 158, 11, 0.1)', padding: '6px 15px', borderRadius: '20px'}}>مقدمة</div>
        </div>
        
        <h3 id="story-title-leo" style={{fontSize: '1.8em', margin: '25px 0', lineHeight: '1.4', color: '#e2e8f0'}}></h3>
        
        <img id="story-image-leo" src="" alt="" style={{width: '100%', borderRadius: '15px', margin: '25px 0', display: 'none'}} />
        
        <div id="story-content-leo" style={{fontSize: '1.1em', lineHeight: '1.8', color: '#cbd5e1', marginTop: '30px'}}></div>
        
        <div style={{display: 'flex', justifyContent: 'space-between', marginTop: '40px', gap: '15px', flexWrap: 'wrap'}}>
            <button id="prev-story-leo" style={{background: 'rgba(255,255,255,0.05)', color: '#cbd5e1', border: '2px solid rgba(255,255,255,0.2)', padding: '15px 30px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', cursor: 'pointer', display: 'none'}}>← السابق</button>
            <button id="next-story-leo" style={{background: 'linear-gradient(135deg, #f59e0b, #d97706)', color: 'white', border: 'none', padding: '15px 40px', borderRadius: '12px', fontSize: '1.1em', fontWeight: '700', cursor: 'pointer', marginRight: 'auto'}}>التالي →</button>
        </div>
    </div>
</div>

{/* End Screen */}
<div id="story-end-leo" dir="rtl" style={{display: 'none', maxWidth: '800px', margin: '60px auto', padding: '0 20px'}}>
    <div style={{background: 'linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1))', border: '2px solid rgba(245, 158, 11, 0.3)', borderRadius: '24px', padding: '50px 40px', textAlign: 'center'}}>
        <div style={{fontSize: '4em', marginBottom: '20px'}}>🏆</div>
        <h2 style={{fontSize: '2.2em', marginBottom: '15px'}}>نهاية القصة</h2>
        <p style={{fontSize: '1.2em', color: '#cbd5e1', marginBottom: '30px'}}>شكراً لمتابعة مغامرة ليو! مثله تماماً، حول نهجك تجاه السلامة بالدراجة النارية.</p>

        <a href="/2025/01/05/testez-vos-connaissances-sur-la-securite-les-equipements-et-la-conduite-a-moto/" style={{display: 'inline-block', background: 'linear-gradient(135deg, #f59e0b, #d97706)', color: 'white', padding: '18px 40px', borderRadius: '12px', fontSize: '1.2em', fontWeight: '700', textDecoration: 'none', marginBottom: '20px'}}>
            🎯 اختبر معلوماتك
        </a>

        <div style={{display: 'flex', gap: '15px', justifyContent: 'center', marginTop: '30px', flexWrap: 'wrap'}}>
            <button id="restart-story-leo" style={{background: 'rgba(255,255,255,0.05)', color: 'white', border: '2px solid rgba(255,255,255,0.2)', padding: '16px 35px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', cursor: 'pointer'}}>
                🔄 اقرأ مرة أخرى
            </button>
            <a href="/dashboard" style={{background: 'rgba(255,255,255,0.05)', color: 'white', border: '2px solid rgba(255,255,255,0.2)', padding: '16px 35px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', textDecoration: 'none', display: 'inline-block'}}>
                📊 عرض ملفي
            </a>
        </div>
    </div>
</div>

{/* Social Sharing */}
<div className="action-buttons-grid" dir="rtl" style={{maxWidth: '800px', margin: '40px auto', padding: '0 20px'}}>
    <a href="#" id="share-whatsapp-leo" className="btn-share-whatsapp" style={{background: 'linear-gradient(135deg, #25D366, #128C7E)', color: 'white', padding: '20px', borderRadius: '16px', textDecoration: 'none', display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '12px', fontWeight: '700', fontSize: '1.1em', transition: 'transform 0.2s'}}>
        📱 شارك هذه القصة
    </a>
</div>


<ArticleStyle content={`

/* Fix text overflow */
#story-end-leo,
#story-end-leo p,
h3, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-container { padding: 20px 10px; }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    p { font-size: 1em; }

    button, a, #start-story-leo {
        width: 100%;
        padding: 18px 20px;
        box-sizing: border-box;
        margin-bottom: 10px;
        display: block;
        text-align: center;
        white-space: normal;
    }
}

`} />

<ArticleScript content={`
window.initStoryLeo = function() {
    if (window.initStoryLeoDone) return;
    const startBtn = document.getElementById('start-story-leo');
    if (!startBtn) return;
    
    window.initStoryLeoDone = true;

    const chaptersLeo = [
        {
            category: 'مقدمة',
            title: 'بداية مغامرة',
            image: '/images/articles/leo-story-hero.webp',
            content: 'تخيل راكباً للدراجة النارية، شاباً وعاشقاً، يجوب الطرق المتعرجة مع أدرينالين الرياح في شعره. يعرف كل منعطف، وكل مطب في الطريق، وكل صوت لمحركه. لكن، مثل العديد من الدراجين، غالباً ما يأخذ السلامة باستخفاف، معتقداً أن الخبرة تكفي. ومع ذلك، يدفع به موقف غير متوقع لمساءلة كل ما كان يعتقد أنه يعرفه. هذه قصة ليو، دراج مثل الكثيرين غيره، وإدراكه لأهمية الإعداد الجيد والمعرفة بالسلامة الطرقية.'
        },
        {
            category: 'الفصل 1',
            title: 'الحادث الأول',
            image: '/images/articles/leo-story-wet-curve.webp',
            content: 'كان ليو دائماً دراجاً واثقاً من نفسه. في كل خروجة، كان يشعر أن كل شيء تحت السيطرة. لكن في أحد الأيام، خلال جولة مع الأصدقاء، حدث موقف غير متوقع. منعطف حاد، طريق مبلل وفقدان طفيف للتماسك. يتذكر ليو الشعور الغريزي، لحظة من الذعر لم يسبق له أن عاشها من قبل. لم ينته الأمر بسقوط، لكنه حصل على وحي: السلامة لا يجب الاستخفاف بها. أدرك أن هناك الكثير ليتعلمه.'
        },
        {
            category: 'الفصل 2',
            title: 'البحث عن المعلومة',
            image: '/images/articles/leo-story-studying.webp',
            content: 'عند عودته إلى المنزل، بدأ ليو في البحث. استكشف المنتديات، وشاهد فيديوهات السلامة للدراجات النارية، وتحدث إلى خبراء. لكنه سرعان ما أدرك أن كمية المعلومات هائلة، ولا يعرف من أين يبدأ. هنا وجد موقعاً بسيطاً ومباشراً: 2roue.com، موقع مخصص للدراجين، حيث اكتشف اختباراً عبر الإنترنت. هذا الاختبار لا يتحدث فقط عن قواعد السلامة، بل أيضاً عن تقنيات متقدمة، واختيار المعدات، والأخطاء التي يجب تجنبها.'
        },
        {
            category: 'الفصل 3',
            title: 'لحظة الإدراك',
            image: '/images/articles/leo-story-reflection.webp',
            content: 'بعد الانتهاء من الاختبار، أدرك ليو مدى الخطر الذي كان يمكن أن يتعرض له بدون بعض المعلومات التي اكتشفها للتو. لقد أهمل أهمية التحضير والمراجعة المنتظمة لقواعد السلامة. ردود الفعل الجيدة والقيادة المسؤولة تصنع الفرق بين دراج متمرس وآخر يخاطر بلا داع.'
        },
        {
            category: 'الفصل 4',
            title: 'تطور ليو',
            image: '/images/articles/leo-story-safety-check.webp',
            content: 'مدفوعاً بهذا الإدراك، بدأ ليو في تطبيق المعلومات الجديدة التي تعلمها. خلال خرجاته، يفحص معداته بشكل منهجي، ويعدل سرعته وفقاً لظروف الطقس والطريق، ويحترم قواعد السلامة بدقة. لاحظ فوراً فرقاً في راحته وثقته أثناء القيادة.'
        },
        {
            category: 'الفصل 5',
            title: 'رسالة ليو',
            image: '/images/articles/leo-story-quiz-interface.webp',
            content: 'لقد حول ليو نهجه تجاه الدراجة النارية، وهو يعلم الآن أن السلامة لا تقتصر على المعدات. إنها مسألة خبرة، ومعرفة، ويقظة أيضاً. إذا كنت أنت أيضاً تريد اختبار معلوماتك، وتعلم نصائح قيمة، والاستعداد للقيادة بأمان تام، خُض الاختبار المتاح على 2roue.com. مثل ليو، حول شغفك إلى خبرة!'
        }
    ];

    let currentChapterLeo = 0;
    
    function startStoryLeo() {
        const startBtn = document.getElementById('start-story-leo');
        const storyContainer = document.getElementById('story-container-leo');
        
        if (startBtn) startBtn.style.display = 'none';
        if (storyContainer) storyContainer.style.display = 'block';
        
        currentChapterLeo = 0;
        showChapterLeo();
        
        storyContainer.scrollIntoView({ behavior: 'smooth' });
    }
    
    function showChapterLeo() {
        const chapter = chaptersLeo[currentChapterLeo];
        const categoryEl = document.getElementById('story-category-leo');
        const titleEl = document.getElementById('story-title-leo');
        const imageEl = document.getElementById('story-image-leo');
        const contentEl = document.getElementById('story-content-leo');
        const badgeEl = document.getElementById('story-badge-leo');
        const prevBtn = document.getElementById('prev-story-leo');
        const nextBtn = document.getElementById('next-story-leo');
        const progressText = document.getElementById('story-progress-text-leo');
        const progressBar = document.getElementById('story-progress-bar-leo');
        const progressContainer = document.getElementById('story-progress-container-leo');
        
        if (categoryEl) categoryEl.textContent = chapter.category;
        if (titleEl) titleEl.textContent = chapter.title;
        if (contentEl) contentEl.textContent = chapter.content;
        if (badgeEl) badgeEl.textContent = (currentChapterLeo + 1);
        
        if (imageEl && chapter.image) {
            imageEl.src = chapter.image;
            imageEl.alt = chapter.title;
            imageEl.style.display = 'block';
        }
        
        // Navigation buttons
        if (prevBtn) {
            prevBtn.style.display = currentChapterLeo > 0 ? 'inline-block' : 'none';
            prevBtn.onclick = prevChapterLeo;
        }
        if (nextBtn) {
            nextBtn.onclick = nextChapterLeo;
            if (currentChapterLeo === chaptersLeo.length - 1) {
                nextBtn.textContent = '✅ إنهاء';
                nextBtn.style.background = 'linear-gradient(135deg, #22c55e, #16a34a)';
            } else {
                nextBtn.textContent = 'التالي →';
                nextBtn.style.background = 'linear-gradient(135deg, #f59e0b, #d97706)';
            }
        }
        
        // Progress
        if (progressText) progressText.textContent = 'الفصل ' + (currentChapterLeo + 1) + '/6';
        if (progressBar) progressBar.style.width = ((currentChapterLeo + 1) / 6 * 100) + '%';
        if (progressContainer) progressContainer.style.display = 'block';
    }
    
    function nextChapterLeo() {
        if (currentChapterLeo < chaptersLeo.length - 1) {
            currentChapterLeo++;
            showChapterLeo();
            const storyContainer = document.getElementById('story-container-leo');
            if (storyContainer) storyContainer.scrollIntoView({ behavior: 'smooth', block: 'start' });
        } else {
            endStoryLeo();
        }
    }
    
    function prevChapterLeo() {
        if (currentChapterLeo > 0) {
            currentChapterLeo--;
            showChapterLeo();
            const storyContainer = document.getElementById('story-container-leo');
            if (storyContainer) storyContainer.scrollIntoView({ behavior: 'smooth', block: 'start' });
        }
    }
    
    function endStoryLeo() {
        const storyContainer = document.getElementById('story-container-leo');
        const endScreen = document.getElementById('story-end-leo');
        const progressContainer = document.getElementById('story-progress-container-leo');
        
        if (storyContainer) storyContainer.style.display = 'none';
        if (progressContainer) progressContainer.style.display = 'none';
        if (endScreen) {
            endScreen.style.display = 'block';
            endScreen.scrollIntoView({ behavior: 'smooth', block: 'center' });
        }
        
        // Update share link
        const shareBtn = document.getElementById('share-whatsapp-leo');
        if (shareBtn) {
            const shareText = encodeURIComponent('قرأت قصة ليو الملهمة على 2roue.com! 🏍️ اكتشف كيف حول رؤيته للسلامة بالدراجة النارية.');
            shareBtn.href = 'https://wa.me/?text=' + shareText;
        }
    }
    
    if (startBtn) startBtn.onclick = startStoryLeo;
    
    const restartBtn = document.getElementById('restart-story-leo');
    if (restartBtn) {
        restartBtn.onclick = function() {
            document.getElementById('story-end-leo').style.display = 'none';
            document.getElementById('start-story-leo').style.display = 'inline-block';
            window.scrollTo({ top: 0, behavior: 'smooth' });
        };
    }
};

if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', window.initStoryLeo);
} else {
    window.initStoryLeo();
}

setTimeout(function() {
    if(!window.initStoryLeoDone && window.initStoryLeo) window.initStoryLeo();
}, 500);

window.startStoryLeo = function() {}; // Fallback
window.restartStoryLeo = function() {}; // Fallback
`} />

