/**
 * Suggested Actions Button Styles
 * Quick follow-up action buttons after AI responses
 */

/* Container */
.suggested-actions-container {
    margin-top: 16px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

/* Label */
.suggested-actions-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggested-actions-label i {
    color: #f59e0b;
    font-size: 14px;
}

/* Buttons container */
.suggested-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* Individual button */
.suggested-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: var(--text-primary, #fff);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.suggested-action-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.suggested-action-btn:active {
    transform: translateY(0);
}

/* Emoji in buttons */
.suggested-action-btn::first-letter {
    font-size: 14px;
}

/* Light theme adjustments */
@media (prefers-color-scheme: light) {
    .suggested-action-btn {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
        color: #1e293b;
    }
    
    .suggested-action-btn:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    }
}

/* Responsive */
@media (max-width: 768px) {
    .suggested-actions-buttons {
        gap: 6px;
    }
    
    .suggested-action-btn {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .suggested-action-btn {
        flex: 1 1 100%;
    }
}

/* Animation on appear */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggested-actions-container {
    animation: slideUpFade 0.3s ease;
}

/* Staggered button animation */
.suggested-action-btn:nth-child(1) { animation-delay: 0.05s; }
.suggested-action-btn:nth-child(2) { animation-delay: 0.1s; }
.suggested-action-btn:nth-child(3) { animation-delay: 0.15s; }
.suggested-action-btn:nth-child(4) { animation-delay: 0.2s; }

.suggested-action-btn {
    animation: slideUpFade 0.3s ease backwards;
}

/* Variants for different action types */
.suggested-action-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: transparent;
    color: white;
}

.suggested-action-btn.primary:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.suggested-action-btn.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
    border-color: rgba(34, 197, 94, 0.3);
}

.suggested-action-btn.success:hover {
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-color: transparent;
    color: white;
}

.suggested-action-btn.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.15));
    border-color: rgba(245, 158, 11, 0.3);
}

.suggested-action-btn.warning:hover {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-color: transparent;
    color: white;
}

/* Utility buttons (Copy/Email) */
.utility-buttons {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.suggested-action-btn.utility-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 184, 160, 0.1));
    border-color: rgba(16, 185, 129, 0.2);
}

.suggested-action-btn.utility-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 184, 160, 0.2));
    border-color: rgba(16, 185, 129, 0.4);
}

/* Disabled state */
.suggested-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.suggested-action-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Loading state */
.suggested-action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.suggested-action-btn.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 6px;
}

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