/* animations.css - تأثيرات حركية جميلة */
@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* تطبيق الحركات */
.card-stat {
    animation: fadeInUp 0.6s ease-out;
}

.nav-item {
    animation: slideInRight 0.5s ease-out;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }

/* تأثيرات التلميع */
.glow-effect {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* حركات التفاعل */
.interactive-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-card:hover {
    animation: gentlePulse 0.6s ease-in-out;
}

/* تأثيرات الصفحات */
.page-content {
    animation: fadeInUp 0.5s ease-out;
}

/* حركات الأزرار */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:active::after {
    width: 100px;
    height: 100px;
}

/* حركات الإنجازات */
.achievement-card.unlocked {
    animation: float 3s ease-in-out infinite;
}

.achievement-card.unlocked:nth-child(odd) {
    animation-delay: 0.5s;
}

/* تأثيرات القرآن */
.surah-list-btn {
    transition: all 0.3s ease;
    position: relative;
}

.surah-list-btn::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--gold);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.surah-list-btn:hover::before {
    height: 20px;
}

/* حركات التحميل */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تأثيرات النص */
.blessed-text {
    position: relative;
    display: inline-block;
}

.blessed-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.blessed-text:hover::after {
    width: 100%;
}