/* Shared CSS for BuilderVerse Hub */

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0ea5e9, #d946ef);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0284c7, #c026d3);
}

/* Selection Color */
::selection {
    background-color: rgba(14, 165, 233, 0.2);
    color: #0369a1;
}

/* Grid Background Pattern */
.bg-grid-slate-100 {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='%23e2e8f0'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e");
}

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

/* Focus Styles */
:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(90deg, #0ea5e9, #d946ef, #0ea5e9);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s linear infinite;
}

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

/* Responsive Typography */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }
}

/* Loading Dots */
.loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.loading-dots span {
    animation: loading-dots 1.4s infinite ease-in-out both;
    background-color: #0ea5e9;
    border-radius: 50%;
    display: inline-block;
    height: 8px;
    margin: 0 2px;
    width: 8px;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-dots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Custom Borders */
.border-gradient {
    border: double 3px transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(90deg, #0ea5e9, #d946ef);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}