/* VisionAQ Prints - Load More V2 with Progress Slider */
/* Enhanced load more button with beautiful progress indicator */

/* Load More Container */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-lg) 0;
    gap: 32px; /* Increased from 20px to 32px for more spacing */
}

/* Load More Button - Enhanced Design */
.load-more-btn {
    position: relative;
    padding: 16px 32px;
    background: linear-gradient(135deg, #171717 0%, #262626 100%);
    color: #ffffff;
    border: none;
    border-radius: 0; /* Straight edges to match VisionAQ aesthetic */
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    overflow: hidden;
    min-width: 180px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2);
    background-size: 100% 100%;
    background-position: center;
    z-index: 2;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #262626 0%, #404040 100%);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.load-more-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* Loading State */
.load-more-btn.loading {
    pointer-events: none;
}

.load-more-text {
    opacity: 1;
    transition: opacity 0.15s ease;
}

.load-more-btn.loading .load-more-text {
    opacity: 0.7;
}

/* Button Disappear Animation */
.load-more-btn.disappearing {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    pointer-events: none;
}

/* Progress Container */
.load-more-progress {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Progress Info Row - Hidden for cleaner look */
.progress-info {
    display: none; /* Hide the text above the progress bar */
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.progress-text {
    font-size: 14px;
    color: #333;
}

.progress-percentage {
    font-size: 14px;
    color: #007aff;
    font-weight: 600;
}

/* Progress Track */
.progress-track {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 0; /* Square corners */
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Progress Bar - Black Square Design */
.progress-bar {
    height: 100%;
    background: #000000; /* Solid black */
    width: 0%;
    transition: width 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    position: relative;
    border-radius: 0; /* Square corners */
}

/* Progress Bar Shine Effect - Subtle on Black */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Loading Animation on Progress Bar - Black with Subtle Pulse */
.progress-bar.loading-animation {
    background: linear-gradient(
        90deg,
        #000000 0%,
        #333333 25%,
        #000000 50%,
        #333333 75%,
        #000000 100%
    );
    background-size: 200% 100%;
    animation: progressLoading 1.5s ease-in-out infinite;
}

@keyframes progressLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .load-more-container {
        margin-top: 2rem;
        padding: 1rem 0;
        gap: 34px; /* Increased from 16px to 24px for more spacing on mobile */
    }
    
    .load-more-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 160px;
        height: 48px;
        letter-spacing: 1px;
    }
    
    .load-more-btn:hover {
        /* Disable hover effects on mobile */
        background: linear-gradient(135deg, #171717 0%, #262626 100%);
        transform: none;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 4px 16px rgba(0, 0, 0, 0.2);
    }
    
    .load-more-progress {
        max-width: 320px;
        padding: 0 16px;
    }
    
    .progress-info {
        font-size: 13px;
    }
    
    .progress-text {
        font-size: 13px;
    }
    
    .progress-percentage {
        font-size: 13px;
    }
    
    .progress-track {
        height: 6px;
        border-radius: 0; /* Keep square on mobile */
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .load-more-btn {
        min-width: 140px;
        height: 44px;
        font-size: 13px;
        padding: 10px 20px;
    }
    
    .load-more-progress {
        max-width: 280px;
    }
    
    .progress-info {
        font-size: 12px;
    }
    
    .progress-text {
        font-size: 12px;
    }
    
    .progress-percentage {
        font-size: 12px;
    }
}

/* Large desktop screens */
@media (min-width: 1024px) {
    .load-more-container {
        margin-top: 3rem;
        padding: 2rem 0;
    }
    
    .load-more-btn {
        min-width: 200px;
        height: 60px;
        font-size: 16px;
        padding: 18px 36px;
    }
    
    .load-more-progress {
        max-width: 480px;
    }
    
    .progress-track {
        height: 10px;
        border-radius: 0; /* Keep square on desktop */
    }
}

/* Animation for new products */
.product-card.new-loaded,
.product-card-v2-mobile.new-loaded {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: productFadeIn 0.6s ease-out forwards;
}

.product-card.new-loaded:nth-child(odd),
.product-card-v2-mobile.new-loaded:nth-child(odd) {
    animation-delay: 0.1s;
}

.product-card.new-loaded:nth-child(even),
.product-card-v2-mobile.new-loaded:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Progress container fade in animation */
.load-more-progress {
    animation: progressFadeIn 0.5s ease-out;
}

@keyframes progressFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .progress-track {
        border: 2px solid #000;
    }
    
    .progress-bar {
        background: #000;
    }
    
    .load-more-btn {
        border: 2px solid #000;
    }
}