/* Kuryes.com - Custom Styles */
/* Glassmorphism and additional customizations */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF3131;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e02e2e;
}

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-dark {
    background: rgba(28, 28, 28, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Custom button styles */
.btn-primary {
    @apply bg-primary text-white px-6 py-3 rounded-lg font-semibold hover:bg-red-600 transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl;
}

.btn-secondary {
    @apply border-2 border-accent text-accent px-6 py-3 rounded-lg font-semibold hover:bg-accent hover:text-white transition-all duration-300 transform hover:scale-105;
}

.btn-ghost {
    @apply text-text hover:text-primary px-6 py-3 rounded-lg font-semibold transition-all duration-300;
}

/* Card styles */
.card {
    @apply bg-white rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1;
}

.card-glass {
    @apply bg-white/80 backdrop-blur-md rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1 border border-white/20;
}

/* Input styles */
.input-primary {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent transition-all duration-300;
}

.input-primary:focus {
    @apply shadow-lg;
}

/* Range slider styles */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #FF3131;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-track {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    background: #FF3131;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Loading states */
.loading {
    @apply opacity-50 pointer-events-none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #FF3131;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error states */
.success {
    @apply bg-green-50 border border-green-200 text-green-700;
}

.error {
    @apply bg-red-50 border border-red-200 text-red-700;
}

.warning {
    @apply bg-yellow-50 border border-yellow-200 text-yellow-700;
}

.info {
    @apply bg-blue-50 border border-blue-200 text-blue-700;
}

/* Custom gradients */
.gradient-primary {
    background: linear-gradient(135deg, #FF3131 0%, #FF7A00 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #00C8FF 0%, #0099CC 100%);
}

.gradient-bg {
    background: linear-gradient(135deg, #F8FBFD 0%, #E8F4FD 100%);
}

/* Text effects */
.text-glow {
    text-shadow: 0 0 10px rgba(255, 49, 49, 0.5);
}

.text-glow-accent {
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

/* Hover effects */
.hover-lift {
    @apply transition-transform duration-300 hover:-translate-y-2;
}

.hover-glow {
    @apply transition-all duration-300 hover:shadow-lg hover:shadow-primary/25;
}

.hover-scale {
    @apply transition-transform duration-300 hover:scale-105;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .mobile-padding {
        @apply px-4;
    }
    
    .mobile-text {
        @apply text-sm;
    }
    
    .mobile-hidden {
        @apply hidden;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-after: always;
    }
}

/* Accessibility improvements */
.focus-visible {
    @apply focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom utilities */
.text-balance {
    text-wrap: balance;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        @apply bg-gray-900 text-white;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .high-contrast {
        @apply border-2 border-black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-fadeInUp,
    .animate-fadeIn,
    .animate-slideInRight,
    .animate-pulse {
        animation: none;
    }
    
    .hover-lift,
    .hover-scale {
        transition: none;
    }
}
