/* ==========================================================================
   Author Bio Card Component
   Displays team member info on posts when linked to author
   ========================================================================== */

.author-bio-card {
    margin: 60px auto;
    max-width: 800px; /* Constrains the width to match standard blog content */
    width: 100%;
    box-sizing: border-box;
}

.author-bio-card__inner {
    background: var(--lunar-blue, #4B5160);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(49, 58, 76, 0.08);
    border: 1px solid var(--nebula-silver);
    border-left: 5px solid var(--aurora-green, #BAD532);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 28px;
    align-items: start;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Profile Image */
.author-bio-card__image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(186, 213, 50, 0.2);
    border: 4px solid var(--aurora-green, #BAD532);
}

.author-bio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content Area */
.author-bio-card__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0; /* Prevent overflow */
}

/* Header with name, role, and LinkedIn */
.author-bio-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.author-bio-card__header-text {
    flex: 1;
    min-width: 0;
}

.author-bio-card__name {
    font-size: 24px;
    font-weight: 700;
    color: var(--aurora-green, #BAD532);
    margin: 0 0 4px 0;
    line-height: 1.3;
    padding: 0;
}

.author-bio-card__role {
    font-size: 15px;
    font-weight: 600;
    color: var(--halo-green, #C6E0CC);
    margin: 0;
    line-height: 1.2;
    padding: 0 !important;
}

/* LinkedIn Icon */
.author-bio-card__linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--stardust-blue, #9BA5B5);
    border-radius: 50px;
    color: var(--nebula-white, #FFFFFF);
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.author-bio-card__linkedin:hover {
    background: var(--aurora-green, #BAD532);
    color: var(--nebula-blue, #313A4C);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(186, 213, 50, 0.3);
}

.author-bio-card__linkedin:visited {
    color: var(--nebula-white, #FFFFFF);
}

.author-bio-card__linkedin:visited:hover {
    color: var(--nebula-blue, #313A4C);
}

.author-bio-card__linkedin svg {
    width: 20px;
    height: 20px;
}

/* Description Text */
.author-bio-card__description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--halo-green, #C6E0CC);
}

.author-bio-card__description p {
    margin: 0 0 12px 0;
}

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

.author-bio-card__description strong {
    color: var(--nebula-blue, #313A4C);
    font-weight: 600;
}

.author-bio-card__description a {
    color: var(--corona-green, #3B824B);
    text-decoration: none;
    border-bottom: 1px solid var(--halo-green, #C6E0CC);
    transition: all 0.2s ease;
}

.author-bio-card__description a:hover {
    color: var(--aurora-green, #BAD532);
    border-bottom-color: var(--aurora-green, #BAD532);
}

.author-bio-card__footer {
    padding-top: 8px;
    border-top: 1px solid var(--nebula-silver);
}

.bio-lnk {
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
    font-weight: 700;
    color: var(--nebula-white) !important;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.bio-lnk:hover {
    color: var(--nebula-blue, #BAD532);
}

.bio-lnk--arrow:after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 0 0 10px;
  background-image: url("../../../img/icon_arrow_right_white.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  transition: transform 0.3s ease-in-out;
}

.bio-lnk:hover:after {
    transform: translateX(5px);
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */

@media (max-width: 768px) {
    .author-bio-card {
        margin: 40px auto;
    }
    
    .author-bio-card__inner {
        grid-template-columns: 100px 1fr;
        gap: 20px;
        padding: 24px;
    }
    
    .author-bio-card__image {
        width: 100px;
        height: 100px;
    }
    
    .author-bio-card__name {
        font-size: 20px;
    }
    
    .author-bio-card__role {
        font-size: 14px;
    }
    
    .author-bio-card__linkedin {
        width: 36px;
        height: 36px;
    }
    
    .author-bio-card__linkedin svg {
        width: 18px;
        height: 18px;
    }
    
    .author-bio-card__description {
        font-size: 14px;
    }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media (max-width: 480px) {
    .author-bio-card {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .author-bio-card__inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 20px;
        gap: 20px;
    }
    
    .author-bio-card__image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .author-bio-card__header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .author-bio-card__header-text {
        text-align: center;
    }
    
    .author-bio-card__name {
        font-size: 22px;
    }
    
    .author-bio-card__role {
        font-size: 14px;
    }
    
    .author-bio-card__description {
        text-align: left;
    }
    
    .author-bio-card__footer {
        text-align: center;
    }
}

/* ==========================================================================
   Alternative: No Profile Image Styling
   ========================================================================== */

/* When there's no image, adjust grid to single column */
.author-bio-card__inner:not(:has(.author-bio-card__image)) {
    grid-template-columns: 1fr;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .author-bio-card {
        page-break-inside: avoid;
        box-shadow: none;
    }
    
    .author-bio-card__inner {
        border: 1px solid var(--nebula-silver, #E5E5E5);
    }
    
    .author-bio-card__linkedin {
        display: none;
    }
    
    .author-bio-card__footer {
        display: none;
    }
}