/* Custom CSS for Stable Angel */

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

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

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

/* HTMX loading indicator */
.htmx-request {
    opacity: 0.7;
    pointer-events: none;
}

.htmx-request.htmx-added {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

/* Custom details/summary styling for FAQ */
details summary::-webkit-details-marker {
    display: none;
}

details[open] summary svg {
    transform: rotate(180deg);
}

details summary svg {
    transition: transform 0.2s ease-in-out;
}

/* Animation for gradient backgrounds */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* Button loading state */
button.loading {
    position: relative;
    pointer-events: none;
}

button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Custom transition for mobile menu */
#mobileMenu {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

#mobileMenu.hidden {
    max-height: 0;
}

/* Wallet button connected state */
.wallet-connected {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }
}
