/* Custom styles for Justice Society Builder */

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.comic-border {
    position: relative;
    border-style: solid;
    border-image: linear-gradient(45deg, #1e3a8a, #dc2626, #fbbf24) 1;
}

.comic-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #1e3a8a, #dc2626, #fbbf24);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.1;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Animation for AI thinking indicator */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hover effects for interactive elements */
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Focus styles for better accessibility */
.focus\:border-hero-blue:focus {
    border-color: #1e3a8a;
}

.focus\:outline-none:focus {
    outline: none;
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .font-comic {
        font-size: 0.9rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
}

/* Custom gradient backgrounds */
.bg-gradient-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 50%, #fbbf24 100%);
}

/* Button hover transitions */
button {
    transition: all 0.3s ease;
}

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

button:active {
    transform: translateY(0);
}

/* Card hover effects */
.bg-gradient-to-r:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Text area focus improvements */
textarea:focus {
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Loading animation for AI suggestions */
.ai-thinking {
    background: linear-gradient(90deg, #e5e7eb, #f3f4f6, #e5e7eb);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Progress bar animation */
.progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Character card animations */
.character-card {
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .order-1, .order-2, .order-3 {
        order: initial;
    }
    
    .w-80 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .flex {
        flex-direction: column;
    }
}