/* Custom CSS for AI Tools Hub */

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

/* Gradient backgrounds for categories */
.gradient-blue { background: linear-gradient(135deg, #3B82F6, #1E40AF); }
.gradient-green { background: linear-gradient(135deg, #10B981, #059669); }
.gradient-purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.gradient-amber { background: linear-gradient(135deg, #F59E0B, #D97706); }
.gradient-red { background: linear-gradient(135deg, #EF4444, #DC2626); }
.gradient-pink { background: linear-gradient(135deg, #EC4899, #DB2777); }
.gradient-cyan { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.gradient-lime { background: linear-gradient(135deg, #84CC16, #65A30D); }
.gradient-indigo { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.gradient-orange { background: linear-gradient(135deg, #F97316, #EA580C); }
.gradient-teal { background: linear-gradient(135deg, #14B8A6, #0D9488); }
.gradient-violet { background: linear-gradient(135deg, #A855F7, #9333EA); }
.gradient-sky { background: linear-gradient(135deg, #22D3EE, #0EA5E9); }
.gradient-rose { background: linear-gradient(135deg, #FB7185, #F43F5E); }

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

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Tool card hover effects */
.tool-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.tool-card:hover .tool-image {
    transform: scale(1.05);
}

.tool-image {
    transition: transform 0.3s ease;
}

/* Category card hover effects */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Featured badge */
.featured-badge {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Search input focus */
#searchInput:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1E40AF, #1E3A8A);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-1px);
}

/* Modal animations */
.modal-enter {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive design */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
}

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

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

/* Tags styling */
.tag {
    background: rgba(59, 130, 246, 0.1);
    color: #1E40AF;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}