/* HytaleHome Custom Styles */
/* These styles complement Tailwind CSS for custom effects */

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

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2d7dd2;
}

/* Button glow effect */
.btn-glow {
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #4a9eff, #7c3aed, #4a9eff);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(10px);
}

.btn-glow:hover::before {
    opacity: 0.5;
}

/* Card hover effects */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.1);
}

/* Gradient text animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(90deg, #4a9eff, #7c3aed, #d4a843, #4a9eff);
    background-size: 300% 300%;
    animation: gradient-shift 8s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating animation for hero elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation for CTAs */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(74, 158, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(74, 158, 255, 0.4);
    }
}

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

/* Background pattern (subtle grid) */
.bg-grid {
    background-image:
        linear-gradient(rgba(30, 58, 95, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 95, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Noise texture overlay */
.noise-overlay {
    position: relative;
}

.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Feature cards hover */
.feature-card {
    transition: background-color 0.3s ease;
}

.feature-card:hover {
    background-color: rgba(15, 33, 64, 0.5);
}

/* FAQ accordion styles */
.faq-item {
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #4a9eff;
}

/* Link underline animation */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a9eff, #7c3aed);
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #0f2140 25%, #162d50 50%, #0f2140 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Selection color */
::selection {
    background: rgba(74, 158, 255, 0.3);
    color: #ffffff;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    nav, footer, .no-print {
        display: none;
    }
}
