/* Custom styles for the Tableau to SAP BO Migration Guide */

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation active states */
.nav-btn {
    position: relative;
    transition: all 0.3s ease;
}

.nav-btn.active {
    color: #2563eb !important;
    border-bottom-color: #2563eb !important;
}

.nav-btn:hover {
    color: #2563eb;
    background-color: #f8fafc;
}

/* Section content animations */
.section-content {
    animation: fadeIn 0.5s ease-in-out;
}

.section-content.hidden {
    display: none;
}

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

/* Progress bar animations */
.progress-bar-animate {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Image container styles */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-container:hover .image-caption {
    transform: translateY(0);
}

/* Step indicators */
.step-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-indicator.completed {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.step-indicator.current {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(237, 137, 54, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(237, 137, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(237, 137, 54, 0);
    }
}

/* Code blocks */
.code-block {
    background: #1a202c;
    border-radius: 8px;
    padding: 1rem;
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-x: auto;
}

.code-block .comment {
    color: #718096;
}

.code-block .keyword {
    color: #63b3ed;
}

.code-block .string {
    color: #68d391;
}

/* Callout boxes */
.callout {
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    margin: 1rem 0;
}

.callout-info {
    background-color: #ebf8ff;
    border-left-color: #3182ce;
    color: #2b6cb0;
}

.callout-warning {
    background-color: #fffbeb;
    border-left-color: #d69e2e;
    color: #b7791f;
}

.callout-success {
    background-color: #f0fff4;
    border-left-color: #38a169;
    color: #276749;
}

.callout-danger {
    background-color: #fed7d7;
    border-left-color: #e53e3e;
    color: #c53030;
}

/* Screenshot frames */
.screenshot-frame {
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.screenshot-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(90deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 1px solid #e2e8f0;
}

.screenshot-frame::after {
    content: '⚫ ⚫ ⚫';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 8px;
    color: #a0aec0;
    letter-spacing: 2px;
}

/* Workflow arrows */
.workflow-arrow {
    position: relative;
    margin: 2rem 0;
}

.workflow-arrow::after {
    content: '↓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #4299e1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    40% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
    60% {
        transform: translate(-50%, -50%) translateY(-5px);
    }
}

/* Tool tip styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2d3748;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
}

/* Dark mode styles */
.dark {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
}

.dark .bg-white {
    background-color: #2d3748 !important;
    color: #e2e8f0;
}

.dark .text-gray-900 {
    color: #f7fafc !important;
}

.dark .text-gray-800 {
    color: #e2e8f0 !important;
}

.dark .text-gray-700 {
    color: #cbd5e0 !important;
}

.dark .text-gray-600 {
    color: #a0aec0 !important;
}

.dark .border-gray-200 {
    border-color: #4a5568 !important;
}

.dark .bg-gray-50 {
    background-color: #374151 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .grid.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid.md\\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-white {
        background: white !important;
    }
    
    .shadow-lg,
    .shadow-md,
    .shadow {
        box-shadow: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-btn:focus,
button:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gradient-to-br {
        background: white !important;
    }
    
    .text-blue-600 {
        color: #000080 !important;
    }
    
    .text-green-600 {
        color: #006400 !important;
    }
    
    .border {
        border-width: 2px !important;
    }
}