/*
Theme Name: ثيم Bootstrap 5 المخصص
Author: اسمك هنا
Description: ثيم ووردبريس مخصص مبني باستخدام البوتستراب 5
Version: 1.0
Text Domain: bs5-theme
*/

/* يمكنك إضافة أي تنسيقات CSS مخصصة هنا لاحقاً */

/* ==========================================================================
   تأثيرات القائمة العلوية (Navbar Animations)
   ========================================================================== */

/* 1. تأثير حركة الروابط عند مرور الماوس (Underline Bounce) */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
    overflow: hidden;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: #ff5722; /* يمكنك تغيير هذا للون الثيم الأساسي */
    /* تأثير ارتداد غريب وجميل */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%);
    border-radius: 5px;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* 2. تأثير ظهور القائمة المنسدلة (3D Scale & Slide) */
@media (min-width: 992px) {
    /* تفعيل ظهور القائمة المنسدلة عند مرور الماوس بدلاً من النقر في الشاشات الكبيرة */
    .dropdown:hover > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .dropdown-menu {
        display: block; /* لضمان عمل الـ Transition */
        visibility: hidden;
        opacity: 0;
        /* إزاحة للأسفل وتصغير الحجم قليلاً كحالة ابتدائية */
        transform: translateY(20px) scale(0.95);
        transform-origin: top center;
        /* سرعة الحركة مع ارتداد بسيط */
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border: none;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        border-radius: 12px;
    }
}

/* 3. تأثير زر القائمة في الجوال (Hamburger to X) */
.navbar-toggler {
    border: none;
    outline: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* =========================================
   تنسيقات صفحة المقال (Single Post)
========================================= */

/* تأثير الظل لعنوان المقال فوق الصورة */
.text-shadow {
    text-shadow: 0px 4px 12px rgba(0, 0, 0, 0.8);
}

/* تنسيق المتن الأساسي لسهولة القراءة (Typography) */
.post-content .the-content {
    color: #2b2b2b;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* يفضل استخدام خط مقروء */
}

/* تنسيق الصور داخل المقال لتكون متجاوبة وذات زوايا دائرية */
.post-content .the-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* تنسيق العناوين الداخلية للمقال */
.post-content .the-content h2, 
.post-content .the-content h3 {
    color: #111;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* تنسيق الاقتباسات (Blockquotes) المدمجة في المحتوى */
.post-content .the-content blockquote {
    background-color: #f8f9fa;
    border-right: 5px solid #0d6efd; /* لون البوتستراب الأساسي */
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    font-style: italic;
    border-radius: 8px;
    margin: 2rem 0;
}

/* تنسيق شكل الوسوم (Tags) */
.post-tags a {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.post-tags a:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* =========================================
   التأثيرات الحركية (Animations)
========================================= */

/* 1. حركة ظهور الترويسة من الأسفل للأعلى (Fade Up) */
.fade-up-animation {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. حركة دخول نص المقال بنعومة مع تأخير بسيط (Slide In) */
.slide-in-animation {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInAnim 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s forwards; /* 0.3s هو التأخير */
}

@keyframes slideInAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}