/**
 * Author Byline & E-E-A-T Components
 * 
 * Premium styling for author attribution, bylines, and author cards.
 * Designed to enhance E-E-A-T signals with a polished, professional look.
 * 
 * @package HyzenPro
 * @since 2.3.0
 */

/* ==========================================================================
   CSS Custom Properties (Dark Theme)
   ========================================================================== */

:root {
    --author-bg: hsl(240 6% 10%);
    --author-card-bg: linear-gradient(135deg, hsl(240 6% 12%) 0%, hsl(240 6% 8%) 100%);
    --author-border: hsl(240 6% 20%);
    --author-text: hsl(0 0% 95%);
    --author-text-muted: hsl(0 0% 65%);
    --author-accent: hsl(262 83% 58%);
    --author-accent-soft: hsla(262, 83%, 58%, 0.15);
    --author-link: hsl(262 83% 65%);
    --author-avatar-ring: linear-gradient(135deg, hsl(262 83% 58%), hsl(280 70% 50%));
    --author-shadow: 0 4px 24px -4px hsla(0, 0%, 0%, 0.4);
    --author-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Author Byline (Inline)
   ========================================================================== */

.hyzen-author-byline {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    margin: 1.5rem 0;
    border-top: 1px solid var(--author-border);
    border-bottom: 1px solid var(--author-border);
}

.hyzen-author-byline--compact {
    padding: 0.75rem 0;
    margin: 1rem 0;
    gap: 0.75rem;
}

/* Avatar */
.hyzen-author-avatar {
    flex-shrink: 0;
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 2px;
    background: var(--author-avatar-ring);
    transition: var(--author-transition);
}

.hyzen-author-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px hsla(262, 83%, 58%, 0.4);
}

.hyzen-author-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--author-bg);
}

/* Author Info */
.hyzen-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.hyzen-author-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.hyzen-author-label {
    color: var(--author-text-muted);
    font-size: 0.8125rem;
    font-weight: 400;
}

.hyzen-author-name {
    color: var(--author-text);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--author-transition);
}

.hyzen-author-name:hover {
    color: var(--author-accent);
}

.hyzen-author-title {
    color: var(--author-accent);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    background: var(--author-accent-soft);
    border-radius: 4px;
}

/* Post Meta */
.hyzen-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--author-text-muted);
    font-size: 0.8125rem;
}

.hyzen-meta-sep {
    opacity: 0.4;
}

.hyzen-post-date,
.hyzen-post-updated,
.hyzen-read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hyzen-post-updated {
    color: hsl(142 70% 45%);
    font-weight: 500;
}

.hyzen-post-updated svg,
.hyzen-read-time svg {
    opacity: 0.7;
}

/* ==========================================================================
   Author Card (Full)
   ========================================================================== */

.hyzen-author-card {
    background: var(--author-card-bg);
    border: 1px solid var(--author-border);
    border-radius: 16px;
    padding: 1.75rem;
    margin: 2.5rem 0;
    box-shadow: var(--author-shadow);
    transition: var(--author-transition);
}

.hyzen-author-card:hover {
    border-color: hsla(262, 83%, 58%, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px -8px hsla(0, 0%, 0%, 0.5);
}

/* Card Header */
.hyzen-author-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.hyzen-author-card-avatar {
    flex-shrink: 0;
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: var(--author-avatar-ring);
    transition: var(--author-transition);
}

.hyzen-author-card-avatar:hover {
    transform: scale(1.05) rotate(3deg);
}

.hyzen-author-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--author-bg);
}

.hyzen-author-card-info {
    flex: 1;
    min-width: 0;
}

.hyzen-author-card-name {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.hyzen-author-card-name a {
    color: var(--author-text);
    text-decoration: none;
    transition: var(--author-transition);
}

.hyzen-author-card-name a:hover {
    color: var(--author-accent);
}

.hyzen-author-card-title {
    display: block;
    color: var(--author-accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hyzen-author-card-expertise {
    display: inline-block;
    color: var(--author-text-muted);
    font-size: 0.8125rem;
    padding: 0.25rem 0.625rem;
    background: hsla(262, 83%, 58%, 0.1);
    border-radius: 20px;
    margin-top: 0.5rem;
}

/* Card Bio */
.hyzen-author-card-bio {
    color: var(--author-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--author-border);
}

/* Card Footer */
.hyzen-author-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hyzen-author-card-stats {
    display: flex;
    gap: 1rem;
}

.hyzen-author-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--author-text-muted);
    font-size: 0.8125rem;
}

.hyzen-author-stat svg {
    color: var(--author-accent);
    opacity: 0.8;
}

.hyzen-author-card-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hyzen-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, 0.05);
    color: var(--author-text-muted);
    transition: var(--author-transition);
}

.hyzen-social-link:hover {
    background: var(--author-accent);
    color: #fff;
    transform: translateY(-2px);
}

.hyzen-social-twitter:hover {
    background: #1da1f2;
}

.hyzen-social-linkedin:hover {
    background: #0077b5;
}

.hyzen-author-view-all {
    color: var(--author-link);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--author-transition);
}

.hyzen-author-view-all:hover {
    color: var(--author-accent);
    text-decoration: underline;
}

/* ==========================================================================
   Last Updated Badge (Standalone)
   ========================================================================== */

.hyzen-updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, hsla(142, 70%, 45%, 0.15), hsla(142, 70%, 35%, 0.1));
    border: 1px solid hsla(142, 70%, 45%, 0.25);
    border-radius: 20px;
    color: hsl(142 70% 50%);
    font-size: 0.8125rem;
    font-weight: 500;
}

.hyzen-updated-badge svg {
    animation: hyzen-spin 3s linear infinite;
}

@keyframes hyzen-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Expertise Badges
   ========================================================================== */

.hyzen-expertise-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, hsla(262, 83%, 58%, 0.2), hsla(280, 70%, 50%, 0.1));
    border: 1px solid hsla(262, 83%, 58%, 0.3);
    border-radius: 4px;
    color: hsl(262 83% 70%);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hyzen-verified-badge {
    background: linear-gradient(135deg, hsla(45, 100%, 50%, 0.2), hsla(35, 100%, 45%, 0.1));
    border-color: hsla(45, 100%, 50%, 0.3);
    color: hsl(45 100% 55%);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
    .hyzen-author-byline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hyzen-author-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hyzen-author-card-footer {
        flex-direction: column;
        align-items: center;
    }

    .hyzen-author-card-social {
        width: 100%;
        justify-content: center;
    }
}