/* Custom CSS for LifeVed Website */

/* Font Families */
.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.course-card {
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.article-card {
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
}

.tool-card {
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    border-top-color: #8b5cf6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Custom Focus States */
.focus-visible:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Membership Card Glow Effect */
.membership-card {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.membership-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8b5cf6, #6366f1, #8b5cf6);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.membership-card:hover::before {
    opacity: 1;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 4rem 0;
}

/* Testimonial Cards */
.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #8b5cf6;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

/* Progress Indicators */
.progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.mobile-menu-exit {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
/* 
Cart Sidebar Styling */
#cart-sidebar {
    box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.1);
}

#cart-sidebar .cart-item img {
    max-width: 48px;
    max-height: 48px;
    object-fit: cover;
}

/* Ensure cart images don't overflow */
#cart-items img {
    max-width: 48px !important;
    max-height: 48px !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: cover !important;
}

/* Cart item layout improvements */
#cart-items .flex {
    align-items: flex-start !important;
}

/* Cart scrollbar styling */
#cart-items::-webkit-scrollbar {
    width: 6px;
}

#cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#cart-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#cart-items::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Cart overlay */
#cart-overlay {
    backdrop-filter: blur(2px);
}

/* Cart button hover effects */
.cart-quantity-btn {
    transition: all 0.2s ease;
}

.cart-quantity-btn:hover {
    transform: scale(1.1);
}

/* Product Page Improvements */
/* Breadcrumb responsive styling */
.breadcrumb-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.breadcrumb-container::-webkit-scrollbar {
    display: none;
}

/* Out of stock overlay styling */
#out-of-stock-overlay {
    backdrop-filter: blur(2px);
    border-radius: 0.5rem;
}

#out-of-stock-overlay .bg-red-500 {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Mobile breadcrumb improvements */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding-bottom: 0.5rem;
    }
    
    .breadcrumb-container .flex {
        min-width: max-content;
        padding-right: 1rem;
    }
    
    /* Smaller out of stock overlay on mobile */
    #out-of-stock-overlay .text-center {
        padding: 1rem;
    }
    
    #out-of-stock-overlay .bg-red-500 {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    #out-of-stock-overlay p {
        font-size: 0.875rem;
    }
}

/* Search dropdown improvements */
#search-dropdown {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#mobile-search-dropdown {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Navigation improvements */
@media (max-width: 768px) {
    #mobile-menu {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    /* Ensure mobile menu button is always clickable */
    #mobile-menu-btn {
        z-index: 60;
        position: relative;
    }
    
    /* Mobile search improvements */
    #mobile-search-toggle {
        z-index: 60;
        position: relative;
    }
}