/**
 * Author Page Styles — CureAdvantage
 * File: author-page.css
 * Enqueue in functions.php:
 *   wp_enqueue_style( 'ca-author', get_template_directory_uri() . '/css/author-page.css' );
 */

/* ── Layout ── */
.ca-author-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    font-family: inherit;
}

/* ── Breadcrumb ── */
.ca-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 1.5rem;
}
.ca-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}
.ca-breadcrumb a:hover { color: #185FA5; }
.ca-breadcrumb span { color: #9ca3af; }

/* ── Hero card ── */
.ca-author-hero {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.ca-author-top {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

/* ── Avatar ── */
.ca-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 500;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

/* ── Author meta ── */
.ca-author-name {
    font-size: 22px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.25;
}
.ca-credentials {
    font-size: 18px;
    font-weight: 400;
    color: #374151;
}
.ca-author-role {
    font-size: 13px;
    color: #185FA5;
    font-weight: 500;
    margin: 0 0 10px;
}
.ca-author-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ca-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 99px;
    background: #E6F1FB;
    color: #185FA5;
    font-weight: 500;
}

/* ── Bio ── */
.ca-author-bio {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
    border-top: 0.5px solid rgba(0,0,0,0.08);
    padding-top: 1.25rem;
    margin-bottom: 1.25rem;
}

/* ── Stats ── */
.ca-author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 0.5px solid rgba(0,0,0,0.08);
    padding-top: 1.25rem;
}
.ca-stat {
    background: #f9fafb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ca-stat-num {
    font-size: 20px;
    font-weight: 500;
    color: #111827;
}
.ca-stat-lbl {
    font-size: 11px;
    color: #6b7280;
}

/* ── Social ── */
.ca-author-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.25rem;
    border-top: 0.5px solid rgba(0,0,0,0.08);
    padding-top: 1.25rem;
    flex-wrap: wrap;
}
.ca-author-social > span {
    font-size: 13px;
    color: #6b7280;
    margin-right: 4px;
}
.ca-soc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 0.5px solid rgba(0,0,0,0.18);
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s;
}
.ca-soc-btn:hover { background: #f3f4f6; color: #185FA5; }

/* ── Section heading ── */
.ca-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.875rem;
}

/* ── Expertise chips ── */
.ca-expertise { margin-bottom: 1.75rem; }
.ca-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ca-chip {
    padding: 5px 13px;
    border: 0.5px solid rgba(0,0,0,0.15);
    border-radius: 99px;
    font-size: 12px;
    color: #4b5563;
}

/* ── Posts grid ── */
.ca-author-posts { margin-bottom: 2rem; }
.ca-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ca-post-card {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    transition: border-color 0.15s;
}
.ca-post-card:hover { border-color: rgba(0,0,0,0.25); }
.ca-post-link {
    display: block;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: inherit;
}
.ca-post-tag {
    font-size: 11px;
    color: #185FA5;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}
.ca-post-card h3 {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    line-height: 1.5;
    margin-bottom: 8px;
}
.ca-post-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: #6b7280;
}
.ca-dot {
    width: 3px;
    height: 3px;
    background: #9ca3af;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── View all ── */
.ca-view-all {
    margin-top: 1.25rem;
    text-align: center;
}
.ca-view-all-btn {
    display: inline-block;
    padding: 9px 22px;
    border: 0.5px solid rgba(0,0,0,0.18);
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s;
}
.ca-view-all-btn:hover { background: #f3f4f6; color: #185FA5; }

.ca-no-posts {
    font-size: 14px;
    color: #6b7280;
    padding: 1rem 0;
}

/* ── Responsive ── */
@media ( max-width: 640px ) {
    .ca-author-top { flex-direction: column; gap: 1rem; }
    .ca-author-stats { grid-template-columns: repeat(3, 1fr); }
    .ca-posts-grid { grid-template-columns: 1fr; }
}