/* ============================================
   Author News List — Mobile-First Responsive
   ============================================ */

/* Breadcrumb */
.author-breadcrumb {
    font-size: 0.82rem;
    padding: 0.6rem 0;
    margin-bottom: 0;
    background: transparent;
}

.author-breadcrumb .breadcrumb-item a {
    color: var(--veye-green);
    text-decoration: none;
    transition: color 0.2s;
}

.author-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.author-breadcrumb .breadcrumb-item.active {
    color: #8a96a3;
}

.author-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #c4cdd5;
}

/* ============================================
   Author Profile Card
   ============================================ */
.author-profile-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
}

.author-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, #CFF5E7 0%, #ebebeb 100%);
}

.author-profile-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem 1.75rem;
}

/* Avatar */
.author-avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(14, 30, 50, 0.15);
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar-placeholder i {
    font-size: 2.8rem;
    color: var(--veye-green);
}

/* Info */
.author-profile-info {
    width: 100%;
}

.author-profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.author-profile-bio {
    font-size: 0.88rem;
    color: #5a6a7a;
    line-height: 1.6;
    margin-bottom: 0.85rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats */
.author-profile-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.author-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #5a6a7a;
    background: #f1f5f9;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
}

.author-stat i {
    font-size: 0.85rem;
    color: var(--veye-green);
}

.author-stat-link {
    text-decoration: none;
    transition: all 0.2s;
}

.author-stat-link:hover {
    background: var(--veye-green);
    color: #fff;
}

.author-stat-link:hover i {
    color: #fff;
}

/* Social */
.author-social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.author-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #5a6a7a;
    background: #f1f5f9;
    text-decoration: none;
    transition: all 0.2s;
}

.author-social-btn:hover {
    background: var(--veye-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 176, 135, 0.3);
}

/* ============================================
   Post Cards Grid
   ============================================ */
.author-post-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.author-post-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.author-post-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.author-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.author-post-card:hover .author-post-image img {
    transform: scale(1.05);
}

.author-page .post-image-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    background: var(--veye-green);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
}

.author-post-body {
    padding: 1rem 1.15rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.author-post-title {
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.author-post-title a:hover {
    color: var(--veye-green);
}

.author-post-excerpt {
    font-size: 0.82rem;
    color: #6b7b8d;
    line-height: 1.55;
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Post Meta (Shared)
   ============================================ */
.author-page .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.76rem;
    color: #8a96a3;
}

.author-page .post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.author-page .post-meta i {
    font-size: 0.8rem;
}

/* ============================================
   Empty State
   ============================================ */
.author-page .empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.author-page .empty-state i {
    font-size: 3rem;
    color: #c4cdd5;
    margin-bottom: 1rem;
    display: block;
}

.author-page .empty-state h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.author-page .empty-state p {
    font-size: 0.88rem;
    color: #8a96a3;
    margin-bottom: 1.25rem;
}

.author-page .btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--veye-green);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    transition: background 0.2s;
}

.author-page .btn-back-home:hover {
    background: #17a079;
    color: #fff;
}

/* ============================================
   Pagination
   ============================================ */
.author-pagination {
    padding: 1rem 0 0.5rem;
}

.author-pagination .pagination {
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.author-pagination .page-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
    border-radius: 8px !important;
    padding: 0.4rem 0.75rem;
    transition: all 0.2s;
}

.author-pagination .page-link:hover {
    background: var(--veye-green);
    border-color: var(--veye-green);
    color: #fff;
}

.author-pagination .page-item.active .page-link {
    background: var(--veye-green);
    border-color: var(--veye-green);
    color: #fff;
}

.author-pagination .page-item.disabled .page-link {
    color: #c4cdd5;
    background: #f8fafb;
    border-color: #e2e8f0;
}

/* ============================================
   Sidebar
   ============================================ */
.author-sidebar {
    position: sticky;
    top: 1rem;
}

