/* Custom styles to enhance the Tailwind design */

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

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animated gradient background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Crypto button hover effects */
.crypto-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.crypto-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.crypto-btn.selected {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* Modal animations */
.modal-enter {
    opacity: 0;
    transform: scale(0.9);
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-exit {
    opacity: 1;
    transform: scale(1);
}

.modal-exit-active {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Pulsing effect for important elements */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Text glow effect */
.text-glow {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* QR Code container styling */
#qrcode canvas {
    border-radius: 8px;
}

/* Loading animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 2s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Responsive text sizing */
@media (max-width: 640px) {
    .text-responsive-sm {
        font-size: 0.875rem;
    }

    .text-responsive-base {
        font-size: 1rem;
    }

    .text-responsive-lg {
        font-size: 1.125rem;
    }
}

/* FAQ accordion animations */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.open {
    max-height: 200px;
    transition: max-height 0.3s ease-in;
}

/* Input focus effects */
input:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

/* Button ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active:before {
    width: 300px;
    height: 300px;
}

/* Crypto icons color adjustments */
.fa-bitcoin { color: #f7931a; }
.fa-ethereum { color: #627eea; }
.fa-dollar-sign { color: #26a17b; }
.fa-dog { color: #c2a633; }
.fa-coins { color: #8b5cf6; }

/* Custom utility classes */
.backdrop-blur-xs {
    backdrop-filter: blur(2px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

.backdrop-blur-xl {
    backdrop-filter: blur(24px);
}

/* Mobile menu animations */
@media (max-width: 768px) {
    .mobile-menu {
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-menu.open {
        transform: translateY(0);
    }
}

/* Floating particles background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Custom border animations */
.border-animated {
    position: relative;
    background: linear-gradient(45deg, transparent, transparent);
}

.border-animated::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(45deg, #8b5cf6, #3b82f6);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Loading spinner */
.spinner {
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    border-top: 2px solid #8b5cf6;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}