/* A-Z Filter Styles */
.authorList-filter {
    margin: 40px auto 30px;
    padding: 0 20px;
}

.authorList-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.authorList-filter-btn {
    min-width: 35px;
    height: 40px;
    padding: 4px 12px;
    border: 2px solid transparent;
    background-color: transparent;
    color: rgba(19, 135, 135, 1);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.authorList-filter-btn:hover {
    border-color: rgba(19, 135, 135, 1);
}

.authorList-filter-btn.active {
    background-color: rgba(19, 135, 135, 1);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(19, 135, 135, 1);
}

.authorList-filter-btn.active:hover {
    background-color: rgba(34, 59, 59, 1);
    border-color: rgba(34, 59, 59, 1);
}

.authorList-filter-btn.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
    position: relative;
}

.authorList-filter-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -14px 0 0 -16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.authorList-filter-reset {
    min-width: 60px;
    margin-right: 12px;
}

@media (max-width: 768px) {
    .authorList-filter-wrapper {
        gap: 6px;
    }

    .authorList-filter-btn {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
        padding: 6px 10px;
    }

    .authorList-filter-reset {
        min-width: 50px;
        margin-right: 8px;
    }
}

.author-detail-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.author-detail-error {
    text-align: center;
    padding: 40px 20px;
    color: #d32f2f;
}

/* Loading animation for author cards */
.authorList-item.loading {
    pointer-events: none;
    opacity: 0.7;
}

.authorList-item.loading .authorList-imageWrapper {
    position: relative;
}

.authorList-item.loading .authorList-imageWrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 35%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.authorList-item.loading .authorList-imageWrapper,
.authorList-item.loading .authorList-authorWrapper {
    opacity: 0.5;
}

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

/* Disable all scroll animations */
* {
    scroll-behavior: auto !important;
}

html {
    scroll-behavior: auto !important;
}

body {
    scroll-behavior: auto !important;
}

/* Load More Button Loading State */
.btn-custom.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-custom.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
