/* تنسيقات عامة */
body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: var(--bs-primary);
    min-height: 100vh;
    direction: rtl;
}

/* الخلفية المتموجة */
@keyframes wave {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-25%) translateY(2%); }
    100% { transform: translateX(-50%) translateY(0); }
}

.animate-wave { animation: wave 7s ease-in-out infinite; }
.animate-wave-slow { animation: wave 10s ease-in-out infinite; }
.animate-wave-slower { animation: wave 13s ease-in-out infinite; }
.animate-wave-slowest { animation: wave 16s ease-in-out infinite; }

/* تأثيرات حركية جديدة */
@keyframes slideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيقات الأزرار */
.action-button {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    animation: scaleIn 0.6s ease-out;
}

.action-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-button i {
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-button:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* زر الواتساب */
.fixed-whatsapp {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes pulseAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulseAnimation 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    background-color: #22c35e;
}

.whatsapp-button i {
    font-size: 2rem;
    color: white;
}

/* تنسيق النص فوق زر الواتساب */
.fixed-whatsapp .text-sm {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.fixed-whatsapp:hover .text-sm {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.3);
}

/* زر العودة للأعلى */
.scroll-to-top-button {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.6s ease-out;
}

.scroll-to-top-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* تأثيرات الحركة */
.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(5px);
}

/* تنسيقات القائمة المنسدلة */
.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: rgba(255, 255, 255, 0.1);
    --bs-accordion-btn-color: white;
    --bs-accordion-btn-bg: rgba(255, 255, 255, 0.1);
    --bs-accordion-active-bg: rgba(255, 255, 255, 0.15);
    --bs-accordion-active-color: white;
    position: relative;
    z-index: 10;
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(5px);
    animation: scaleIn 0.6s ease-out;
}

.accordion-item {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.accordion-button {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateX(-5px);
}

.accordion-button::after {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.accordion-body {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
    transform-origin: top;
    animation: slideIn 0.3s ease-out;
}

/* العناوين والنصوص */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out;
}

.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-white-80 { color: rgba(255, 255, 255, 0.8) !important; }

/* تحسين ترتيب العناصر والحاويات */
.container {
    position: relative;
    z-index: 10;
    padding: 2rem 1rem;
    backdrop-filter: blur(5px);
}

@media (min-width: 768px) {
    .container {
        padding: 3rem 2rem;
    }
}

/* تنسيق الصور */
.img-fluid {
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.img-fluid:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* تنسيق الفواصل */
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }

/* تأثيرات حركية للشعار */
@keyframes glow {
    0% {
        filter: drop-shadow(0 0 3px rgba(255,255,255,0.8))
               drop-shadow(0 0 6px rgba(255,255,255,0.6));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255,255,255,0.9))
               drop-shadow(0 0 18px rgba(255,255,255,0.7));
    }
    100% {
        filter: drop-shadow(0 0 3px rgba(255,255,255,0.8))
               drop-shadow(0 0 6px rgba(255,255,255,0.6));
    }
}

.logo-glow {
    animation: glow 3s ease-in-out infinite;
    transition: all 0.5s ease;
}

.logo-glow:hover {
    transform: scale(1.05);
    animation: glow 1.5s ease-in-out infinite;
}

:root {
    --bs-primary: #1e3a8a;
    --bs-primary-rgb: 30, 58, 138;
}

/* أزرار المشاركة الاجتماعية */
.social-share {
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-button:hover:before {
    opacity: 1;
}

.social-button i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.social-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
    background-color: #1e3a8a;
}

.social-button {
    animation: socialButtonFadeIn 0.5s ease-out backwards;
}

@keyframes socialButtonFadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.social-button:nth-child(1) { animation-delay: 0.1s; }
.social-button:nth-child(2) { animation-delay: 0.2s; }
.social-button:nth-child(3) { animation-delay: 0.3s; }
.social-button:nth-child(4) { animation-delay: 0.4s; }

/* بطاقات الأخبار */
.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.news-card-body {
    flex-grow: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card-body .card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.news-card-body .card-text {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.news-card-body .btn {
    align-self: flex-start;
}
