/* =============== صفحة دعاء التراويح =============== */

.taraweeh-page {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0f1f3d 100%);
    min-height: 100vh;
}

/* شريط التنقل المبسط */
.taraweeh-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(15, 31, 61, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.taraweeh-navbar .nav-brand {
    font-size: 1.2rem;
}

.taraweeh-navbar .nav-actions,
.taraweeh-navbar .nav-actions-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.control-btn-nav {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.control-btn-nav:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(1.1);
}

.control-btn-nav.active {
    background: #d4af37;
    color: #0a1628;
}

/* المحتوى الرئيسي */
.taraweeh-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem;
}

/* العنوان الرئيسي */
.taraweeh-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
}

.header-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.taraweeh-header h1 {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
}

.header-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* أقسام الدعاء */
.dua-section {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.dua-section:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.section-number {
    font-size: 1.5rem;
}

.section-header h2 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.4rem;
    color: #d4af37;
    margin: 0;
}

/* نص الدعاء */
.dua-text {
    font-family: 'Amiri', serif;
    font-size: var(--dua-font-size, 1.5rem);
    line-height: 2.2;
    color: #e2e8f0;
}

.dua-text p {
    margin-bottom: 1.2rem;
    padding: 0.8rem 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    border-right: 3px solid rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.dua-text p:hover {
    background: rgba(212, 175, 55, 0.1);
    border-right-color: #d4af37;
}

.dua-text .salawat {
    text-align: center;
    color: #d4af37;
    font-size: 1.2em;
    border: none;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    margin-top: 1.5rem;
}

/* شريط التحكم السفلي */
.bottom-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 31, 61, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.bottom-btn {
    background: rgba(212, 175, 55, 0.2);
    border: none;
    color: #d4af37;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.bottom-btn:hover {
    background: #d4af37;
    color: #0a1628;
    transform: scale(1.1);
}

.scroll-speed-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.scroll-speed-control input[type="range"] {
    width: 80px;
    accent-color: #d4af37;
}

/* رسالة النسخ */
.copy-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.4);
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* وضع ملء الشاشة */
body.fullscreen-mode .taraweeh-navbar {
    display: none;
}

body.fullscreen-mode .taraweeh-content {
    padding-top: 1rem;
}

body.fullscreen-mode .bottom-controls {
    bottom: 10px;
}

/* التمرير التلقائي نشط */
body.auto-scrolling .dua-section {
    scroll-margin-top: 100px;
}

/* تعطيل التحديد أثناء التمرير */
body.auto-scrolling {
    user-select: none;
}

/* =============== تمييز الدعاء الحالي =============== */
.dua-section {
    transition: all 0.4s ease;
    border-right: 4px solid transparent;
}

.dua-section.active {
    background: rgba(212, 175, 55, 0.08);
    border-right-color: #d4af37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.dua-section.active .section-header h2 {
    color: #f4d47c;
}

/* تأثير متحرك للقسم النشط */
.dua-section.active::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #d4af37, #f4d47c, #d4af37);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* =============== الاستجابة للشاشات =============== */
@media (max-width: 768px) {
    .taraweeh-header h1 {
        font-size: 1.8rem;
    }

    .header-icon {
        font-size: 3rem;
    }

    .taraweeh-content {
        padding: 1rem 1rem 5rem;
    }

    .dua-section {
        padding: 1.2rem;
        border-radius: 15px;
    }

    .dua-text {
        font-size: var(--dua-font-size, 1.3rem);
        line-height: 2;
    }

    .control-btn-nav {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .bottom-controls {
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }

    .bottom-btn {
        width: 40px;
        height: 40px;
    }
}

/* للشاشات الكبيرة */
@media (min-width: 1200px) {
    .taraweeh-content {
        max-width: 1000px;
    }

    .dua-text {
        font-size: var(--dua-font-size, 1.7rem);
    }
}

/* الوضع الفاتح */
body.light-mode.taraweeh-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

body.light-mode .taraweeh-navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(30, 58, 138, 0.1);
}

