/* Author Box Pro — author-box.css */

:root {
    --abp-accent: #6366f1;
    --abp-accent-light: #6366f11a;
}

/* ─── Box-sizing reset scoped to plugin ─────────────── */
.abp-author-box,
.abp-author-box *,
.abp-author-box *::before,
.abp-author-box *::after {
    box-sizing: border-box;
}

/* ─── Container ─────────────────────────────────────── */
.abp-author-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 3rem 0;
    padding: 0;
    font-family: inherit;
    overflow: hidden;
    display: block;
    clear: both;
}

/* Radius variants */
.abp--radius-rounded  { border-radius: 16px; }
.abp--radius-sharp    { border-radius: 4px; }
.abp--radius-pill     { border-radius: 40px; }

/* ─── Light theme ────────────────────────────────────── */
.abp--theme-light {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.05);
}

.abp--theme-light .abp-label {
    background: var(--abp-accent);
    color: #ffffff;
}

.abp--theme-light .abp-name { color: #111827; }
.abp--theme-light .abp-bio  { color: #4b5563; }

.abp--theme-light .abp-post-count {
    background: var(--abp-accent-light);
    color: var(--abp-accent);
}

.abp--theme-light .abp-btn {
    background: var(--abp-accent);
    color: #fff;
}
.abp--theme-light .abp-btn:hover {
    filter: brightness(0.88);
}

.abp--theme-light .abp-social-link {
    color: #6b7280;
    background: #f3f4f6;
}
.abp--theme-light .abp-social-link:hover {
    color: var(--abp-accent);
    background: var(--abp-accent-light);
}

/* ─── Dark theme ─────────────────────────────────────── */
.abp--theme-dark {
    background: #1f2937;
    border: 1px solid #374151;
    box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 8px 32px rgba(0,0,0,.25);
}

.abp--theme-dark .abp-label {
    background: #111827;
    color: #9ca3af;
}

.abp--theme-dark .abp-name { color: #f9fafb; }
.abp--theme-dark .abp-bio  { color: #d1d5db; }

.abp--theme-dark .abp-post-count {
    background: var(--abp-accent-light);
    color: var(--abp-accent);
}

.abp--theme-dark .abp-btn {
    background: var(--abp-accent);
    color: #fff;
}

.abp--theme-dark .abp-social-link {
    color: #9ca3af;
    background: #374151;
}
.abp--theme-dark .abp-social-link:hover {
    color: var(--abp-accent);
    background: #4b5563;
}

/* ─── Gradient theme ─────────────────────────────────── */
.abp--theme-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.abp--theme-gradient .abp-label {
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.85);
}

.abp--theme-gradient .abp-name { color: #fff; }
.abp--theme-gradient .abp-bio  { color: rgba(255,255,255,.85); }

.abp--theme-gradient .abp-post-count {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.abp--theme-gradient .abp-btn {
    background: rgba(255,255,255,.25);
    color: #fff;
}
.abp--theme-gradient .abp-btn:hover {
    background: rgba(255,255,255,.38);
}

.abp--theme-gradient .abp-social-link {
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.15);
}
.abp--theme-gradient .abp-social-link:hover {
    background: rgba(255,255,255,.3);
    color: #fff;
}

/* ─── Label / eyebrow ────────────────────────────────── */
.abp-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 20px;
    margin: 0;
    line-height: 1;
}

/* ─── Inner layout ───────────────────────────────────── */
.abp-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 24px 24px;
    width: 100%;
}

@media (max-width: 480px) {
    .abp-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .abp-footer {
        flex-direction: column;
        align-items: center;
    }
}

/* ─── Avatar ─────────────────────────────────────────── */
.abp-avatar {
    flex-shrink: 0;
}

.abp-avatar img.abp-avatar-img,
img.abp-avatar-img {
    display: block !important;
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    object-fit: cover !important;
    border: 3px solid var(--abp-accent) !important;
    box-shadow: 0 0 0 3px var(--abp-accent-light) !important;
    /* Prevent themes from making the avatar stretch the page */
    flex-shrink: 0 !important;
}

/* ─── Content ────────────────────────────────────────── */
.abp-content {
    flex: 1;
    min-width: 0; /* critical — prevents flex child from overflowing */
    overflow: hidden;
}

.abp-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.abp-name {
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    transition: opacity .15s;
    word-break: break-word;
}
.abp-name:hover { opacity: .75; }

.abp-post-count {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: .02em;
    white-space: nowrap;
}

.abp-bio {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 16px;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ─── Footer row ─────────────────────────────────────── */
.abp-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.abp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: filter .15s, transform .1s;
    white-space: nowrap;
}
.abp-btn:hover { transform: translateY(-1px); }
.abp-btn:active { transform: translateY(0); }

/* ─── Social links ───────────────────────────────────── */
.abp-social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.abp-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    text-decoration: none;
    transition: color .15s, background .15s, transform .15s;
    flex-shrink: 0;
}
.abp-social-link:hover { transform: translateY(-2px); }
