/* Import base styles from kategori.css */
@import url('kategori.css');

/* Author Profile Header */
.author-profile-header {
    margin-bottom: 16px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background: var(--bg-red-subtler-default);
}

.author-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-default);
}

.author-post-count {
    font-size: 14px;
    color: var(--text-subtle);
}

/* Filter Section - Below Author Header, Aligned Right */
.author-filter-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.author-filter-section .category-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topics .author-name {
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1040px) {
    .author-info {
        padding: 18px;
    }

    .author-avatar {
        width: 72px;
        height: 72px;
    }

    .author-name {
        font-size: 15px;
    }

    .author-post-count {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    /* Show back button in mobile */
    .mobile-back-button {
        display: block;
        order: -2;
        margin-bottom: 16px;
    }

    .mobile-back-button .hero-nav {
        border-bottom: none;
        padding-bottom: 0;
    }

    .author-profile-header {
        order: -1;
    }

    .author-info {
        padding: 16px;
    }

    .author-avatar {
        width: 60px;
        height: 60px;
    }

    .author-name {
        font-size: 14px;
    }

    .author-post-count {
        font-size: 12px;
    }

    .author-filter-section {
        justify-content: flex-end;
        order: 0;
    }
}

@media (max-width: 480px) {
    .kategori-articles-grid{
        grid-template-columns: 1fr;
        gap: 16px;
    }
     .author-filter-section {
        justify-content: space-between;
    }
    .author-filter-section .category-filter{
         width: 100%;
    }
}

@media (max-width: 375px) {
    .author-info {
        flex-direction: row;
        text-align: left;
        padding: 12px;
    }

    .author-avatar {
        width: 56px;
        height: 56px;
    }

    .author-name {
        font-size: 13px;
    }

    .author-post-count {
        font-size: 11px;
    }

    .author-filter-section {
        justify-content: space-between;
    }

    .author-filter-section .category-filter {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }
}
