/* Custom CSS for All Tools Page */

/* Modern Hero Section Background */
.hero-gradient-bg {
    background: 
        /* Top-left purple glow */ radial-gradient(ellipse 60% 40% at 15% 0%, rgba(99, 102, 241, 0.25), transparent 70%), /* Top-right pink glow */ radial-gradient(ellipse 60% 40% at 85% 0%, rgba(236, 72, 153, 0.2), transparent 70%), /* Bottom cyan accent - more visible */ radial-gradient(ellipse 100% 50% at 50% 100%, rgba(6, 182, 212, 0.15), transparent 60%),
        /* Center highlight for text contrast */ radial-gradient(ellipse 50% 30% at 50% 30%, rgba(255, 255, 255, 0.6), transparent 80%), /* Base gradient with better contrast */ linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 30%, #cbd5e1 60%, #f1f5f9 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Sophisticated texture overlay */
.hero-gradient-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Diagonal mesh pattern */ repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255, 255, 255, 0.12) 3px, rgba(255, 255, 255, 0.12) 6px), /* Cross pattern for depth */ repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(255, 255, 255, 0.06) 6px, rgba(255, 255, 255, 0.06) 12px);
    pointer-events: none;
    z-index: 1;
}

/* Dynamic light effect */
.hero-gradient-bg::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: 
        /* Main spotlight */ radial-gradient(ellipse 40% 25% at 50% 40%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 40%, transparent 80%), /* Secondary glow */ radial-gradient(ellipse 60% 35% at 30% 60%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    animation: dynamicFloat 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

/* Enhanced floating animation */
@keyframes dynamicFloat {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translate(40px, -20px) rotate(1deg) scale(1.05);
        opacity: 1;
    }
    50% {
        transform: translate(20px, 30px) rotate(-0.5deg) scale(0.95);
        opacity: 0.9;
    }
    75% {
        transform: translate(-30px, 10px) rotate(0.8deg) scale(1.02);
        opacity: 1;
    }
}

/* Compact hero content spacing */
.hero-compact {
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: 400px;
}

/* Ensure hero content appears above background gradients */
.hero-gradient-bg > .relative {
    z-index: 10;
    position: relative;
}

/* Additional content layering */
.fade-in-up {
    z-index: 15;
    position: relative;
}

/* Clean, minimal shadows for tool cards */
.tool-card {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.tool-card:hover {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
}

/* Search bar enhancement for better visibility */
.enhanced-search {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.enhanced-search:focus-within {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transform: translateY(-2px);
}

/* Stats cards with subtle enhancement */
.stats-card-enhanced {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.stats-card-enhanced:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-compact {
        padding-top: 2rem;
        padding-bottom: 2rem;
        min-height: 350px;
    }
}

/* Smooth animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
