/* Load More Component Styles */

.load-more-container {
    padding: 1rem;
}

/* Load More Button */
.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1b74e4;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.btn-load-more:hover {
    background: #1b74e4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-load-more:active {
    transform: translateY(0);
}

/* Load More Button Text */
.load-more-text {
    font-weight: 600;
}

.load-more-count {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
}

/* Load More Icon */
.load-more-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn-load-more:hover .load-more-icon {
    transform: translateY(2px);
}

/* Loading State */
.load-more-loading {
    padding: 12px 24px;
}

.load-more-loading .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Results Info */
.load-more-info {
    font-size: 13px;
}

.load-more-info .text-muted {
    color: #6c757d !important;
}

/* Error State */
.load-more-error {
    animation: slideInUp 0.3s ease;
}

/* Alternative Button Styles */
.btn-load-more.btn-load-more-outline {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-load-more.btn-load-more-outline:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-load-more.btn-load-more-minimal {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-load-more.btn-load-more-minimal:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .load-more-container {
        margin: 1.5rem 0;
        padding: 0.5rem;
    }
    
    .btn-load-more {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 180px;
    }
    
    .load-more-count {
        font-size: 11px;
    }
    
    .load-more-info {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .btn-load-more {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 160px;
        flex-direction: column;
        gap: 4px;
    }
    
    .load-more-text,
    .load-more-count {
        font-size: 11px;
    }
    
    .load-more-icon {
        width: 14px;
        height: 14px;
    }
}

/* Animation for new content */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* New items animation */
.product-item.load-more-new,
.vendor-item.load-more-new {
    animation: fadeInScale 0.4s ease forwards;
}

/* Infinite scroll indicator */
.infinite-scroll-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
    display: none;
}

.infinite-scroll-indicator.active {
    display: block;
    animation: slideInUp 0.3s ease;
}

/* Load more for specific sections */
.load-more-container[data-section="all-products"] .btn-load-more {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.load-more-container[data-section="all-products"] .btn-load-more:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.load-more-container[data-section="all-services"] .btn-load-more {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.load-more-container[data-section="all-services"] .btn-load-more:hover {
    background: linear-gradient(135deg, #117a8b 0%, #0c5460 100%);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.load-more-container[data-section="featured-products"] .btn-load-more {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.load-more-container[data-section="featured-products"] .btn-load-more:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .load-more-info .text-muted {
        color: #adb5bd !important;
    }
    
    .btn-load-more.btn-load-more-minimal {
        background: #343a40;
        color: #f8f9fa;
        border-color: #495057;
    }
    
    .btn-load-more.btn-load-more-minimal:hover {
        background: #495057;
        border-color: #6c757d;
    }
}