/* تحسينات إضافية لصفحة المميزات */

/* تحسينات للأنيميشن */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

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

/* تحسينات للأسئلة الشائعة */
.faq-item {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInRight 0.5s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* تحسينات للهوفر */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-list li {
    transition: all 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(-5px);
    color: var(--heading);
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .feature-card {
        animation-delay: 0s !important;
    }
    
    .faq-item {
        animation-delay: 0s !important;
    }
}

/* تحسينات للطباعة */
@media print {
    .features-hero,
    .cta-section,
    .modern-header,
    .modern-footer {
        display: none;
    }
    
    .feature-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .faq-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* تحسينات للوضع المظلم (إذا تم تفعيله لاحقاً) */
@media (prefers-color-scheme: dark) {
    .features-hero {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .feature-card {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .faq-item {
        background: #2c3e50;
    }
    
    .faq-question {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .faq-answer p {
        color: #bdc3c7;
    }
}

/* تحسينات لإمكانية الوصول */
.feature-card:focus,
.faq-question:focus {
    outline: 3px solid var(--interactive);
    outline-offset: 2px;
}

/* تحسين للنصوص الطويلة */
.feature-description,
.faq-answer p {
    text-align: justify;
    hyphens: auto;
}

/* تحسينات للأيقونات */
.feature-icon i {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2);
}

/* تحسينات للقوائم */
.feature-list {
    counter-reset: feature-counter;
}

.feature-list li {
    counter-increment: feature-counter;
    position: relative;
}

.feature-list li::before {
    content: counter(feature-counter, decimal-leading-zero);
    position: absolute;
    right: -25px;
    top: 0;
    font-size: 0.8rem;
    color: var(--interactive);
    font-weight: bold;
    opacity: 0.7;
}

/* تحسينات للتمرير السلس */
html {
    scroll-behavior: smooth;
}

/* تحسينات للتحميل */
.features-main,
.faq-section {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.features-main {
    animation-delay: 0.3s;
}

.faq-section {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
