/* 
   Selection Hub & Premium UI Styles
   نظام التحديدات المطور - واجهة احترافية
*/

:root {
    --selection-primary: #6366f1;
    --selection-secondary: #8b5cf6;
    --selection-glass: rgba(255, 255, 255, 0.7);
    --selection-glass-dark: rgba(15, 23, 42, 0.8);
}

/* صناديق التحديد المحقونة ديناميكياً */
.news-selection-check-wrapper {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 100;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-selection-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--selection-primary);
    border-radius: 4px;
}

.news-card:hover .news-selection-check-wrapper,
.telegram-message:hover .news-selection-check-wrapper {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* حالة التحديد */
.news-selection-check-wrapper:has(input:checked) {
    background: var(--selection-primary);
    border-color: var(--selection-primary);
}

.news-selection-check-wrapper:has(input:checked) .news-selection-checkbox {
    accent-color: white;
}

/* الزر العائم المطور - Selection Hub FAB */
#selection-hub-fab {
    position: fixed;
    bottom: 30px;
    left: 30px; /* للواجهة العربية */
    z-index: 2000;
    display: none; /* يظهر عند التحديد فقط */
    align-items: center;
    gap: 15px;
    padding: 10px 25px 10px 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 60px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: fabPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fabPop {
    0% { transform: scale(0.5) translateY(50px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

[data-bs-theme="dark"] #selection-hub-fab {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#selection-hub-fab:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

#selection-hub-fab:active {
    transform: scale(0.95);
}

.fab-icon-wrapper {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--selection-primary), var(--selection-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
}

.fab-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
}

[data-bs-theme="dark"] .fab-text {
    color: #f1f5f9;
}

/* تحسينات المودال المطور */
.premium-modal .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.premium-modal .modal-header {
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
}

[data-bs-theme="dark"] .premium-modal .modal-header {
    background: linear-gradient(to right, #0f172a, #1e293b);
    border-bottom: 1px solid #334155;
}

.selection-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 5px;
    background: #f1f5f9;
    border-radius: 12px;
}

[data-bs-theme="dark"] .selection-tabs-nav {
    background: #1e293b;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: var(--selection-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .tab-btn.active {
    background: #334155;
    color: #818cf8;
}

/* قائمة التحديدات في المودال */
.selection-list-item {
    padding: 15px;
    border-radius: 16px;
    background: #f8fafc;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

[data-bs-theme="dark"] .selection-list-item {
    background: #0f172a;
    border: 1px solid #334155;
}

.selection-list-item:hover {
    border-color: var(--selection-primary);
    background: white;
}

[data-bs-theme="dark"] .selection-list-item:hover {
    background: #1e293b;
}

.selection-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s;
}

[data-bs-theme="dark"] .selection-action-btn {
    background: #334155;
    color: #94a3b8;
}

.selection-action-btn:hover {
    background: var(--selection-primary);
    color: white;
}

.btn-delete:hover {
    background: #ef4444 !important;
}
