/* Custom styles for the AI Joke Generator */
/* Minimal overrides to complement Bootstrap theme */

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Enhanced card styling */
.joke-card {
    background: var(--bs-dark);
    border: 1px solid var(--bs-secondary);
    transition: all 0.3s ease;
}

.joke-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Joke text styling */
#joke-setup {
    font-style: italic;
    line-height: 1.6;
}

#joke-punchline {
    font-weight: 700;
    line-height: 1.4;
    color: var(--bs-light);
}

/* Loading animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.loading-text {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Button hover effects */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Stats section styling */
.stat-item h3 {
    font-weight: 700;
    font-size: 2rem;
}

/* Action buttons in joke display */
.joke-actions .btn {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Form styling improvements */
.form-control:focus {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}

/* Error state styling */
#error-state {
    border-left: 4px solid var(--bs-danger);
}

/* Initial state icon styling */
#initial-state i {
    opacity: 0.7;
}

/* Toast customization */
.toast {
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-secondary);
}

/* Responsive improvements */
@media (max-width: 576px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .joke-actions {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
}

/* Focus improvements for accessibility */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--bs-info);
    outline-offset: 2px;
}

/* Loading spinner in button */
#loading-spinner {
    width: 1rem;
    height: 1rem;
}

/* Smooth appearance animation for joke card */
.joke-card {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover states for interactive elements */
.card:hover {
    border-color: var(--bs-info);
}

/* Better visual hierarchy */
.lead {
    font-weight: 400;
    opacity: 0.9;
}

/* Icon spacing consistency */
.fas + span,
.fab + span {
    margin-left: 0.25rem;
}

/* Custom scrollbar for better dark theme integration */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-light);
}
