/* ===== AUTHOR HERO ===== */
.author-hero {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    padding: 100px 0 150px;
    position: relative;
    overflow: hidden;
}

.author-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.author-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.author-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.author-profile-card {
    display: flex;
    gap: 40px;
    align-items: center;
}

.author-avatar-wrapper {
    flex-shrink: 0;
    position: relative;
}

.author-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid #2DD4BF;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.author-verified-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2DD4BF 0%, #14b8a6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(45, 212, 191, 0.5);
    border: 3px solid #1f2937;
}

.author-info {
    flex: 1;
}

.author-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-badge.editor {
    background: linear-gradient(135deg, #2DD4BF 0%, #14b8a6 100%);
    color: #fff;
}

.author-badge.specialty {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.author-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.author-specialty-title {
    font-size: 1.2rem;
    color: #2DD4BF;
    margin-bottom: 20px;
}

.author-bio {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 700px;
}

.author-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.author-stat {
    text-align: center;
}

.author-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #2DD4BF;
}

.author-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ===== AUTHOR MAIN CONTENT ===== */
.author-main {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.author-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.author-content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* ===== SIDEBAR ===== */
.author-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.sidebar-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card-title i {
    color: #2DD4BF;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expertise-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    background: #f0fdfa;
    transform: translateX(5px);
}

.expertise-name {
    font-weight: 500;
    color: #374151;
}

.expertise-count {
    background: #2DD4BF;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: #f0fdfa;
    color: #2DD4BF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-link {
    color: #2DD4BF;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

/* ===== ARTICLES SECTION ===== */
.author-articles {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.articles-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.articles-title i {
    color: #2DD4BF;
}

.articles-count {
    color: #6b7280;
    font-size: 0.95rem;
}

/* ===== ARTICLE CARDS ===== */
.author-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.author-article-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.author-article-card:hover {
    background: #f0fdfa;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.article-card-image {
    flex-shrink: 0;
    width: 120px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-article-card:hover .article-card-image img {
    transform: scale(1.1);
}

.article-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2DD4BF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.article-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #2DD4BF;
}

.article-card-meta {
    margin-top: auto;
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    gap: 15px;
}

.article-card-meta i {
    color: #2DD4BF;
    margin-right: 5px;
}

/* ===== PAGINATION ===== */
.author-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.author-pagination a,
.author-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #f8fafc;
    color: #374151;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.author-pagination a:hover {
    background: #2DD4BF;
    color: #fff;
}

.author-pagination .current {
    background: #2DD4BF;
    color: #fff;
}

/* ===== NO POSTS ===== */
.no-articles {
    text-align: center;
    padding: 60px 20px;
}

.no-articles-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-articles h3 {
    font-size: 1.3rem;
    color: #374151;
    margin-bottom: 10px;
}

.no-articles p {
    color: #6b7280;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .author-content-grid {
        grid-template-columns: 1fr;
    }
    
    .author-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .author-profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .author-badges {
        justify-content: center;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .author-bio {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .author-hero {
        padding: 80px 0 120px;
    }
    
    .author-name {
        font-size: 1.8rem;
    }
    
    .author-avatar {
        width: 140px;
        height: 140px;
    }
    
    .author-sidebar {
        grid-template-columns: 1fr;
    }
    
    .author-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .author-article-card {
        flex-direction: column;
    }
    
    .article-card-image {
        width: 100%;
        height: 180px;
    }
    
    .author-stats {
        gap: 25px;
    }
    
    .author-articles {
        padding: 25px;
    }
}
