/* ==========================================================================
   SKYSTONE WIDGET - SOCIAL MEDIA V15
   Coluna lateral oficial: 220px.

   O Admin continua decidindo:
   - icons
   - buttons
   ========================================================================== */

/* --------------------------------------------------------------------------
   CARD / HEADER
   -------------------------------------------------------------------------- */

body.template-skystone .site-social-panel {
    width: 100%;

    margin: 10px 0 0;
    padding: 0;

    border: 1px solid #d4e6ea;

    background:
        url("../../images/fon-bg-account-top.png")
        center top / 100% auto no-repeat,
        url("../../images/fon-bg-account-bottom.png")
        center bottom / 100% auto no-repeat,
        rgba(255,255,255,.97);

    overflow: hidden;
}

body.template-skystone .site-social-panel-head {
    min-height: 51px;

    margin: 0;
    padding: 11px 12px 8px;

    border-bottom: 1px solid #dcebed;

    background: rgba(249,252,253,.72);
}

body.template-skystone .site-social-panel-head > span {
    display: block;

    margin: 0 0 4px;

    color: #72a6b5;

    font-size: 6px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 1.1px;
}

body.template-skystone .site-social-panel-head > h3 {
    margin: 0;

    color: #075f78;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

/* SVGs sempre obedecem ao tamanho local do widget. */
body.template-skystone .site-social-panel svg {
    display: block;

    width: 100%;
    height: 100%;
}

/* ==========================================================================
   MODO: ÍCONES
   ========================================================================== */

body.template-skystone
.site-social-widget.site-social-sidebar.social-mode-icons {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;

    padding: 9px;

    box-sizing: border-box;
}

body.template-skystone
.site-social-widget.social-mode-icons
.site-social-icon-card {
    min-width: 0;
    height: 58px;

    padding: 7px 3px 5px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 1px solid #d5e7ea;

    background: #f8fcfd;

    color: #477787;

    text-decoration: none;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background-color .16s ease;
}

body.template-skystone
.site-social-widget.social-mode-icons
.site-social-icon-card
.site-social-brand-icon {
    width: 23px;
    height: 23px;

    display: block;
}

body.template-skystone
.site-social-widget.social-mode-icons
.site-social-icon-card
small {
    max-width: 100%;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #477787;

    font-size: 5.7px;
    font-weight: 700;
    line-height: 1;

    text-align: center;
}

body.template-skystone
.site-social-widget.social-mode-icons
.site-social-icon-card:hover {
    transform: translateY(-2px);

    border-color: #9dd4de;

    background: #effafd;
}

/* ==========================================================================
   MODO: BOTÕES
   ========================================================================== */

body.template-skystone
.site-social-widget.site-social-sidebar.social-mode-buttons {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 9px;

    box-sizing: border-box;
}

body.template-skystone
.site-social-widget.social-mode-buttons
.site-social-button-card {
    min-height: 43px;

    padding: 6px 9px;

    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 8px;
    align-items: center;

    border: 1px solid #d7e8eb;

    background: #f8fcfd;

    color: #477787;

    text-decoration: none;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background-color .16s ease;
}

body.template-skystone
.site-social-widget.social-mode-buttons
.site-social-button-card
.site-social-brand-icon {
    width: 24px;
    height: 24px;

    display: block;
}

body.template-skystone
.site-social-widget.social-mode-buttons
.site-social-button-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

body.template-skystone
.site-social-widget.social-mode-buttons
.site-social-button-copy
strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #075f78;

    font-size: 7px;
    font-weight: 700;
    line-height: 1;
}

body.template-skystone
.site-social-widget.social-mode-buttons
.site-social-button-copy
small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #7699a5;

    font-size: 5.5px;
    font-weight: 400;
    line-height: 1.1;
}

body.template-skystone
.site-social-widget.social-mode-buttons
.site-social-button-card:hover {
    transform: translateX(2px);

    border-color: #9dd4de;

    background: #effafd;
}

/* ==========================================================================
   CORES DAS REDES
   Somente o ícone usa a cor da marca; o card continua no tema SkyStone.
   ========================================================================== */

body.template-skystone .site-social-panel .social-network-discord {
    color: #6879e8;
}

body.template-skystone .site-social-panel .social-network-instagram {
    color: #e13c7c;
}

body.template-skystone .site-social-panel .social-network-facebook {
    color: #3180e8;
}

body.template-skystone .site-social-panel .social-network-youtube {
    color: #f3222f;
}

body.template-skystone .site-social-panel .social-network-tiktok {
    color: #263842;
}

body.template-skystone .site-social-panel .social-network-twitch {
    color: #9859eb;
}

body.template-skystone .site-social-panel .social-network-whatsapp {
    color: #20bb72;
}

body.template-skystone .site-social-panel .social-network-telegram {
    color: #28a7d9;
}

body.template-skystone .site-social-panel .social-network-x,
body.template-skystone .site-social-panel .social-network-twitter {
    color: #263842;
}

/* No modo buttons, mantém título em SkyStone e usa a cor só no SVG. */
body.template-skystone
.site-social-widget.social-mode-buttons
.site-social-button-card
.site-social-brand-icon {
    color: inherit;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 620px) {
    body.template-skystone
    .site-social-widget.site-social-sidebar.social-mode-icons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.template-skystone
    .site-social-widget.social-mode-icons
    .site-social-icon-card {
        height: 62px;
    }
}