body.light-mode .control-btn-nav {
    background: rgba(30, 58, 138, 0.1);
    border-color: rgba(30, 58, 138, 0.2);
    color: #1e3a8a;
}

body.light-mode .dua-section {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(30, 58, 138, 0.15);
}

body.light-mode .dua-text {
    color: #1e293b;
}

body.light-mode .dua-text p {
    background: rgba(30, 58, 138, 0.05);
    border-right-color: rgba(30, 58, 138, 0.3);
}

body.light-mode .bottom-controls {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(30, 58, 138, 0.2);
}

/* =============== شاشة اختيار الدعاء =============== */
.selection-screen {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.selection-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.selection-header .header-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.selection-header h1 {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 15px rgba(212, 175, 55, 0.3);
}

.selection-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* شبكة الخيارات */
.dua-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 0.5rem;
}

/* بطاقة الخيار */
.dua-option-card {
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.9), rgba(20, 40, 70, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dua-option-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

/* رقم الدعاء المزخرف */
.option-number {
    font-family: 'Amiri', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #d4af37, #f4d47c, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dua-option-card h3 {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 0.3rem;
}

/* إحصائيات البطاقة */
.option-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.stat-item i {
    color: #d4af37;
    font-size: 0.7rem;
}

/* معلومات الزر */
.option-btn {
    flex-direction: column;
    gap: 0.2rem;
}

.btn-label {
    font-weight: 600;
}

.btn-info {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* زر الرجوع البيضاوي */
.back-btn-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    border-radius: 25px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn-pill:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: #d4af37;
    transform: scale(1.05);
}

.back-btn-pill i {
    font-size: 0.9rem;
}

/* أزرار الاختيار */
.option-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.option-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.option-btn i {
    font-size: 0.85rem;
}

.short-btn {
    background: transparent;
    color: #d4af37;
    border: 2px solid rgba(212, 175, 55, 0.5) !important;
    box-shadow: none;
}

.short-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.long-btn {
    background: linear-gradient(135deg, #d4af37, #b8972e);
    color: #0a1628;
    border: none !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    font-weight: 700;
}

.long-btn:hover {
    background: linear-gradient(135deg, #f4d47c, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* badge نوع الدعاء */
.dua-type-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

.badge-short {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.badge-long {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
}

/* تأثير الطفو */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 600px) {
    .selection-header h1 {
        font-size: 1.8rem;
    }

    .dua-options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dua-option-card {
        padding: 1.4rem;
    }

    .option-buttons {
        flex-direction: column;
    }

    .option-btn {
        width: 100%;
        justify-content: center;
    }
}

/* الوضع النهاري لشاشة الاختيار */
body.light-mode .selection-header h1 {
    color: #996515;
}

body.light-mode .dua-option-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98));
    border-color: rgba(153, 101, 21, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-mode .dua-option-card:hover {
    box-shadow: 0 15px 50px rgba(153, 101, 21, 0.15);
    border-color: rgba(153, 101, 21, 0.4);
}

body.light-mode .dua-option-card h3 {
    color: #996515;
}

body.light-mode .option-number {
    background: linear-gradient(135deg, #996515, #c9a227, #996515);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

body.light-mode .short-btn {
    color: #996515;
    border-color: rgba(153, 101, 21, 0.5) !important;
}

body.light-mode .short-btn:hover {
    background: rgba(153, 101, 21, 0.1);
    border-color: #996515 !important;
}

body.light-mode .long-btn {
    background: linear-gradient(135deg, #996515, #7a5012);
}

body.light-mode .long-btn:hover {
    background: linear-gradient(135deg, #c9a227, #996515);
}

body.light-mode .back-btn-pill {
    background: rgba(153, 101, 21, 0.1);
    border-color: rgba(153, 101, 21, 0.3);
    color: #996515;
}

body.light-mode .back-btn-pill:hover {
    background: rgba(153, 101, 21, 0.2);
    border-color: #996515;
}

