/* ============================================================
   AUTHOR PAGE — au-*
   ============================================================ */

/* --- Breadcrumbs --- */
.au-crumbs {
    margin-bottom: 40px;
    font-size: 13px;
    color: rgba(255,255,255,.5);
}
.au-crumbs a { color: rgba(255,255,255,.6); text-decoration: none; }
.au-crumbs a:hover { color: #fff; }

/* --- Hero --- */
.au-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 56px 0 64px;
    color: #fff;
}

.au-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

/* --- Avatar --- */
.au-avatar {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #c0392b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 20px 60px rgba(0,0,0,.4);
}

.au-avatar__initials {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1;
}

.au-avatar__badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #fff;
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 3px 7px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* --- Info --- */
.au-hero__info { flex: 1; min-width: 0; }

.au-hero__tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #ff8a80;
    margin-bottom: 12px;
}

.au-hero__name {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: 10px;
}

.au-hero__pos {
    font-size: 16px;
    color: rgba(255,255,255,.6);
    margin-bottom: 28px;
    font-weight: 400;
}

/* --- Stats --- */
.au-hero__stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.au-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.au-stat__val {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.au-stat__lbl {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* --- Skills --- */
.au-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.au-skill {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* --- Bio --- */
.au-bio {
    background: var(--color-bg-alt);
    padding: 56px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.au-bio__inner {
    max-width: 760px;
    padding-left: 32px;
    border-left: 4px solid var(--color-primary);
}

.au-bio__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.au-bio__text {
    font-size: 17px;
    line-height: 1.85;
    color: var(--color-text);
    margin-bottom: 20px;
}

.au-bio__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity .2s;
}
.au-bio__link:hover { opacity: .75; }

/* --- Posts grid --- */
.au-posts {
    padding: 64px 0 72px;
    background: var(--color-bg);
}

.au-posts__head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 40px;
}

.au-posts__title {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: var(--color-secondary);
    letter-spacing: -.02em;
}

.au-posts__count {
    font-size: 14px;
    color: var(--color-text-muted);
}

.au-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.au-posts__empty {
    font-size: 15px;
    color: var(--color-text-muted);
    padding: 40px 0;
}

/* Post cards on author page (light bg) */
.au-posts .post-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.au-posts .post-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.au-posts .post-card__img {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border-light));
    position: relative;
    overflow: hidden;
}

.au-posts .post-card__img--placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(192,57,43,.08), rgba(192,57,43,.02));
}

.au-posts .post-card__body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.au-posts .post-card__cat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.au-posts .post-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.4;
    margin-bottom: 14px;
    flex: 1;
    transition: color .2s;
}

.au-posts .post-card:hover .post-card__title {
    color: var(--color-primary);
}

.au-posts .post-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.au-posts .post-card__date {
    font-size: 12px;
    color: var(--color-text-muted);
}

.au-posts .post-card__read {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* --- CTA --- */
.au-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 56px 0;
}

.au-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.au-cta__title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -.02em;
}

.au-cta__sub {
    font-size: 15px;
    color: rgba(255,255,255,.55);
}

.au-cta__btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .au-posts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .au-hero__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
    }
    .au-hero__stats { justify-content: center; }
    .au-skills { justify-content: center; }
    .au-bio__inner { padding-left: 20px; border-left-width: 3px; }
    .au-posts__grid { grid-template-columns: 1fr; }
    .au-cta__inner { flex-direction: column; text-align: center; }
    .au-hero { padding: 40px 0 48px; }
    .au-bio { padding: 36px 0; }
    .au-posts { padding: 40px 0 48px; }
}
