/* ==========================================================================
   Casino Starter — Author Page
   Loaded only on author archives (author.php) (functions.php). Moved out of footer.css unchanged.
   ========================================================================== */

/* ==========================================================================
   Author Page (author.php)
   ========================================================================== */

/* --- Hero --- */
.author-hero {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.author-hero__avatar {
    flex-shrink: 0;
}

.author-hero__img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--color-border);
}

.author-hero__info {
    flex: 1;
    min-width: 0;
}

.author-hero__name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.author-hero__name {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
}

.author-hero__verified {
    flex-shrink: 0;
}

.author-hero__jobtitle {
    display: inline-block;
    font-size: 11px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    background: var(--color-primary, #0a2463);
    color: var(--color-on-primary);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.author-hero__experience {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-success, #28a745);
    margin-bottom: 12px;
    padding: 5px 14px;
    background: rgba(40, 167, 69, 0.08);
    border-radius: var(--radius-sm);
}

.author-hero__experience svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.author-hero__bio {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.author-hero__bio p {
    margin: 0 0 8px;
}

.author-hero__bio p:last-child {
    margin-bottom: 0;
}

.author-hero__expertise {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.author-hero__expertise-label {
    font-size: 11px;
    font-weight: var(--weight-bold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-hero__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: var(--weight-semibold);
    padding: 4px 12px;
    background: var(--color-light-bg, #f0f2f8);
    color: var(--color-primary, #0a2463);
    border: 1px solid var(--color-border, #dde0e8);
    border-radius: 100px;
    white-space: nowrap;
}

.author-hero__credentials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.author-hero__credentials-label {
    font-size: 11px;
    font-weight: var(--weight-bold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-hero__credential-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: var(--weight-semibold);
    padding: 4px 12px;
    background: rgba(245, 166, 35, 0.1);
    color: var(--color-cta, #f5a623);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 100px;
    white-space: nowrap;
    line-height: 1.4;
}

.author-hero__credential-tag svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    opacity: 0.7;
    margin: 0;
}

.author-hero__workplaces {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.author-hero__workplaces-label {
    font-size: 11px;
    font-weight: var(--weight-bold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 2px;
}

.author-hero__workplace-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: var(--weight-semibold);
    padding: 4px 12px;
    background: rgba(10, 36, 99, 0.06);
    color: var(--color-primary, #0a2463);
    border: 1px solid rgba(10, 36, 99, 0.15);
    border-radius: 100px;
    white-space: nowrap;
    text-decoration: none !important;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.author-hero__workplace-tag:hover {
    background: var(--color-primary, #0a2463);
    color: #fff;
    border-color: var(--color-primary, #0a2463);
}

.author-hero__workplace-tag svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    opacity: 0.6;
    margin: 0;
}

.author-hero__workplace-tag:hover svg {
    opacity: 1;
    color: #fff;
}

/* --- Stats --- */
.author-hero__stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: 16px;
}

.author-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    background: var(--color-light-bg, #f5f6fa);
    border-radius: var(--radius-md);
    min-width: 80px;
}

.author-hero__stat-num {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-primary, #0a2463);
    line-height: 1;
}

.author-hero__stat-label {
    font-size: 11px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* --- Social links --- */
.author-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.author-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: var(--weight-semibold);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.author-hero__link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.author-hero__link svg {
    flex-shrink: 0;
}

.author-hero__link--linkedin {
    background: #0077b5;
    color: #fff;
}

.author-hero__link--twitter {
    background: #14171a;
    color: #fff;
}

.author-hero__link--web {
    background: var(--color-light-bg, #f0f0f0);
    color: var(--color-primary, #0a2463);
    border: 1px solid var(--color-border, #ddd);
}

/* --- Articles section --- */
.author-articles__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary, #0a2463);
}

.author-articles__heading svg {
    color: var(--color-primary, #0a2463);
    flex-shrink: 0;
}

.author-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

/* --- Article cards --- */
.author-article-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.author-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.author-article-card__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.author-article-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.author-article-card:hover .author-article-card__img {
    transform: scale(1.03);
}

.author-article-card__body {
    padding: var(--space-lg);
}

.author-article-card__type {
    display: inline-block;
    font-size: 10px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary, #0a2463);
    background: rgba(10, 36, 99, 0.06);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.author-article-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    line-height: 1.3;
    margin: 0 0 8px;
}

.author-article-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.author-article-card__title a:hover {
    color: var(--color-primary);
}

.author-article-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0 0 12px;
}

.author-article-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* --- Mobile --- */
@media screen and (max-width: 600px) {
    .author-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .author-hero__img {
        width: 120px;
        height: 120px;
    }

    .author-hero__name-row {
        justify-content: center;
    }

    .author-hero__name {
        font-size: var(--text-xl);
    }

    .author-hero__expertise {
        justify-content: center;
    }

    .author-hero__stats {
        justify-content: center;
    }

    .author-hero__links {
        justify-content: center;
    }

    .author-articles__grid {
        grid-template-columns: 1fr;
    }
}
