/**
 * =====================================================
 * أذكاري - حصنك اليومي
 * أنماط الصفحات الداخلية - تصميم أنيق وبسيط
 * =====================================================
 */

/* ============ حاوية الصفحة ============ */
.azkar-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px 80px;
}

/* ============ رأس الصفحة ============ */
.page-header {
    text-align: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.page-header h1 i {
    color: var(--primary);
    margin-left: 8px;
}

.page-header .subhead {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============ زر العودة ============ */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
    transition: background 0.2s;
}

.back-home:hover { background: #a7f3d0; }

/* ============ بطاقة الذكر ============ */
.dhikr-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.dhikr-card:hover {
    box-shadow: var(--shadow-lg);
}

.dhikr-card-body { padding: 20px; }

/* ============ شريط التحكم العلوي ============ */
.card-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.favorite-icon {
    cursor: pointer;
    font-size: 1.2rem;
    color: #9ca3af;
    transition: transform 0.2s, color 0.2s;
}

.favorite-icon.active {
    color: var(--primary);
}

.favorite-icon:hover {
    transform: scale(1.1);
}

.repeat-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============ نص الذكر ============ */
.dhikr-text {
    font-size: 1.4rem;
    line-height: 2;
    text-align: center;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 16px;
    word-break: break-word;
}

.dhikr-reference {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.dhikr-reference::before { content: "— "; }
.dhikr-reference::after { content: " —"; }

.dhikr-note {
    text-align: center;
    background: var(--primary-light);
    color: var(--primary);
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============ منطقة الأزرار ============ */
.card-action-area {
    border-top: 1px solid var(--border);
    padding: 16px;
    display: flex;
    justify-content: center;
}

.action-buttons-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ============ زر العداد ============ */
.btn-count {
    background: var(--primary);
    border: none;
    color: white;
    min-width: 200px;
    height: 56px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: transform 0.1s, background 0.2s;
}

.btn-count:active { transform: scale(0.97); }

.btn-count.completed {
    background: #9ca3af;
}

.btn-count:disabled { cursor: default; }

/* ============ دائرة الأرقام ============ */
.count-circle {
    background: rgba(255,255,255,0.25);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.count-circle hr {
    width: 14px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.5);
    margin: 1px 0;
}

.btn-text {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

/* ============ زر إعادة التعيين ============ */
.reset-btn {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.reset-btn:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

/* ============ التنبيه العائم ============ */
.toast-msg {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-msg.show { opacity: 1; }

/* ============ ملاحظة الفوتر ============ */
.footer-note {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-note i {
    color: var(--primary);
    margin-left: 4px;
}

/* ============ متجاوب ============ */
@media (max-width: 480px) {
    .dhikr-text {
        font-size: 1.25rem;
        line-height: 1.9;
    }
    
    .btn-count {
        min-width: 180px;
        height: 52px;
    }
    
    .dhikr-card-body {
        padding: 16px;
    }
}
