/**
 * Action Hub Module Styles
 * Premium glassmorphic design with smooth animations
 */

/* Main Card */
.action-hub-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.35);
}

/* Header */
.action-hub-header {
    margin-bottom: 2rem;
}

.action-hub-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-main, #f8fafc);
    margin: 0 0 0.5rem 0;
}

.action-hub-header .subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary, rgba(248, 250, 252, 0.6));
    margin: 0;
}

/* Section Titles */
.section-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main, #f8fafc);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-main, #f8fafc);
    margin: 0 0 0.5rem 0;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-secondary, rgba(248, 250, 252, 0.6));
    margin: 0;
}

/* Pending Section */
.pending-section {
    margin-bottom: 2rem;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Action Card */
.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.action-card:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

/* Priority Indicators */
.action-card.priority-1 {
    border-left: 3px solid #ef4444; /* Red - Critical */
}

.action-card.priority-2 {
    border-left: 3px solid #f59e0b; /* Orange - High */
}

.action-card.priority-3 {
    border-left: 3px solid #3b82f6; /* Blue - Medium */
}

.action-card.priority-4,
.action-card.priority-5 {
    border-left: 3px solid #6b7280; /* Gray - Low */
}

/* Action Icon */
.action-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

/* Action Content */
.action-content {
    flex: 1;
    min-width: 0;
}

.action-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main, #f8fafc);
    margin: 0 0 0.25rem 0;
}

.action-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(248, 250, 252, 0.6));
    margin: 0 0 0.5rem 0;
}

/* Action Meta */
.action-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.overdue-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #fca5a5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Action Button */
.action-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.action-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

/* Dismiss Button */
.dismiss-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s;
    opacity: 0;
}

.action-card:hover .dismiss-btn {
    opacity: 1;
}

.dismiss-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Wins Section */
.wins-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wins-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Win Card */
.win-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.win-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.win-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.win-title {
    font-size: 1rem;
    color: var(--text-main, #f8fafc);
    font-weight: 450;
}

.win-time {
    font-size: 0.85rem;
    color: rgba(34, 197, 94, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .action-hub-card {
        padding: 1.5rem;
    }
    
    .action-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .win-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
