/* Custom Styles for GaliZoo.fun */

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

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1E293B;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #D97706;
}

/* Option card hover effects */
.option-card:hover .peer-checked\:border-amber-500 {
    border-color: #F59E0B;
}

/* Button glow animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    }
}

.animate-pulse {
    animation: glow 2s ease-in-out infinite;
}

/* Card template styling for html2canvas */
#certificate-card {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid rgba(245, 158, 11, 0.3);
    border-top-color: #F59E0B;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

/* Mobile optimization */
@media (max-width: 640px) {
    body {
        font-size: 14px;
    }
}

/* Focus states for accessibility */
input:focus,
button:focus {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}

/* Radio button custom styling */
input[type="radio"]:checked + div {
    border-color: #F59E0B !important;
    background-color: rgba(245, 158, 11, 0.1) !important;
}

/* Transition utilities */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Card reveal animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

/* Gradient text fallback */
.text-gradient {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge styling */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
