/* Interactive enhancements for IntelliSector */

.article-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #2563eb;
}

.article-card.expanded {
    background: #f8fafc;
}

.article-summary, .article-full {
    transition: opacity 0.3s ease;
}

.hidden {
    display: none;
}

.article-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.article-actions button {
    background: none;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.article-actions button:hover {
    background: #f3f4f6;
    border-color: #2563eb;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.widget h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.2rem;
}

.risk-gauge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.risk-high {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.risk-medium {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.risk-low {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #6ee7b7;
}

.risk-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.risk-indicator.risk-high {
    background: #fee2e2;
    color: #dc2626;
    border: 3px solid #dc2626;
}

.risk-indicator.risk-medium {
    background: #fef3c7;
    color: #d97706;
    border: 3px solid #d97706;
}

.risk-indicator.risk-low {
    background: #d1fae5;
    color: #059669;
    border: 3px solid #059669;
}

.trending-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trend-item {
    padding: 0.5rem;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.filter-option {
    margin-right: 0.5rem;
}

.interactive-chart {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chart-controls button {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-controls button.active,
.chart-controls button:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.notification.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Mobile responsiveness for interactive elements */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .chart-controls {
        flex-wrap: wrap;
    }
    
    .article-card {
        padding: 1rem;
    }
}