/* =============================================================
   ITS Enhanced Author Header — Centered Layout
   File: css/its-author-header.css  v1.0.2
   
   Fox parent sets .titlebar56--author .titlebar56__main as
   horizontal flex. We override with higher specificity.
   ============================================================= */

/* --- Force centered vertical stack --- */
.titlebar56.titlebar56--author.its-author-header .titlebar56__main.its-author-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 0 10px;
}

/* --- Large Centered Avatar --- */
.its-author-header .its-author-avatar {
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 0 28px;
    flex-shrink: 0;
}
.its-author-header .its-author-avatar img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0;
}

/* --- Name --- */
.titlebar56.its-author-header .titlebar56__title {
    font-size: 2em;
    margin: 0 0 1px;
    width: 100%;
}

/* --- Author Role/Title --- */
.its-author-header .its-author-role {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.55;
    margin-bottom: 16px;
    width: 100%;
}

/* --- Bio Paragraph --- */
.its-author-header .its-author-bio {
    max-width: 680px;
    margin: 0 auto 12px;
    font-size: 0.95em;
    line-height: 1.65;
    opacity: 0.85;
    width: 100%;
}
.its-author-header .its-author-bio p {
    margin: 0 0 8px;
}
.its-author-header .its-author-bio p:last-child {
    margin-bottom: 0;
}

/* --- Social Links --- */
.its-author-header .its-author-social {
    margin-top: 4px;
    margin-bottom: 4px;
    width: 100%;
}
.its-author-header .its-author-social .fox56-social-list ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.its-author-header .its-author-social .fox56-social-list li {
    margin: 0;
    padding: 0;
}
.its-author-header .its-author-social .fox56-social-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    transition: opacity 0.2s ease;
    opacity: 0.5;
}
.its-author-header .its-author-social .fox56-social-list a:hover {
    opacity: 1;
}

/* --- Stats Bar --- */
.its-author-header .its-author-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    width: 100%;
}
.its-author-header .its-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    position: relative;
}
.its-author-header .its-stat:first-child {
    padding-left: 0;
}
.its-author-header .its-stat:last-child {
    padding-right: 0;
}
/* Divider between stats */
.its-author-header .its-stat + .its-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(128, 128, 128, 0.2);
}
.its-author-header .its-stat-value {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.2;
}
.its-author-header .its-stat-label {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.45;
    margin-top: 2px;
}

/* --- Cover photo skin --- */
.its-author-header.has-cover .its-author-role {
    opacity: 0.75;
}
.its-author-header.has-cover .its-author-bio {
    opacity: 0.9;
}
.its-author-header.has-cover .its-author-stats {
    border-top-color: rgba(255, 255, 255, 0.2);
}
.its-author-header.has-cover .its-stat + .its-stat::before {
    background: rgba(255, 255, 255, 0.2);
}
.its-author-header.has-cover .its-author-social .fox56-social-list a {
    opacity: 0.7;
}
.its-author-header.has-cover .its-author-social .fox56-social-list a:hover {
    opacity: 1;
}

/* --- Tablet (matches Fox's 840px breakpoint) --- */
@media only screen and (max-width: 840px) {
    .its-author-header .its-author-avatar,
    .its-author-header .its-author-avatar img {
        width: 120px;
        height: 120px;
    }
    .titlebar56.its-author-header .titlebar56__title {
        font-size: 1.6em;
    }
    .its-author-header .its-stat {
        padding: 0 16px;
    }
    .its-author-header .its-stat-value {
        font-size: 1.25em;
    }
}

/* --- Mobile (matches Fox's 600px breakpoint) --- */
@media only screen and (max-width: 600px) {
    .titlebar56.titlebar56--author.its-author-header {
        padding: 10px 0;
    }
    .titlebar56.titlebar56--author.its-author-header .container {
        padding: 5px 0;
    }
    .titlebar56.titlebar56--author.its-author-header .titlebar56__main.its-author-centered {
        padding: 0;
    }
    .its-author-header .its-author-avatar,
    .its-author-header .its-author-avatar img {
        width: 110px;
        height: 110px;
    }
    .its-author-header .its-author-avatar {
        margin-bottom: 20px;
    }
    .titlebar56.its-author-header .titlebar56__title {
        font-size: 1.4em;
    }
    .its-author-header .its-author-role {
        font-size: 0.78em;
        margin-bottom: 10px;
    }
    .its-author-header .its-author-bio {
        font-size: 0.88em;
        line-height: 1.55;
    }
    .its-author-header .its-author-stats {
        margin-top: 14px;
        padding-top: 14px;
    }
    .its-author-header .its-stat {
        padding: 0 10px;
    }
    .its-author-header .its-stat:first-child {
        padding-left: 0;
    }
    .its-author-header .its-stat:last-child {
        padding-right: 0;
    }
    .its-author-header .its-stat-value {
        font-size: 1.1em;
    }
    .its-author-header .its-stat-label {
        font-size: 0.55em;
        letter-spacing: 0.04em;
    }
    .its-author-header .its-author-social .fox56-social-list a {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}