/* OpenClaw Plugins Hub - Custom Styles */

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

::-webkit-scrollbar-track {
    background: #12121a;
}

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

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Plugin card hover effects */
.plugin-card {
    position: relative;
    overflow: hidden;
}

.plugin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plugin-card:hover::before {
    opacity: 1;
}

/* Gradient text */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Category button active state */
.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #1e1e2e;
    border-radius: 9999px;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: #1a1a24;
    color: #e5e7eb;
    border-color: #2a2a3e;
}

.category-btn.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Backdrop blur */
.backdrop-blur-lg {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Focus styles */
input:focus {
    outline: none;
}

input:focus-visible {
    ring: 2px;
    ring-color: #0ea5e9;
}

/* Code block */
code {
    font-family: 'JetBrains Mono', monospace;
}

/* Modal scrollbar */
#modalContent::-webkit-scrollbar {
    width: 6px;
}

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

#modalContent::-webkit-scrollbar-thumb {
    background: #2a2a3e;
    border-radius: 3px;
}

/* Hero gradient background */
.hero-gradient {
    background: 
        radial-gradient(ellipse at top, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        #0a0a0f;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #1a1a24 25%, #2a2a3e 50%, #1a1a24 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .category-btn i {
        width: 14px;
        height: 14px;
    }
}

/* Dark mode glass effect */
.glass {
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 0.5;
    filter: blur(8px);
}