/* Additional custom styles for Crypto Invoice Landing Page */

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Mobile menu styles */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateX(0);
    pointer-events: auto;
}

.mobile-menu .bg-black {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu.open .bg-black {
    opacity: 0.5;
}

/* Enhanced animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

/* Hover effects for interactive elements */
.interactive-card {
    transition: all 0.3s ease;
}

.interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
}

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

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

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

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Text selection */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: white;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass-effect {
        background: white !important;
        border: 1px solid #ccc !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-effect {
        background: rgba(255, 255, 255, 0.9) !important;
        color: black !important;
        border: 2px solid black !important;
    }
    
    .text-gray-300 {
        color: black !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-float,
    .animate-glow {
        animation: none !important;
    }
}

/* Dark mode support (if user prefers dark mode) */
@media (prefers-color-scheme: dark) {
    /* Already dark theme, no changes needed */
}

/* Light mode support (if user prefers light mode) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme as it's the brand identity */
}

/* Custom utility classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

.shadow-crypto {
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.shadow-crypto-lg {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
}

/* Custom grid for cryptocurrency cards */
.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .crypto-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (min-width: 1024px) {
    .crypto-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Language switcher styles */
#language-switcher {
    position: relative;
}

#language-menu {
    transition: all 0.2s ease-in-out;
    transform-origin: top right;
}

#language-menu.invisible {
    transform: scale(0.95) translateY(-10px);
    pointer-events: none;
}

#language-menu:not(.invisible) {
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

#language-arrow {
    transition: transform 0.2s ease-in-out;
}

/* Mobile optimization for language switcher */
@media (max-width: 768px) {
    #language-menu {
        right: -1rem;
        min-width: 140px;
    }
    
    #language-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    #language-menu {
        transition: none;
    }
    
    #language-menu.invisible {
        transform: none;
        opacity: 0;
    }
}

/* Mobile menu responsive adjustments */
@media (max-width: 640px) {
    #mobile-menu .absolute.right-0 {
        width: 100%;
        right: 0;
    }
    
    #mobile-menu .p-6 {
        padding: 1rem;
    }
    
    #mobile-menu .space-y-6 > * + * {
        margin-top: 1.5rem;
    }
}

/* Ensure mobile menu is above other elements */
#mobile-menu {
    z-index: 9999;
}

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

/* FAQ Section Styles */
.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.1);
}

.faq-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.faq-toggle:hover {
    color: #667eea;
}

.faq-toggle svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-toggle svg.rotate-180 {
    transform: rotate(180deg);
}

.faq-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-content.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.faq-content:not(.hidden) {
    max-height: 200px;
    opacity: 1;
}

/* FAQ responsive adjustments */
@media (max-width: 768px) {
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-toggle h3 {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    .faq-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* FAQ animation for smooth transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-content:not(.hidden) {
    animation: fadeInUp 0.3s ease-out;
} 