/**
 * Onboarding CSS for Aether Canvas Strategy
 * Styles for wizard, tour, and checklist components
 */

/* Wizard Styles */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.wizard-step.active {
    display: block;
}

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

/* Radio Card Highlighting */
.radio-card {
    transition: all 0.3s ease;
}

.radio-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Progress Bar Animation */
#progress-bar,
#tour-progress,
#checklist-progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Confetti Animation */
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall linear forwards;
    border-radius: 2px;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Checklist Item Hover Effects */
.checklist-item {
    transition: all 0.2s ease;
}

.checklist-item:hover {
    transform: translateX(4px);
}

.checklist-checkbox {
    transition: all 0.3s ease;
}

.checklist-checkbox.bg-green-500 {
    animation: checkboxPop 0.3s ease;
}

@keyframes checkboxPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Tour Modal Animations */
#tour-modal {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading Overlay */
#loading-overlay {
    backdrop-filter: blur(4px);
}

/* Smooth Color Transitions */
.bg-gray-650 {
    background-color: #4a5568;
}

/* Button Hover Effects */
button,
a.button {
    transition: all 0.2s ease;
}

button:active,
a.button:active {
    transform: scale(0.98);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FAQ Accordion Animations */
.faq-answer {
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

.faq-answer.hidden {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        max-height: 500px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
    .wizard-step {
        padding: 1rem;
    }
    
    #tour-modal .p-8 {
        padding: 1.5rem;
    }
    
    .confetti-piece {
        width: 6px;
        height: 6px;
    }
}

/* Success Animation */
@keyframes successPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.success-animation {
    animation: successPulse 1s ease-in-out infinite;
}

/* Tooltip Styles (for context-sensitive help) */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    border: 1px solid #374151;
}

.tooltip .tooltip-text::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 .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Pulse Animation for Important Elements */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(59, 130, 246, 0);
    }
}

/* Shake Animation for Errors */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles (hide onboarding elements when printing) */
@media print {
    #onboarding-checklist,
    #tour-modal,
    #tour-overlay,
    #loading-overlay {
        display: none !important;
    }
}
