/* Author Page Stylesheet - Verses Theme */

.author-page-wrapper {
    background: radial-gradient(circle at top left, rgba(141, 180, 117, 0.06), transparent 35%),
                linear-gradient(180deg, #fdfbf7 0%, #fffdf9 50%, #f7f1e6 100%);
    padding: 30px 0 80px;
    font-family: 'Noto Serif Bengali', serif;
}

/* Breadcrumbs */
.author-breadcrumbs-wrap {
    margin-bottom: 25px;
}

.author-breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.author-breadcrumbs a {
    color: var(--text-muted, #8c827a);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-breadcrumbs a:hover {
    color: var(--text-accent, #8b4a4a);
}

.author-breadcrumbs i.separator {
    font-size: 10px;
    color: var(--text-muted, #ccc);
}

.author-breadcrumbs li.active {
    color: var(--text-accent, #8b4a4a);
}

/* AUTHOR HEADER CARD */
.author-header-card {
    background: #ffffff;
    border: 1px solid #ebdcb9;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(61, 41, 27, 0.04);
    display: grid;
    grid-template-columns: 0.8fr 1.4fr 1.2fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.author-header-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-avatar-frame {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 10px;
    border: 2px dashed #ebdcb9;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(61, 41, 27, 0.06);
}

.author-avatar-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.author-header-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.author-role-badge {
    font-size: 13px;
    font-weight: 700;
    color: #8b4a4a;
    background: rgba(139, 74, 74, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-name-title {
    font-size: 32px;
    color: #2a241f;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.author-tagline {
    font-size: 16px;
    color: #706761;
    margin: 0;
    font-weight: 500;
}

.author-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #8c827a;
}

.author-meta-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-meta-list i {
    color: #8b4a4a;
}

.author-socials-row {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.author-socials-row a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(139, 74, 74, 0.15);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b4a4a;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.02);
}

.author-socials-row a:hover {
    background: #8b4a4a;
    color: #ffffff;
    border-color: #8b4a4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 74, 74, 0.15);
}

.author-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 1px solid rgba(139, 74, 74, 0.1);
    padding-left: 40px;
    position: relative;
    height: 100%;
}

.author-quote-box {
    position: relative;
    z-index: 2;
    text-align: left;
}

.quote-icon-bg {
    font-size: 32px;
    color: rgba(139, 74, 74, 0.1);
    margin-bottom: 10px;
    display: block;
}

.author-quote-text {
    font-size: 17px;
    font-style: italic;
    color: #5d564f;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

.author-header-decor {
    position: absolute;
    right: -20px;
    bottom: -20px;
    opacity: 0.2;
    width: 140px;
    pointer-events: none;
    z-index: 1;
}

.quill-decor-img {
    width: 100%;
    height: auto;
    transform: rotate(15deg);
}

/* STATS COUNTER GRID */
.author-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid rgba(111, 72, 49, 0.06);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 74, 74, 0.06);
    border-color: rgba(139, 74, 74, 0.12);
}

.stat-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(139, 74, 74, 0.06);
    color: #8b4a4a;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-label {
    font-size: 14px;
    color: #8c827a;
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-count {
    font-size: 26px;
    font-weight: 700;
    color: #2a241f;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stat-unit {
    font-size: 14px;
    font-weight: 600;
    color: #8c827a;
}

/* MAIN LAYOUT WRAPPER */
.author-main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* TABS BAR */
.author-tabs-bar {
    background: #ffffff;
    border: 1px solid rgba(111, 72, 49, 0.06);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.author-tabs-bar::-webkit-scrollbar {
    height: 4px;
}

.author-tabs-bar::-webkit-scrollbar-thumb {
    background: rgba(139, 74, 74, 0.2);
    border-radius: 10px;
}

.tab-btn {
    border: none;
    background: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #706761;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn:hover {
    background: rgba(139, 74, 74, 0.04);
    color: #8b4a4a;
}

.tab-btn.active {
    background: #8b4a4a;
    color: #ffffff;
}

/* TAB CONTENT PANELS */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CARDS COMMON */
.author-section-card {
    background: #ffffff;
    border: 1px solid rgba(111, 72, 49, 0.06);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    text-align: left;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #2a241f;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #8b4a4a;
    font-size: 18px;
}

/* AUTHOR BIO CONTENT */
.author-bio-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #5d564f;
    margin: 0 0 20px 0;
}

.read-more-btn, .view-all-btn {
    border: 1px solid rgba(139, 74, 74, 0.25);
    background: #ffffff;
    color: #8b4a4a;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-btn:hover, .view-all-btn:hover {
    background: #8b4a4a;
    color: #ffffff;
    border-color: #8b4a4a;
    box-shadow: 0 4px 10px rgba(139, 74, 74, 0.15);
}

.view-all-btn {
    margin-top: 15px;
}

/* RECENT WRITINGS LIST */
.recent-writings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.writing-list-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 74, 74, 0.05);
}

.writing-list-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.writing-thumb {
    width: 140px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
}

.writing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.writing-list-item:hover .writing-thumb img {
    transform: scale(1.05);
}

.writing-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.writing-title {
    font-size: 18px;
    font-weight: 700;
    color: #2a241f;
    margin: 0 0 6px 0;
}

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

.writing-title a:hover {
    color: #8b4a4a;
}

.writing-excerpt {
    font-size: 14px;
    color: #6f6660;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.writing-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #8c827a;
}

.writing-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.writing-meta i {
    color: #8b4a4a;
}

.no-posts-text {
    font-size: 15px;
    color: #8c827a;
    text-align: center;
    padding: 30px 0;
    margin: 0;
}

/* BOOKS GRID Mockup */
.author-books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.book-mockup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.book-cover {
    width: 120px;
    height: 180px;
    background: linear-gradient(135deg, #8b4a4a, #5c2f2f);
    border-radius: 4px 12px 12px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    color: #ffffff;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15);
    margin-bottom: 12px;
    position: relative;
}

.book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.book-cover i {
    font-size: 32px;
    margin-bottom: 15px;
}

.book-cover span {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.book-cover.type-2 {
    background: linear-gradient(135deg, #4a6a8b, #2f455c);
}

.book-title {
    font-size: 16px;
    font-weight: 700;
    color: #2a241f;
    margin: 0 0 4px 0;
}

.book-year {
    font-size: 13px;
    color: #8c827a;
    margin: 0;
}

/* COMMENTS LIST */
.comments-full-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item-box {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(139, 74, 74, 0.05);
}

.comment-item-box:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

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

.comment-details {
    text-align: left;
}

.comment-writer {
    font-size: 16px;
    font-weight: 700;
    color: #2a241f;
    margin: 0 0 2px 0;
}

.comment-date {
    font-size: 12px;
    color: #8c827a;
    display: block;
    margin-bottom: 8px;
}

.comment-text {
    font-size: 15px;
    color: #5d564f;
    line-height: 1.6;
    margin: 0;
}

/* SIDEBAR COLUMN */
.author-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid rgba(111, 72, 49, 0.06);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    text-align: left;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #2a241f;
    margin: 0 0 18px 0;
    border-bottom: 1px solid rgba(139, 74, 74, 0.06);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title i {
    color: #8b4a4a;
    font-size: 16px;
}

/* TAG CLOUD / TOPICS */
.tag-cloud-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    background: #fdfbf7;
    border: 1px solid rgba(139, 74, 74, 0.12);
    border-radius: 12px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #8b4a4a;
    cursor: default;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background: #8b4a4a;
    color: #ffffff;
    border-color: #8b4a4a;
    transform: translateY(-1px);
}

/* POPULAR POSTS LIST */
.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.post-num {
    width: 24px;
    height: 24px;
    background: rgba(139, 74, 74, 0.06);
    color: #8b4a4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.post-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.post-info a {
    font-size: 15px;
    font-weight: 700;
    color: #2a241f;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
    margin-bottom: 2px;
}

.post-info a:hover {
    color: #8b4a4a;
}

.post-views {
    font-size: 12px;
    color: #8c827a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-views i {
    color: #8b4a4a;
}

/* SIDEBAR READERS COMMENTS */
.sidebar-comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-comment-item {
    border-bottom: 1px solid rgba(139, 74, 74, 0.05);
    padding-bottom: 15px;
}

.sidebar-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-comment-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.commenter-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.commenter-name {
    font-size: 14px;
    font-weight: 700;
    color: #2a241f;
    margin: 0;
}

.commenter-date {
    font-size: 11px;
    color: #8c827a;
    display: block;
}

.comment-excerpt {
    font-size: 13px;
    color: #5d564f;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.view-all-comments-btn {
    width: 100%;
    margin-top: 15px;
    justify-content: center;
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
    .author-header-card {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 30px;
    }
    
    .author-header-center {
        align-items: center;
        text-align: center;
    }
    
    .author-header-right {
        border-left: none;
        border-top: 1px solid rgba(139, 74, 74, 0.1);
        padding-left: 0;
        padding-top: 30px;
        align-items: center;
        text-align: center;
    }

    .author-quote-box {
        text-align: center;
    }
    
    .quote-icon-bg {
        margin: 0 auto 10px;
    }
    
    .author-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .author-main-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .author-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .author-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .writing-list-item {
        grid-template-columns: 1fr;
    }
    
    .writing-thumb {
        width: 100%;
        height: 160px;
    }
}
