/* CalcHub Pro Frontend Styles */

/* Reset for WordPress */
.calchub-wrapper,
.calchub-wrapper * {
    box-sizing: border-box;
}

.calchub-wrapper {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
.calchub-wrapper ::-webkit-scrollbar {
    width: 8px;
}

.calchub-wrapper ::-webkit-scrollbar-track {
    background: #0f172a;
}

.calchub-wrapper ::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.calchub-wrapper ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Glassmorphism Card Style */
.calchub-glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calchub-glass-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(99, 102, 241, 0.2);
}

/* Background Gradient Blobs */
.calchub-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    border-radius: 50%;
}

/* Search Input Glow */
.calchub-search-container:focus-within {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5) !important;
}

/* Line clamp for descriptions */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out 3s infinite;
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.6;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fixed wrapper background */
.calchub-wrapper {
    position: relative;
    overflow-x: hidden;
}

/* Filter buttons active state */
.calchub-filter-btn.active {
    background-color: #4f46e5 !important;
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calchub-wrapper h1 {
        font-size: 2.5rem !important;
    }

    .calchub-wrapper .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Modal styling */
#calchubAIModal {
    backdrop-filter: blur(4px);
}

#calchubAIModal.hidden {
    display: none !important;
}

/* Placeholder styling */
.calchub-wrapper input::placeholder,
.calchub-wrapper textarea::placeholder {
    color: #64748b;
}

/* Button hover effects */
.calchub-wrapper button {
    cursor: pointer;
    transition: all 0.2s ease;
}

.calchub-wrapper button:hover {
    transform: translateY(-1px);
}

/* Category card hover */
.calchub-wrapper a.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* AI Card special styling */
.calchub-calc-item[data-category="ai"] {
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Ensure proper z-index layering */
.calchub-wrapper main {
    position: relative;
    z-index: 10;
}

.calchub-wrapper .fixed {
    z-index: 0;
}

/* Hide utility class */
.calchub-wrapper .hidden {
    display: none !important;
}

/* Card transition smooth */
.calchub-calc-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.calchub-calc-item.hiding {
    opacity: 0;
    transform: scale(0.95);
}