/* Custom Styles for AI Tools Website */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

/* Smooth transitions */
a, button {
    transition: all 0.2s ease;
}

/* Tool card hover effect */
.tool-card:hover {
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.25);
}

/* Category card */
.category-card:hover .bg-slate-800\/80 {
    transform: translateY(-4px);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

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

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

/* Badge styles */
.badge-free {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.badge-paid {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

/* Form focus */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Rating stars */
.stars {
    color: #fbbf24;
}

/* Filter active state */
.filter-btn.active {
    background: linear-gradient(to left, #4f46e5, #7c3aed);
    color: white;
    border-color: transparent;
}

/* Blog card */
.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card img {
    transition: transform 0.4s ease;
}
