
/* ==========================================
   BCPOKER - AUTHOR CARD
   Theme: multitheme
   Final version
========================================== */

/* MAIN CARD */

.post-entry .author-card {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    grid-template-areas:
        "photo header"
        "photo job"
        "bio bio"
        "link link";

    column-gap: 24px;
    row-gap: 8px;

    width: calc(100% - 32px);
    max-width: 1100px;
    margin: 32px auto;
    padding: 22px 26px 20px;

    box-sizing: border-box;

    background: #292d2e;
    border: 1px solid rgba(36, 238, 137, 0.25);
    border-radius: 14px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

/* PHOTO */

.post-entry .author-card__photo {
    grid-area: photo;
    width: 106px;
    height: 106px;
    align-self: start;
}

.post-entry .author-card__photo img {
    display: block;
    width: 106px;
    height: 106px;
    max-width: none;

    object-fit: cover;
    object-position: center top;

    border-radius: 50%;
    border: 2px solid #24ee89;
}

/* INFO WRAPPER */

.post-entry .author-card__info {
    display: contents;
}

/* TOP ROW */

.post-entry .author-card__top {
    grid-area: header;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin: 0;
}

.post-entry .author-card__identity {
    min-width: 0;
}

/* AUTHOR LABEL */

.post-entry .author-card__label {
    display: block;
    margin-bottom: 4px;

    color: #abb5b1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

/* AUTHOR NAME */

.post-entry .author-card__name {
    margin: 0;
    padding: 0;

    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.post-entry .author-card__name a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-entry .author-card__name a:hover {
    color: #24ee89;
    text-decoration: none;
}

/* JOB TITLE */

.post-entry .author-card__job {
    grid-area: job;

    margin: 0;
    padding: 0;

    color: #24ee89;
    background: transparent;
    border: 0;
    border-radius: 0;

    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

/* BIOGRAPHY */

.post-entry .author-card__bio {
    grid-area: bio;

    display: block;
    margin: 0 0 4px;
    padding: 20px 0 0;

    color: #d7dddd;
    font-size: 14px;
    line-height: 1.7;
}

/* PROFILE LINK */

.post-entry .author-card__link {
    grid-area: link;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 8px;

    color: #24ee89;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;

    transition: color 0.2s ease;
}

.post-entry .author-card__link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================
   SOCIAL ICONS
========================================== */

.post-entry .author-card__socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;

    flex-shrink: 0;
}

/* DEFAULT SOCIAL LINKS */

.post-entry .author-card__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    box-sizing: border-box;

    background: #343a3b;
    border: 1px solid rgba(36, 238, 137, 0.25);
    border-radius: 8px;

    text-decoration: none;
    overflow: hidden;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.post-entry .author-card__socials a:hover {
    background: #454c4d;
    transform: translateY(-1px);
    text-decoration: none;
}

/* SOCIAL IMAGES */

.post-entry .author-card__socials img.author-card__social-icon {
    display: block;

    width: 28px !important;
    height: 28px !important;
    max-width: none;

    object-fit: contain;
}

/* SVG ICONS */

.post-entry .author-card__socials svg {
    display: block;
    width: 28px;
    height: 28px;
}

/* FALLBACK TEXT */

.post-entry .author-card__social-fallback {
    color: #24ee89;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

/* X (TWITTER) - SUBTLE GREEN BORDER */

.post-entry .author-card__socials a[href*="x.com"],
.post-entry .author-card__socials a[href*="twitter.com"] {
    background: #596364;
    border: 1px solid rgba(36, 238, 137, 0.35);
    border-radius: 8px;
    box-shadow: none;
}

.post-entry .author-card__socials a[href*="x.com"]:hover,
.post-entry .author-card__socials a[href*="twitter.com"]:hover {
    background: #687375;
    border-color: rgba(36, 238, 137, 0.65);
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 768px) {

    .post-entry .author-card {
        grid-template-columns: 88px minmax(0, 1fr);
        column-gap: 18px;

        padding: 20px;
    }

    .post-entry .author-card__photo,
    .post-entry .author-card__photo img {
        width: 88px;
        height: 88px;
    }

    .post-entry .author-card__name {
        font-size: 18px;
    }

    .post-entry .author-card__bio {
        font-size: 13px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 640px) {

    .post-entry .author-card {
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-areas:
            "photo header"
            "photo job"
            "bio bio"
            "link link";

        column-gap: 14px;
        row-gap: 8px;

        margin: 24px auto;
        padding: 18px;
        border-radius: 12px;
    }

    /* PHOTO */

    .post-entry .author-card__photo,
    .post-entry .author-card__photo img {
        width: 76px;
        height: 76px;
    }

    /* HEADER */

    .post-entry .author-card__top {
        flex-wrap: wrap;
        gap: 8px;
    }

    .post-entry .author-card__label {
        font-size: 11px;
    }

    .post-entry .author-card__name {
        font-size: 17px;
    }

    /* JOB */

    .post-entry .author-card__job {
        font-size: 13px;
    }

    /* BIO */

    .post-entry .author-card__bio {
        padding-top: 12px;
        font-size: 13px;
        line-height: 1.6;
    }

    /* PROFILE LINK */

    .post-entry .author-card__link {
        font-size: 13px;
    }

    /* SOCIAL ICONS */

    .post-entry .author-card__socials {
        justify-content: flex-start;
        gap: 8px;
    }

    .post-entry .author-card__socials a {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .post-entry .author-card__socials img.author-card__social-icon {
        width: 28px !important;
        height: 28px !important;
    }
}

