/* =========================================================
   Custom Author Page — Public Styles
   Font: Inter | Design: Clean, Professional, Minimal
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ---- Scoped to our plugin wrapper ---- */
.cap-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

.cap-page * {
    box-sizing: border-box;
}

/* =========================================================
   HERO
   ========================================================= */
.cap-hero {
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
    padding: 64px 24px;
}

.cap-hero-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 56px;
}

/* ---- LEFT ---- */
.cap-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cap-avatar-wrap {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
    flex-shrink: 0;
}

.cap-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cap-avatar-fallback {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* ---- Social Icons ---- */
.cap-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cap-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: opacity 0.15s ease, transform 0.15s ease;
    color: #fff;
    text-decoration: none;
}

.cap-social-btn svg {
    width: 16px;
    height: 16px;
}

.cap-social-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.cap-social-btn--fb { background: #1877F2; }
.cap-social-btn--li { background: #0A66C2; }
.cap-social-btn--tw { background: #000000; }
.cap-social-btn--em { background: #444444; }

/* ---- RIGHT ---- */
.cap-right {
    flex: 1;
    padding-top: 6px;
}

.cap-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 10px;
}

.cap-name {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 600;
    color: #111;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.cap-job-title {
    font-size: 15px;
    font-weight: 400;
    color: #555;
    margin: 0 0 22px;
}

.cap-description {
    font-size: 14.5px;
    line-height: 1.8;
    color: #444;
    max-width: 600px;
    margin-bottom: 24px;
}

.cap-description p {
    margin: 0 0 14px;
}

.cap-description p:last-child {
    margin-bottom: 0;
}

.cap-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ebebeb;
}

.cap-post-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.cap-post-count svg {
    width: 15px;
    height: 15px;
    color: #999;
}

/* =========================================================
   POSTS SECTION
   ========================================================= */
.cap-posts-section {
    background: #f8f8f7;
    padding: 60px 24px 80px;
}

.cap-posts-inner {
    max-width: 1060px;
    margin: 0 auto;
}

.cap-posts-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 32px;
    letter-spacing: -0.01em;
}

/* ---- Grid ---- */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.cap-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.cap-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.cap-card-thumb {
    display: block;
    overflow: hidden;
    height: 190px;
}

.cap-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.cap-card:hover .cap-card-thumb img {
    transform: scale(1.03);
}

.cap-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.cap-card-date {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #999;
}

.cap-card-title {
    font-size: 15.5px;
    font-weight: 600;
    margin: 0;
    line-height: 1.45;
}

.cap-card-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.15s;
}

.cap-card-title a:hover {
    color: #333;
}

.cap-card-excerpt {
    font-size: 13.5px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.cap-card-link {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    margin-top: 6px;
    transition: color 0.15s;
}

.cap-card-link:hover {
    color: #111;
}

/* ---- Pagination ---- */
.cap-pagination {
    margin-top: 48px;
    text-align: center;
}

.cap-pagination .nav-links {
    display: inline-flex;
    gap: 6px;
}

.cap-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #444;
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
}

.cap-pagination .page-numbers.current,
.cap-pagination .page-numbers:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.cap-no-posts {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 60px 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 720px) {
    .cap-hero {
        padding: 40px 20px;
    }

    .cap-hero-inner {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        text-align: center;
    }

    .cap-avatar-wrap {
        width: 130px;
        height: 130px;
    }

    .cap-description {
        max-width: 100%;
    }

    .cap-meta {
        justify-content: center;
    }

    .cap-grid {
        grid-template-columns: 1fr;
    }
}
