/* ============================================
   Author Bio – Block Component
   Author information box with avatar, bio text
   and social links in watercolor scrapbook style
   ============================================ */

.author-bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    max-width: 48rem;
    background-color: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-watercolor);
    border: 2px dashed var(--color-ink-20);
}

@media (min-width: 768px) {
    .author-bio {
        flex-direction: row;
    }
}

/* Avatar wrapper – positions the decorative splash behind the image */
.author-bio__avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 8rem;
    height: 8rem;
}

/* Circular avatar image */
.author-bio__avatar {
    width: 8rem;
    height: 8rem;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
}

.author-bio__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Decorative SVG watercolor splash behind avatar */
.author-bio__splash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12rem;
    height: 12rem;
    z-index: 1;
    opacity: 0.3;
}

.author-bio__splash svg {
    width: 100%;
    height: 100%;
    fill: var(--color-otto-green);
}

/* Content area */
.author-bio__content {
    text-align: center;
}

@media (min-width: 768px) {
    .author-bio__content {
        text-align: left;
    }
}

/* Author name */
.author-bio__name {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: var(--space-2);
}

/* Bio text */
.author-bio__text {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-ink);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

/* Social links row */
.author-bio__social {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

@media (min-width: 768px) {
    .author-bio__social {
        justify-content: flex-start;
    }
}

/* Individual social link */
.author-bio__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ink-60);
    transition: color var(--transition-base), transform var(--transition-bounce);
}

.author-bio__social-link:hover {
    color: var(--color-otto-dark);
    transform: scale(1.15);
}

.author-bio__social-link i {
    width: 22px;
    height: 22px;
}
