.main-content-wrapper {
    margin-bottom: 100px;
}

/* ========== author List Grid ========== */
.author-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    /*margin-bottom: 40px;*/
    padding: 20px;
}

@media (max-width: 1200px) {
    .author-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .author-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== author Card ========== */
.author-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.author-card-link-rank {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 999px;
    background: #F1F3F5;
    color: #495057;
    width: fit-content;
    flex-direction: column;
    text-align: center;
    align-self: center;
}

.author-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

span.author-image-wrapper-title {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #0791BF;
    background-color: #E3F2FD;
    z-index: 1;
    background: #fff !important;
}

.author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.author-status-badge {
    position: absolute;
    /*    top: 12px;
    left: 12px;*/
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    background-color: #E3F2FD;
    z-index: 1;
    background: #fff !important;
}

    .author-status-badge.not-started {
        background-color: rgba(15, 168, 116, 0.10);
        color: #0FA874;
    }

    .author-status-badge.ongoing {
        background-color: rgba(7, 145, 191, 0.10);
        color: #0791BF;
    }

    .author-status-badge.ended {
        color: #CF4655;
        background-color: rgba(207, 70, 85, 0.10);
    }

.author-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.author-title {
    display: flex !important;
    flex-direction: column;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 44px;
}

.author-title a {
    color: #333;
    text-decoration: none;
}

.author-title a:hover {
    color: var(--color-primary);
}

.author-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    box-sizing: content-box;
    padding-bottom: 10px;
    height: 36px;
    /*border-bottom: 1px solid rgba(0, 0, 0, 0.10);*/
}

.author-date {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .author-date img {
        width: 14px;
        height: 14px;
    }

.author-view-link {
    display: inline-flex;
    align-items: center;
    color: #F8285A;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

    .author-view-link:hover {
        color: #D81B60;
        text-decoration: underline;
    }

    .author-view-link i,
    .author-view-link svg {
        margin-left: 6px;
        font-size: 12px;
    }

/* ========== author Header ========== */
.author-header {
    display: flex;
    justify-content: space-between;
}

.header-filter {
    display: flex;
    column-gap: 16px;
    align-items: center;
    margin: 10px 20px;
    font-size: 14px;
    font-weight: 400;
}

.header-filter-text {
    white-space: nowrap;
}

.header-select select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
}

.author-count-summary {
    margin: 0 20px;
    color: #6c757d;
    font-size: 14px;
}

/* ========== author Filter ========== */
.author-filter-section {
    font-family: "Inter", sans-serif;
    width: 100%;
}

.author-section-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.author-filter-input-wrapper {
    position: relative;
    width: 100%;
    margin-top: 6px;
}

.author-filter-input-wrapper input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background-color: #fff;
}

.author-filter-input-wrapper input:hover {
    border-color: var(--color-primary);
}

.author-filter-input-wrapper input:focus {
    border-color: var(--color-primary);
}

.author-dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #555;
    pointer-events: none;
    transition: transform .2s ease;
}

.author-filter-input-wrapper.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.author-filter-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 99;
}

.author-filter-dropdown li {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.author-filter-dropdown li:hover {
    background: #f2f2f2;
}

.author-filter-dropdown li.selected {
    background: var(--color-primary);
    color: white;
}

.author-content {
    border: 1px solid #E4E4E4;
    border-top: 2px solid #003B8E;
    border-radius: 4px;
}

.author-time {
    font-size: 14px;
    line-height: 20px;
}

.interact {
    display: flex;
    justify-content: space-between;
}

.interact-like,
.interact-views {
    display: flex;
    align-items: center;
    column-gap: 4px;
    font-size: 14px;
    line-height: 20px;
}

    .interact-like img,
    .interact-views img {
        width: 18px;
    }

/* ========== Filter Styles ========== */
.see-more img {
    transform: unset;
}

input[type=checkbox] {
    opacity: 1;
    position: relative;
}

.custom-checkbox:checked::after {
    left: 5px;
    top: 2px;
}

/* ========== Empty State ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    min-height: 500px;
    background: #fff;
    border-radius: 8px;
    margin: 20px;
}

.empty-state-icon {
    margin-bottom: 32px;
    opacity: 0.6;
    animation: fadeIn 0.5s ease-in;
}

.empty-state-icon svg {
    width: 120px;
    height: 120px;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.4;
}

.empty-state-message {
    font-size: 16px;
    color: #666;
    max-width: 480px;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 0.6;
        transform: translateY(0);
    }
}

/* ========== Skeleton Loading ========== */
.skeleton-loading-card {
    pointer-events: none;
    user-select: none;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.skeleton-loading-item {
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

    .skeleton-loading-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
        animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-loading-image {
    width: 100%;
    height: 200px;
}

.skeleton-loading-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 100px;
    height: 24px;
    z-index: 1;
}

.skeleton-loading-title {
    width: 85%;
    height: 20px;
    margin-bottom: 8px;
}

.skeleton-loading-title-line2 {
    width: 60%;
    height: 20px;
    margin-top: 4px;
}

.skeleton-loading-text {
    width: 100%;
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-loading-text-short {
    width: 75%;
    margin-bottom: 12px;
}

.skeleton-loading-date {
    width: 60%;
    height: 16px;
    margin-bottom: 12px;
}

.skeleton-loading-button {
    width: 100%;
    height: 40px;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ========== Pagination Wrapper ========== */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 16px;
}

/* ========== Page Size Selector ========== */
.page-size-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Style cho select số bản ghi */
#page-size-select {
    width: 70px !important;
    height: 40px !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

#page-size-select:hover {
    border-color: #003B8E !important;
}

#page-size-select:focus {
    border-color: #003B8E !important;
    box-shadow: 0 0 0 3px rgba(0, 59, 142, 0.15) !important;
}

.page-size-info {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

/* Pagination disabled state */
.page-arrow.disabled,
.page-number.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== Responsive ========== */
@media only screen and (max-width: 750.98px) {
    .author-header {
        flex-direction: column;
    }

    .empty-state {
        padding: 60px 20px;
        min-height: 400px;
    }

    .empty-state-icon svg {
        width: 100px;
        height: 100px;
    }

    .empty-state-title {
        font-size: 20px;
    }

    .empty-state-message {
        font-size: 14px;
    }
}
