/* Custom styles beyond Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

.gradient-text {
    background: linear-gradient(135deg, #6C63FF 0%, #4CAF50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #6C63FF 0%, #4CAF50 100%);
}

/* Dark mode support */
.dark {
    background: #1a1a2e;
    color: #e0e0e0;
}

.dark .bg-white {
    background: #16213e;
    color: #e0e0e0;
}

.dark .text-gray-500,
.dark .text-gray-600,
.dark .text-gray-700 {
    color: #a0a0b0;
}

.dark .bg-gray-100 {
    background: #1a1a2e;
}

.dark .shadow-sm,
.dark .shadow-md,
.dark .shadow-lg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark .border {
    border-color: #2a2a4a;
}

/* Responsive grid optimizations */
@media (max-width: 640px) {
    .app-card {
        transition: transform 0.2s;
    }
    
    .app-card:active {
        transform: scale(0.98);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6C63FF 0%, #4CAF50 100%);
    border-radius: 10px;
}

.dark ::-webkit-scrollbar-track {
    background: #1a1a2e;
}

/* Loading skeleton animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.dark .skeleton {
    background: linear-gradient(90deg, #2a2a4a 25%, #3a3a5a 50%, #2a2a4a 75%);
}

/* Category hover effects */
.category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-4px) scale(1.03);
}

/* Install button pulse animation */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(108, 99, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(108, 99, 255, 0.6); }
}

.install-btn {
    animation: pulse-glow 2s infinite;
}

/* Mobile-first optimizations */
@media (max-width: 480px) {
    .gradient-text {
        font-size: 1.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}