/* Custom Tailwind CSS overrides and additional utilities for Makitox */

/* Additional glassmorphism utilities */
.glass-subtle {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Glow effects */
.glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

.glow-green {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

/* Animated background gradients */
.bg-gradient-animated {
    background: linear-gradient(45deg, #0f172a, #1e293b, #334155, #475569);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(249, 115, 22, 0.9);
}

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

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

/* Text gradient utilities */
.text-gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading animations */
.loading-dots {
    display: inline-block;
}

.loading-dots:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Focus states for accessibility */
.focus-ring {
    @apply focus:outline-none focus:ring-2 focus:ring-orange-500 focus:ring-offset-2 focus:ring-offset-gray-900;
}

/* Form input styles */
.input-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.input-glass:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .mobile-glass {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
    }
    
    .mobile-text-responsive {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .glass, .glass-card {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
}

/* Utilities for better performance */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Custom spacing utilities */
.space-y-18 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 4.5rem;
}

.space-y-22 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 5.5rem;
}

/* Z-index utilities */
.z-60 {
    z-index: 60;
}

.z-70 {
    z-index: 70;
}