/* ==========================================
   أكاديمية اقرأ للاستشارات والتدريب
   style.css - جميع أنماط الموقع
   ========================================== */

/* ===== الأساسيات ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #F8FAFC;
    background-image: linear-gradient(rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.95)), 
                      url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=1200');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #1E293B;
    direction: rtl;
    min-height: 100vh;
}

/* ===== العلامة المائية ===== */
.watermark-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://drive.google.com/thumbnail?id=1HIvQPEQOYKoIjifDJG4F4bWVf4K-UA66&sz=w1500');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

/* ===== التنقل ===== */
.nav-active {
    color: #D4A017 !important;
    border-bottom: 3px solid #D4A017;
    font-weight: bold;
}

/* ===== الصفحات ===== */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== الهيرو ===== */
.academy-hero {
    background: linear-gradient(135deg, rgba(11, 31, 77, 0.98) 0%, rgba(19, 47, 107, 0.96) 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M0 0 L30 0 L15 30 Z" fill="%23D4A017" fill-opacity="0.03"/></svg>');
    background-size: cover;
    background-position: center;
}

/* ===== السلايدر ===== */
.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    flex-shrink: 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: #D4A017;
    transform: scale(1.3);
}

/* ===== اتجاه النصوص الإنجليزية ===== */
.dir-ltr {
    direction: ltr;
}

/* ===== صفحة الهبوط (Landing Page) ===== */
#lp-objectives li,
#lp-syllabus li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
}

#lp-objectives li::before {
    content: '🎯';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 14px;
}

#lp-syllabus li::before {
    content: '📌';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 14px;
}

/* ===== لوحة التحكم - الجداول ===== */
.admin-table-container {
    max-height: 500px;
    overflow-y: auto;
}

.admin-table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.admin-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.admin-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.admin-table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== بطاقات الإحصائيات ===== */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== خلفية النافذة المنبثقة ===== */
.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}

/* ==========================================
   تحسينات الجوال
   ========================================== */

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden !important;
        width: 100%;
    }

    ::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }

    button,
    a,
    select,
    input,
    .cursor-pointer {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* تحسين عرض الجداول في الجوال */
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table-container table {
        min-width: 600px;
    }

    /* تحسين الأزرار في الجوال */
    .mobile-full-width {
        width: 100%;
        display: block;
    }

    /* تحسين الهيرو في الجوال */
    .academy-hero {
        padding: 40px 16px !important;
    }

    .academy-hero h2 {
        font-size: 24px !important;
    }

    /* تحسين البطاقات في الجوال */
    .grid-cols-1-mobile {
        grid-template-columns: 1fr !important;
    }

    /* تحسين القوائم المنسدلة في الجوال */
    select {
        font-size: 16px !important;
        /* منع تكبير iOS */
    }
}

/* ==========================================
   تحسينات الطباعة
   ========================================== */

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .admin-table-container {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ==========================================
   فئات مساعدة عامة
   ========================================== */

.text-gold {
    color: #D4A017;
}

.bg-gold {
    background-color: #D4A017;
}

.border-gold {
    border-color: #D4A017;
}

.hover-gold:hover {
    color: #D4A017;
}

.transition-all {
    transition: all 0.3s ease;
}

/* ===== تحسينات للشهادات ===== */
.cert-verified {
    border-right: 4px solid #22c55e;
    background: linear-gradient(to left, #f0fdf4, transparent);
}

.cert-invalid {
    border-right: 4px solid #ef4444;
    background: linear-gradient(to left, #fef2f2, transparent);
}

/* ===== تحسينات للمدفوعات ===== */
.payment-method-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.payment-method-card:hover {
    border-color: #D4A017;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.payment-method-card.selected {
    border-color: #D4A017;
    background: #fefce8;
}

/* ===== تحسينات للتعليمات ===== */
.instructions-box {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px;
}

.instructions-box .copy-btn {
    transition: all 0.2s ease;
}

.instructions-box .copy-btn:hover {
    background: #e5e7eb;
}

/* ===== تحسينات للأخبار ===== */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.news-card .news-image {
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* ===== تحسينات للتعليقات ===== */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.testimonial-card .quote-icon {
    opacity: 0.1;
    font-size: 40px;
    position: absolute;
    top: 16px;
    left: 16px;
}

/* ===== تحسينات للدورات ===== */
.course-card {
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.course-card .course-image {
    height: 180px;
    object-fit: cover;
}

/* ===== تحسينات للفوتر ===== */
footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #D4A017;
}

/* ===== تحسينات للنوافذ المنبثقة ===== */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== أزرار التحميل ===== */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== شريط التقدم ===== */
.progress-bar {
    transition: width 0.7s ease-out;
}

.progress-bar .progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.7s ease-out;
}

/* ===== ألوان مخصصة ===== */
.bg-academy-blue {
    background-color: #0B1F4D;
}

.bg-academy-gold {
    background-color: #D4A017;
}

.text-academy-blue {
    color: #0B1F4D;
}

.text-academy-gold {
    color: #D4A017;
}

.border-academy-blue {
    border-color: #0B1F4D;
}

.border-academy-gold {
    border-color: #D4A017;
}

.hover-bg-academy-blue:hover {
    background-color: #0B1F4D;
}

.hover-bg-academy-gold:hover {
    background-color: #D4A017;
}
/* تأثيرات التفاعل الصامتة للقاعة */
.reaction-emoji {
    position: absolute;
    bottom: 0;
    font-size: 2rem;
    animation: floatUp 3s ease-in-out forwards;
    opacity: 1;
    z-index: 50;
    pointer-events: none;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.5) rotate(0deg); opacity: 0; }
    20% { opacity: 1; transform: translateY(-50px) scale(1.2) rotate(-15deg); }
    80% { opacity: 0.8; }
    100% { transform: translateY(-300px) scale(1) rotate(20deg); opacity: 0; }
}

/* تخصيص حاوية الفيديو لتكون سينمائية */
.video-container {
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}
