/* ==========================================================================
   Favorites Styles (favorites.css) - نالش
   يحتوي على: أزرار المفضلة، تفاعلات الإضافة والإزالة، وحالة الصفحة الفارغة
   ========================================================================== */

/* ----------------------------------
   1. حاوية الأزرار العائمة (تستخدم للمفضلة والمشاركة)
------------------------------------- */
.card-actions-container {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    width: 40px; 
    height: 40px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none; 
    cursor: pointer; 
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dark-mode .action-btn { 
    background: rgba(30, 41, 59, 0.9); 
}

.action-btn:hover { 
    transform: scale(1.1); 
    box-shadow: var(--shadow-lg);
}

.action-btn:active {
    transform: scale(0.9);
}

/* ----------------------------------
   2. زر المفضلة وتأثيرات النبض (Favorite Button)
------------------------------------- */
.fav-btn { 
    color: var(--text-muted); 
}

.fav-btn:hover {
    color: var(--danger);
}

/* حالة النشاط (عند الإضافة للمفضلة) */
.fav-btn.active { 
    color: var(--danger); 
    animation: heartBurst 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* زر المشاركة (مرتبط بنفس الحاوية) */
.share-btn { 
    color: var(--primary); 
}

@keyframes heartBurst {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ----------------------------------
   3. الأزرار في كروت القائمة الطولية (List View)
------------------------------------- */
.list-item-footer .card-actions-container { 
    position: static; 
    flex-direction: row; 
}

.list-item-footer .action-btn { 
    transform: scale(0.9); 
    box-shadow: none;
    background: var(--bg-body);
    border: 1px solid var(--border);
}

.list-item-footer .action-btn:hover {
    transform: scale(1);
    border-color: var(--border);
}

/* ----------------------------------
   4. حالة الصفحة الفارغة (Empty State)
------------------------------------- */
.favorites-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-out forwards;
}

.favorites-empty-icon {
    font-size: 4rem;
    color: var(--border);
    margin-bottom: 20px;
    background: var(--bg-card);
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.favorites-empty-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 10px;
}

.favorites-empty-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 300px;
    line-height: 1.5;
}