/* =====================================================
   SOMOS TRAIL
   AUTHOR BOX
   Simple Author Box
   Light + Dark Mode
===================================================== */


/* =====================================================
   CARD
===================================================== */

.saboxplugin-wrap {
    box-sizing: border-box;

    width: 100%;
    clear: both;
    display: block;
    position: relative;
    overflow: hidden;

    margin: 60px 0;

    background: #FFFFFF !important;

    border: 1px solid #ECECEC !important;
    border-radius: 18px !important;

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

    word-wrap: break-word;
}


/* =====================================================
   ESTRUTURA
===================================================== */

.saboxplugin-tab {
    display: grid;

    grid-template-columns: 96px 1fr;

    column-gap: 28px;
    row-gap: 10px;

    align-items: start;

    padding: 35px;
}


/* =====================================================
   FOTO
===================================================== */

.saboxplugin-gravatar {
    grid-row: 1 / span 4;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;
}

.saboxplugin-gravatar img {
    display: block;

    width: 96px !important;
    height: 96px !important;

    max-width: 96px !important;

    object-fit: cover;

    border-radius: 50% !important;

    border: 4px solid #FFFFFF;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}


/* =====================================================
   NOME
===================================================== */

.saboxplugin-authorname {
    margin: 0 !important;
    padding: 0 !important;

    font-size: 32px !important;
    font-weight: 700 !important;

    line-height: 1.1 !important;
}

.saboxplugin-authorname a {
    color: #111111 !important;

    text-decoration: none !important;
}

.saboxplugin-authorname a:hover {
    color: #FF5D29 !important;
}


/* =====================================================
   ELEMENTOS ADMINISTRATIVOS DO PLUGIN
===================================================== */

.sab-profile-edit,
.sab-edit-settings {
    display: none !important;
}


/* =====================================================
   BIOGRAFIA
===================================================== */

.saboxplugin-desc {
    margin: 8px 0 0 !important;
    padding: 0 !important;
}

.saboxplugin-desc p {
    margin: 0 !important;

    font-size: 16px !important;
    line-height: 1.8 !important;

    color: #666666 !important;
}


/* =====================================================
   REDES SOCIAIS
===================================================== */

.saboxplugin-wrap .saboxplugin-socials {
    position: relative;

    display: block;

    margin-top: 18px !important;
    padding: 18px 0 0 !important;

    background: transparent !important;

    border-top: 1px solid #ECECEC !important;

    text-align: left;
}


/* Links */

.saboxplugin-wrap .saboxplugin-socials a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin: 0 10px 0 0;

    padding: 0 !important;

    background: transparent !important;

    color: #777777 !important;

    fill: #777777 !important;

    text-decoration: none !important;

    box-shadow: none !important;

    transition:
        color 0.25s ease,
        fill 0.25s ease,
        opacity 0.25s ease;
}


/* Hover */

.saboxplugin-wrap .saboxplugin-socials a:hover {
    background: transparent !important;

    color: #FF5D29 !important;
    fill: #FF5D29 !important;

    opacity: 1;
}


/* SVG */

.saboxplugin-wrap .saboxplugin-socials a svg {
    display: block;

    width: 18px !important;
    height: 18px !important;

    background: transparent !important;

    color: inherit;

    fill: currentColor;
}


/* Plugin icon grey */

.saboxplugin-wrap .saboxplugin-socials .saboxplugin-icon-grey {
    background: transparent !important;

    color: #777777 !important;
    fill: #777777 !important;

    border: 0 !important;

    box-shadow: none !important;
}


/* =====================================================
   REMOVER VER PERFIL TEMPORÁRIO
===================================================== */

.saboxplugin-authorname::after {
    display: none !important;

    content: none !important;
}


/* =====================================================
   DARK MODE
   Sugar Blog
===================================================== */

