/**
 * تنسيقات نظام تخصيص الأخبار
 */

/* عرض الحصة */
.quota-display {
    margin-left: 15px;
    padding: 8px 15px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quota-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quota-remaining {
    font-size: 20px;
    font-weight: 700;
    color: #38bdf8;
}

.quota-label {
    font-size: 11px;
    color: #94a3b8;
}

.quota-display.quota-low .quota-remaining {
    color: #f87171;
    animation: pulse 1.5s ease-in-out infinite;
}

.quota-display.quota-medium .quota-remaining {
    color: #fbbf24;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* رسالة عدم وجود أخبار */
.no-news-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: #cbd5e1;
}

.no-news-message i {
    font-size: 64px;
    color: #38bdf8;
    margin-bottom: 20px;
}

.no-news-message h3 {
    font-size: 24px;
    color: #e5e7eb;
    margin-bottom: 10px;
}

.no-news-message p {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.refresh-timer {
    margin-top: 30px;
    padding: 15px 25px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #38bdf8;
}

.refresh-timer i {
    font-size: 16px;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#refreshCountdown {
    font-weight: 700;
    font-size: 16px;
}

/* إشعارات */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification i {
    font-size: 20px;
}

.notification span {
    font-size: 14px;
    font-weight: 600;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .quota-display {
        margin-left: 0;
        margin-bottom: 10px;
        padding: 6px 12px;
    }
    
    .quota-remaining {
        font-size: 16px;
    }
    
    .quota-label {
        font-size: 10px;
    }
    
    .no-news-message {
        padding: 40px 20px;
    }
    
    .no-news-message i {
        font-size: 48px;
    }
    
    .no-news-message h3 {
        font-size: 20px;
    }
    
    .no-news-message p {
        font-size: 14px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        top: 70px;
    }
}

/* تأثيرات الأخبار الجديدة */
.news-card.new-article {
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* مؤشر التحميل */
.loading-personalized {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 15px;
}

.loading-personalized .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-personalized span {
    color: #94a3b8;
    font-size: 14px;
}

/* رسالة انتظار الأخبار الجديدة */
.waiting-message {
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.waiting-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed rgba(56, 189, 248, 0.3);
    border-radius: 15px;
}

.waiting-content i {
    font-size: 40px;
    color: #38bdf8;
}

.waiting-content p {
    font-size: 18px;
    color: #e2e8f0;
    margin: 0;
}

.waiting-content small {
    font-size: 13px;
    color: #94a3b8;
}