.author-sidebar .sidebar-widget {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.author-sidebar .sidebar-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.author-sidebar .sidebar-widget-title i {
    color: #f59e0b;
}

.author-sidebar .veye-seperator {
    height: 2px;
    background: var(--veye-green);
    width: 40px;
}

/* Popular Posts */
.popular-post-card {
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
}

.popular-post-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--veye-green);
    line-height: 1;
    min-width: 24px;
    opacity: 0.7;
}

.popular-post-content {
    flex: 1;
    min-width: 0;
}

.popular-post-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.35;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.popular-post-title a:hover {
    color: var(--veye-green);
}

.popular-post-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.72rem;
    color: #8a96a3;
}

.popular-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Sidebar Categories */
.author-sidebar .sidebar-categories {
    display: flex;
    flex-direction: column;
}

.author-sidebar .sidebar-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.author-sidebar .sidebar-category-link:last-child {
    border-bottom: none;
}

.author-sidebar .sidebar-category-link:hover {
    color: var(--veye-green);
    padding-left: 0.35rem;
}

.author-sidebar .sidebar-category-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.author-sidebar .category-post-count {
    font-size: 0.72rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #8a96a3;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    line-height: 1.3;
}

.author-sidebar .sidebar-category-link i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.author-sidebar .sidebar-category-link:hover i {
    transform: translateX(3px);
}

/* Sidebar Newsletter */
.author-sidebar .sidebar-newsletter {
    background: var(--primary-color);
    text-align: center;
}

.author-sidebar .sidebar-newsletter .sidebar-widget-title {
    color: #fff;
    justify-content: center;
}

.author-sidebar .newsletter-content p {
    font-size: 0.82rem;
    color: #a8b8c8;
    margin-bottom: 1rem;
}

.author-sidebar .newsletter-icon {
    font-size: 2rem;
    color: var(--veye-green);
    margin-bottom: 0.5rem;
}

.author-sidebar .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.author-sidebar .newsletter-form .form-control {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
}

.author-sidebar .newsletter-form .form-control::placeholder {
    color: #7a8a9a;
}

.author-sidebar .newsletter-form .form-control:focus {
    border-color: var(--veye-green);
    box-shadow: 0 0 0 0.15rem rgba(27, 176, 135, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.author-sidebar .btn-newsletter {
    background: var(--veye-green);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem;
    border-radius: 8px;
    border: none;
    transition: background 0.2s;
}

.author-sidebar .btn-newsletter:hover {
    background: #17a079;
    color: #fff;
}

/* ============================================
   Responsive — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
    .author-profile-card::before {
        height: 90px;
    }

    .author-profile-inner {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        padding: 2.5rem 2rem 1.75rem;
        gap: 1.5rem;
    }

    .author-avatar-wrapper {
        width: 110px;
        height: 110px;
        margin-bottom: 0;
        margin-top: 0.5rem;
    }

    .author-profile-bio {
        margin-left: 0;
        margin-right: 0;
    }

    .author-profile-stats {
        justify-content: flex-start;
    }

    .author-social-links {
        justify-content: flex-start;
    }

    .author-post-image {
        height: 190px;
    }
}

/* ============================================
   Responsive — Desktop (992px+)
   ============================================ */
@media (min-width: 992px) {
    .author-profile-card::before {
        height: 100px;
    }

    .author-profile-inner {
        padding: 3rem 2.5rem 2rem;
    }

    .author-avatar-wrapper {
        width: 120px;
        height: 120px;
    }

    .author-profile-name {
        font-size: 1.7rem;
    }

    .author-profile-bio {
        font-size: 0.92rem;
    }

    .author-post-image {
        height: 200px;
    }

    .author-sidebar .newsletter-form {
        flex-direction: row;
    }

    .author-sidebar .newsletter-form .form-control {
        flex: 1;
    }

    .author-sidebar .newsletter-form .btn-newsletter {
        white-space: nowrap;
    }
}

/* ============================================
   Responsive — Large Desktop (1200px+)
   ============================================ */
@media (min-width: 1200px) {
    .author-profile-name {
        font-size: 1.85rem;
    }
}
