/* Custom scrollbar hide */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Dice animation for search */
.dice-container {
    perspective: 1000px;
}

.dice {
    width: 20px;
    height: 20px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 4s infinite linear;
}

@keyframes rotate {
    0% { transform: rotateX(-25deg) rotateY(45deg) rotateZ(0deg); }
    100% { transform: rotateX(-25deg) rotateY(405deg) rotateZ(0deg); }
}

.face {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(156, 163, 175, 0.2);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 2px;
}

.face.front { transform: translateZ(10px); }
.face.back { transform: translateZ(-10px) rotateY(180deg); }
.face.right { transform: translateX(10px) rotateY(90deg); }
.face.left { transform: translateX(-10px) rotateY(-90deg); }
.face.up { transform: translateY(-10px) rotateX(90deg); }
.face.bottom { transform: translateY(10px) rotateX(-90deg); }

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

.space-card:hover {
    transform: translateY(-2px);
}

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

/* Category active state */
.category-btn.active {
    background-color: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #4f46e5;
}

.dark .category-btn.active {
    background-color: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #818cf8;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.7);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Hardware badge animation */
.hardware-badge {
    position: relative;
    overflow: hidden;
}

.hardware-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}