/**
 * Dashboard AI Widget Styles
 * ProductiveApp v4.3
 */

.dashboard-ai-section {
    margin: 32px 0;
}

.ai-sparkle {
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.dashboard-ai-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
}

/* AI Report Card */
.ai-report-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ai-report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e07840, #f59e0b, #10b981);
    opacity: 0;
    transition: opacity 0.3s;
}

.ai-report-card:hover {
    border-color: #e07840;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 120, 64, 0.15);
}

.ai-report-card:hover::before {
    opacity: 1;
}

.ai-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ai-report-title {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ai-report-icon {
    font-size: 24px;
    line-height: 1;
}

.ai-report-title h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.ai-report-date {
    font-size: 13px;
    color: var(--text-tertiary);
}

.ai-report-score {
    text-align: center;
}

.score-circle {
    position: relative;
    width: 50px;
    height: 50px;
    margin-bottom: 4px;
}

.score-circle svg {
    transform: rotate(0deg);
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
    color: var(--score-color, #e07840);
}

.score-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.ai-report-preview {
    margin: 16px 0;
    padding: 12px;
    background: var(--bg-tertiary);
    border-left: 3px solid #e07840;
    border-radius: 6px;
}

.ai-report-preview p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.ai-report-recommendations {
    margin: 16px 0;
}

.ai-report-recommendations h5 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.ai-report-recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.ai-report-recommendations li {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.ai-report-cta {
    margin-top: 16px;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #e07840, #f59e0b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-report-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 120, 64, 0.3);
}

/* Quick Actions */
.ai-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.ai-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

.ai-quick-btn:hover {
    border-color: #e07840;
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.ai-quick-btn svg {
    color: #e07840;
}

.ai-quick-btn span {
    color: var(--text-primary);
}

/* Empty State */
.ai-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-primary);
    border-radius: 12px;
}

.ai-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

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

.ai-empty-state h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.ai-empty-state p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Placeholder */
.ai-widget-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.ai-widget-placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ai-widget-placeholder p {
    margin: 0;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-ai-grid {
        grid-template-columns: 1fr;
    }

    .ai-quick-actions {
        grid-template-columns: 1fr;
    }
}
