/**
 * AI-Powered Guide UI Styling
 * Beautiful, accessible guide display system
 */

/* Guide Modal */
.guide-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    color: #2c3e50;
}

.guide-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    border-bottom: none;
}

.guide-modal-header .modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.guide-modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.guide-modal-body {
    padding: 2rem;
    max-height: 70vh;
    background: white;
    color: #2c3e50;
}

.guide-modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

/* Guide Sections */
.guide-section {
    margin-bottom: 2.5rem;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.guide-section-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.guide-section-header i {
    font-size: 1.5rem;
}

.guide-overview {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 8px;
}

/* Steps */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guide-step-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.guide-step-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.guide-step-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    user-select: none;
}

.guide-step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.guide-step-info {
    flex: 1;
    margin-left: 1rem;
}

.guide-step-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.guide-visual-cue {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.guide-visual-cue i {
    color: #667eea;
}

.guide-step-toggle {
    margin-left: 1rem;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.guide-step-body {
    padding: 0 1rem 1rem 5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.guide-step-body.show {
    max-height: 500px;
    padding: 0 1rem 1.5rem 5rem;
}

.guide-step-body p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* Pro Tips */
.guide-tips {
    display: grid;
    gap: 1rem;
}

.guide-tip-card {
    display: flex;
    align-items: start;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.guide-tip-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.guide-tip-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffc107;
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.guide-tip-content {
    flex: 1;
    margin-left: 1rem;
}

.guide-tip-title {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #2c3e50;
}

.guide-tip-description {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Troubleshooting */
.guide-troubleshooting {
    display: grid;
    gap: 1rem;
}

.guide-troubleshoot-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.guide-troubleshoot-problem,
.guide-troubleshoot-solution {
    padding: 1rem;
    color: #2c3e50;
}

.guide-troubleshoot-problem {
    background: #fff3e0;
    border-bottom: 1px solid #ffe0b2;
}

.guide-troubleshoot-problem strong {
    color: #d84315;
    font-weight: 700;
}

.guide-troubleshoot-solution {
    background: #e8f5e9;
}

.guide-troubleshoot-solution strong {
    color: #2e7d32;
    font-weight: 700;
}

/* Next Actions */
.guide-next-actions {
    display: grid;
    gap: 1rem;
}

.guide-next-action-card {
    display: flex;
    align-items: start;
    padding: 1rem;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.guide-next-action-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.guide-next-action-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2196f3;
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.guide-next-action-content {
    flex: 1;
    margin-left: 1rem;
}

.guide-next-action-title {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #2c3e50;
}

.guide-next-action-description {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Guide Button */
.btn-guide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-guide:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-guide i {
    margin-right: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .guide-modal-dialog {
        margin: 0.5rem;
    }
    
    .guide-modal-body {
        padding: 1rem;
    }
    
    .guide-step-body.show {
        padding: 0 1rem 1rem 1rem;
    }
    
    .guide-section-header h4 {
        font-size: 1.1rem;
    }
}
