/* Writers Page Styles */

.writer-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.writer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(214, 51, 132, 0.1);
}

.writer-name {
    transition: color 0.2s;
}

.writer-card:hover .writer-name {
    color: var(--primary-color) !important;
}

.writer-img-wrapper {
    width: 120px;
    height: 120px;
}

.writers-search-container {
    max-width: 500px;
}

.writers-search-input {
    height: 60px;
}

.page-description {
    max-width: 600px;
}

/* Pagination Styling matching Topics Page */
.pagination-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.pagination-wrapper::-webkit-scrollbar {
    height: 4px;
}

.pagination-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.pagination-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.pagination {
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

.page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 5px;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background-color: white;
    transition: all 0.2s;
}

.page-link:hover {
    background-color: rgba(214, 51, 132, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(214, 51, 132, 0.3);
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(214, 51, 132, 0.25);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        padding: 0 10px;
    }
    
    .page-link {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        margin: 0 2px;
    }
    
    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        padding: 0.375rem 0.5rem;
        width: auto;
        min-width: 36px;
        font-size: 0.85rem;
    }
    
    .pagination .page-item {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .pagination-wrapper {
        padding: 5px 0;
    }
    
    .pagination {
        gap: 3px;
        padding: 0 5px;
        justify-content: flex-start;
        min-width: max-content;
    }
    
    .page-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        margin: 0 1px;
    }
    
    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        padding: 0.25rem 0.4rem;
        min-width: 32px;
        font-size: 0.75rem;
    }
}
