/* Animation styles for the diagnostic guide */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Apply animations to elements */
#question-area {
    animation: fadeIn 0.5s ease-out;
}

#options-area button {
    animation: slideInRight 0.3s ease-out forwards;
    opacity: 0;
}

/* Stagger button animations */
#options-area button:nth-child(1) { animation-delay: 0.1s; }
#options-area button:nth-child(2) { animation-delay: 0.2s; }
#options-area button:nth-child(3) { animation-delay: 0.3s; }
#options-area button:nth-child(4) { animation-delay: 0.4s; }
#options-area button:nth-child(5) { animation-delay: 0.5s; }

/* Restart button animation */
#restart-button:hover {
    animation: pulse 1s infinite;
}

/* Section toggle hover effect */
#toggle-concepts:hover span:first-child,
#toggle-tools:hover span:first-child {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

/* Details animation */
details .mt-2 {
    animation: fadeIn 0.4s ease-out;
}

/* Content section open/close transitions */
.content-section {
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, padding 0.5s ease-out;
}

/* Add subtle hover effect to all interactive elements */
button, details summary {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover, details summary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}