/**
 * Load More Button Styling
 * Matches search button colors and plugin design system
 *
 * @since 2.4.0
 */

/* Load More Button Container */
.wfn-load-more-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem 0;
}

/* Load More Button */
.wfn-load-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--wfn-color-primary, #3498db);
    color: #ffffff;
    border: none;
    border-radius: var(--wfn-border-radius, 8px);
    font-size: var(--wfn-text-size, 1rem);
    font-weight: 500;
    font-family: var(--wfn-font-body, inherit);
    cursor: pointer;
    transition: all var(--wfn-transition-speed, 0.3s) ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.wfn-load-more-button:hover {
    background: var(--wfn-color-secondary, #2980b9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wfn-load-more-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wfn-load-more-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.wfn-load-more-button.wfn-loading {
    position: relative;
    color: transparent;
}

.wfn-load-more-button.wfn-loading::after {
    content: 'Loading...';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Loading Spinner */
.wfn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wfn-spin 0.6s linear infinite;
}

@keyframes wfn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Notice */
.wfn-error-notice {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: var(--wfn-border-radius, 8px);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: var(--wfn-text-size, 0.9rem);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wfn-load-more-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .wfn-load-more-button {
        padding: 0.675rem 1.25rem;
        font-size: 0.85rem;
        min-width: 160px;
    }

    .wfn-load-more-container {
        margin: 1.5rem 0;
    }
}
