/**
 * Author Card Component
 * Thiết kế đơn giản: Avatar tròn, tên, mô tả, social links, nút xem thêm
 * 
 * @package GeneratePress_Child
 * @version 2.1.0
 */

/* ==========================================================================
   Author Card Container
   ========================================================================== */

.gpcc-author-card {
    --author-card-bg: #f8f7fc;
    --author-card-text: #64748b;
    --author-card-name: #1e293b;
    --author-card-button: #6366f1;
    --author-card-border: #e2e8f0;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--author-card-bg);
    border: 2px solid var(--author-card-border);
    border-radius: 1rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Avatar
   ========================================================================== */

.gpcc-author-card__avatar {
    margin-bottom: 1rem;
}

.gpcc-author-card__avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--author-card-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gpcc-author-card__avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Name
   ========================================================================== */

.gpcc-author-card__name {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--author-card-name);
    line-height: 1.3;
}

/* ==========================================================================
   Bio / Description
   ========================================================================== */

.gpcc-author-card__bio {
    margin: 0 0 1rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--author-card-text);
    max-width: 280px;
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.gpcc-author-card__socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.gpcc-author-card__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--author-card-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.gpcc-author-card__social:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.gpcc-author-card__social svg {
    width: 18px;
    height: 18px;
}

/* Social Colors on Hover */
.gpcc-author-card__social--facebook:hover {
    background-color: #1877f2;
    color: #ffffff;
}

.gpcc-author-card__social--twitter:hover {
    background-color: #000000;
    color: #ffffff;
}

.gpcc-author-card__social--instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
}

.gpcc-author-card__social--youtube:hover {
    background-color: #ff0000;
    color: #ffffff;
}

.gpcc-author-card__social--tiktok:hover {
    background-color: #000000;
    color: #ffffff;
}

.gpcc-author-card__social--linkedin:hover {
    background-color: #0a66c2;
    color: #ffffff;
}

.gpcc-author-card__social--github:hover {
    background-color: #24292e;
    color: #ffffff;
}

.gpcc-author-card__social--website:hover {
    background-color: var(--author-card-button);
    color: #ffffff;
}

/* ==========================================================================
   Button
   ========================================================================== */

.gpcc-author-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    background-color: var(--author-card-button);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.gpcc-author-card__button:hover {
    background-color: color-mix(in srgb, var(--author-card-button) 85%, #000);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    text-decoration: none;
}

.gpcc-author-card__button:active {
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .gpcc-author-card {
        padding: 1.5rem 1rem;
    }
    
    .gpcc-author-card__avatar-img {
        width: 100px;
        height: 100px;
    }
    
    .gpcc-author-card__name {
        font-size: 1.125rem;
    }
    
    .gpcc-author-card__bio {
        font-size: 0.875rem;
    }
    
    .gpcc-author-card__socials {
        gap: 0.375rem;
    }
    
    .gpcc-author-card__social {
        width: 32px;
        height: 32px;
    }
    
    .gpcc-author-card__social svg {
        width: 16px;
        height: 16px;
    }
}

/* ==========================================================================
   Within Aside Widget Context
   ========================================================================== */

.gpcc-aside-widget + .gpcc-author-card,
.gpcc-author-card:last-child {
    margin-top: 1.5rem;
}
