/* Fajl-Inspired Custom Styles for Minicart */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Typography enhancements */
.font-black {
    font-weight: 900;
    letter-spacing: -0.025em;
}

/* Modern button animations */
@keyframes buttonHover {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Card rotation animations */
@keyframes rotateIn {
    0% {
        transform: rotate(-10deg) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: rotate(-2deg) scale(1);
        opacity: 1;
    }
}

.rotate-card {
    animation: rotateIn 0.8s ease-out;
}

/* Fade in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* Custom focus styles for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Modern card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Border hover effects */
.border-hover {
    transition: border-color 0.3s ease;
}

.border-hover:hover {
    border-color: #44D28D;
}

/* Floating animation for elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Loading state for form submission */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #44D28D;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3BC17A;
}

/* Text selection */
::selection {
    background: #44D28D;
    color: #000000;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation link hover effects */
nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #44D28D;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Navbar scroll effects */
.navbar-scroll {
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Success message styling */
.success-message {
    background: #44D28D;
    color: black;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-weight: 600;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Error message styling */
.error-message {
    background: #EF4444;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-weight: 600;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Intersection Observer animations */
.observe {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.observe.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility classes */
.gradient-text {
    background: linear-gradient(135deg, #000000, #666666);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Accessibility and reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-accent {
        background: #ffffff !important;
    }
    
    .text-secondary {
        color: #000000 !important;
    }
}