[data-scheme="dark"] .saboxplugin-wrap {
    background: #222222 !important;

    border-color: #4D4D4D !important;

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


/* Container interno */

[data-scheme="dark"] .saboxplugin-tab {
    background: #222222 !important;
}


/* =====================================================
   FOTO DARK
===================================================== */

[data-scheme="dark"] .saboxplugin-gravatar img {
    border-color: #222222 !important;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.30);
}


/* =====================================================
   NOME DARK
===================================================== */

[data-scheme="dark"] .saboxplugin-authorname a {
    color: #FFFFFF !important;
}

[data-scheme="dark"] .saboxplugin-authorname a:hover {
    color: #FF5D29 !important;
}


/* =====================================================
   BIO DARK
===================================================== */

[data-scheme="dark"] .saboxplugin-desc,
[data-scheme="dark"] .saboxplugin-desc div {
    background: transparent !important;
}

[data-scheme="dark"] .saboxplugin-desc p {
    color: #CBCBCB !important;
}


/* =====================================================
   REDES SOCIAIS DARK
   Corrige o #fcfcfc original do plugin
===================================================== */

[data-scheme="dark"] .saboxplugin-wrap .saboxplugin-socials {
    background: #222222 !important;
    background-color: #222222 !important;

    border-top-color: #4D4D4D !important;
}


/* Links das redes */

[data-scheme="dark"] .saboxplugin-wrap .saboxplugin-socials a,
[data-scheme="dark"] .saboxplugin-wrap .saboxplugin-socials a:hover {
    background: transparent !important;
    background-color: transparent !important;

    color: #CBCBCB !important;
    fill: #CBCBCB !important;

    box-shadow: none !important;
}


/* SVG das redes */

[data-scheme="dark"] .saboxplugin-wrap .saboxplugin-socials a svg {
    background: transparent !important;

    color: #CBCBCB !important;
    fill: currentColor !important;
}


/* Ícones grey do plugin */

[data-scheme="dark"] .saboxplugin-wrap .saboxplugin-socials .saboxplugin-icon-grey {
    background: transparent !important;

    color: #CBCBCB !important;
    fill: #CBCBCB !important;

    border: 0 !important;

    box-shadow: none !important;
}


/* Hover Dark */

[data-scheme="dark"] .saboxplugin-wrap .saboxplugin-socials a:hover,
[data-scheme="dark"] .saboxplugin-wrap .saboxplugin-socials .saboxplugin-icon-grey:hover {
    background: transparent !important;

    color: #FF5D29 !important;
    fill: #FF5D29 !important;
}


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

@media screen and (max-width: 768px) {

    .saboxplugin-wrap {
        margin: 40px 0;

        border-radius: 16px !important;
    }


    .saboxplugin-tab {
        display: grid;

        grid-template-columns: 1fr;

        column-gap: 0;
        row-gap: 10px;

        padding: 30px 25px;

        text-align: center;
    }


    /* Foto */

    .saboxplugin-gravatar {
        grid-row: auto;

        justify-self: center;

        margin-bottom: 5px !important;
    }


    .saboxplugin-gravatar img {
        width: 96px !important;
        height: 96px !important;
    }


    /* Nome */

    .saboxplugin-authorname {
        font-size: 28px !important;

        line-height: 1.15 !important;
    }


    /* Bio */

    .saboxplugin-desc {
        margin-top: 8px !important;
    }

    .saboxplugin-desc p {
        font-size: 15px !important;

        line-height: 1.7 !important;
    }


    /* Redes */

    .saboxplugin-wrap .saboxplugin-socials {
        margin-top: 18px !important;

        padding: 18px 0 0 !important;

        text-align: center;
    }


    .saboxplugin-wrap .saboxplugin-socials a {
        margin-left: 5px;
        margin-right: 5px;
    }


    /* Dark Mode Mobile */

    [data-scheme="dark"] .saboxplugin-wrap {
        background: #222222 !important;

        border-color: #4D4D4D !important;
    }

    [data-scheme="dark"] .saboxplugin-tab {
        background: #222222 !important;
    }

    [data-scheme="dark"] .saboxplugin-wrap .saboxplugin-socials {
        background: #222222 !important;
        background-color: #222222 !important;

        border-top-color: #4D4D4D !important;
    }

    [data-scheme="dark"] .saboxplugin-wrap .saboxplugin-socials a {
        background: transparent !important;
        background-color: transparent !important;
    }

}


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

@media screen and (max-width: 480px) {

    .saboxplugin-wrap {
        margin: 35px 0;

        border-radius: 14px !important;
    }


    .saboxplugin-tab {
        padding: 25px 20px;
    }


    .saboxplugin-gravatar img {
        width: 88px !important;
        height: 88px !important;
    }


    .saboxplugin-authorname {
        font-size: 26px !important;
    }


    .saboxplugin-desc p {
        font-size: 15px !important;

        line-height: 1.7 !important;
    }


    [data-scheme="dark"] .saboxplugin-wrap,
    [data-scheme="dark"] .saboxplugin-tab,
    [data-scheme="dark"] .saboxplugin-wrap .saboxplugin-socials {
        background: #222222 !important;
    }

}