/* claude_integration_guide.css - Professional Claude AI Integration Styling */

/* AI Response Components */
.ai-main-response {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.ai-main-response::before {
    content: '🤖';
    position: absolute;
    top: -10px;
    right: 15px;
    background: #3b82f6;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ai-main-response h4 {
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.ai-main-response p {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 12px;
}

.ai-main-response ul {
    margin: 15px 0;
    padding-left: 20px;
}

.ai-main-response li {
    color: #4b5563;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Code References Section */
.ai-code-refs {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    padding: 20px;
    border-left: 4px solid #0284c7;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
}

.ai-code-refs h5 {
    color: #0c4a6e;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-code-refs h5::before {
    content: '📋';
    font-size: 16px;
}

.ai-code-refs ul {
    margin: 0;
    padding-left: 20px;
}

.ai-code-refs li {
    color: #155e75;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.5;
}

/* Calculator Suggestions */
.ai-calculators {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 20px;
    border-left: 4px solid #059669;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
}

.ai-calculators h5 {
    color: #064e3b;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-calculators h5::before {
    content: '🧮';
    font-size: 16px;
}

.calculator-suggestion {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.calculator-suggestion:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
    border-color: #6ee7b7;
}

.calculator-suggestion strong {
    color: #065f46;
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.calculator-suggestion p {
    color: #047857;
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.calculator-link {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.calculator-link:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
    color: white;
}

/* Safety Considerations */
.ai-safety-notes {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 20px;
    border-left: 4px solid #d97706;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.1);
}

.ai-safety-notes h5 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-safety-notes h5::before {
    content: '⚠️';
    font-size: 16px;
}

.ai-safety-notes ul {
    margin: 0;
    padding-left: 20px;
}

.ai-safety-notes li {
    color: #78350f;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.6;
}

/* Action Items */
.ai-actions {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    padding: 20px;
    border-left: 4px solid #8b5cf6;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.ai-actions h5 {
    color: #581c87;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-actions h5::before {
    content: '📋';
    font-size: 16px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 12px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid #c4b5fd;
    transition: all 0.3s ease;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    border-color: #a78bfa;
}

.priority-high {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
}

.priority-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

.priority-low {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.action-item strong {
    color: #581c87;
    flex: 1;
    font-weight: 600;
}

.timeframe {
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
    background: rgba(107, 114, 128, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    min-width: 80px;
    text-align: center;
}

/* Cost-Benefit Analysis Components */
.cost-section {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.cost-section h4 {
    color: #991b1b;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cost-section h4::before {
    content: '💰';
    font-size: 18px;
}

.cost-section ul {
    margin: 0;
    padding-left: 20px;
}

.cost-section li {
    color: #7f1d1d;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.5;
}

.benefits-section {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.benefits-section h4 {
    color: #064e3b;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits-section h4::before {
    content: '✅';
    font-size: 18px;
}

.benefits-section ul {
    margin: 0;
    padding-left: 20px;
}

.benefits-section li {
    color: #065f46;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.5;
}

.recommendation-section {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.recommendation-section h4 {
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-section h4::before {
    content: '🎯';
    font-size: 18px;
}

.recommendation-text {
    color: #1d4ed8;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Migration Checklist Styling */
.migration-checklist-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin: 25px 0;
}

.migration-checklist-section h3 {
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.checklist-phase {
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checklist-phase h4 {
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.checklist-item {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(5px);
}

.checklist-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #3b82f6;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checklist-checkbox:hover {
    background: #dbeafe;
    border-color: #2563eb;
}

.checklist-checkbox.checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checklist-checkbox.checked::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.checklist-item-content {
    flex: 1;
}

.checklist-item-title {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.checklist-item-description {
    color: #4b5563;
    margin-bottom: 8px;
    line-height: 1.5;
}

.checklist-item-deliverable {
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
    background: rgba(107, 114, 128, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Interactive Elements */
.analysis-button {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    margin-top: 15px;
}

.analysis-button:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.speed-analysis-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #0284c7;
}

.speed-analysis-section h4 {
    color: #0c4a6e;
    margin-bottom: 15px;
    font-weight: 700;
}

.speed-analysis-section h5 {
    color: #075985;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

/* Interactive Table Styling */
.interactive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.interactive-table th {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.interactive-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.interactive-table tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.interactive-table tr:hover td {
    color: #1f2937;
    font-weight: 500;
}

/* Status Indicators in Tables */
.status-high-priority {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #991b1b;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.status-medium-priority {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.status-standard {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #064e3b;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

/* Loading and Animation States */
.ai-thinking {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-style: italic;
    padding: 20px;
}

.ai-thinking::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}

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

/* Tooltips for Enhanced User Experience */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background: #1f2937;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Enhanced Button Styles */
.claude-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.claude-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.claude-button:hover::before {
    left: 100%;
}

.claude-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.claude-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.claude-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .ai-main-response,
    .ai-code-refs,
    .ai-calculators,
    .ai-safety-notes,
    .ai-actions {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .calculator-suggestion {
        padding: 12px;
    }
    
    .action-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .priority-high,
    .priority-medium,
    .priority-low {
        align-self: flex-start;
    }
    
    .cost-section,
    .benefits-section,
    .recommendation-section {
        padding: 15px;
    }
    
    .migration-checklist-section {
        padding: 20px;
    }
    
    .checklist-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .interactive-table {
        font-size: 0.9rem;
    }
    
    .interactive-table th,
    .interactive-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .ai-main-response h4,
    .ai-code-refs h5,
    .ai-calculators h5,
    .ai-safety-notes h5,
    .ai-actions h5 {
        font-size: 1rem;
    }
    
    .calculator-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .claude-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .tooltip .tooltiptext {
        width: 150px;
        margin-left: -75px;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .ai-main-response,
    .ai-code-refs,
    .ai-calculators,
    .ai-safety-notes,
    .ai-actions,
    .cost-section,
    .benefits-section,
    .recommendation-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .calculator-link,
    .analysis-button,
    .claude-button {
        display: none;
    }
    
    .interactive-table {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .tooltip .tooltiptext {
        display: none;
    }
}

/* Accessibility Enhancements */
.calculator-link:focus,
.analysis-button:focus,
.claude-button:focus {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}

.checklist-checkbox:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

.action-item:focus-within {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
    border-radius: 8px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .ai-main-response,
    .ai-code-refs,
    .ai-calculators,
    .ai-safety-notes,
    .ai-actions {
        border-width: 2px;
        border-style: solid;
    }
    
    .calculator-suggestion {
        border-width: 2px;
    }
    
    .action-item {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .ai-thinking::before {
        animation: none;
    }
    
    .fade-in,
    .slide-in-left {
        animation: none;
    }
    
    .calculator-suggestion:hover,
    .action-item:hover,
    .checklist-item:hover {
        transform: none;
    }
    
    .claude-button:hover {
        transform: none;
    }
}