﻿/* =========================
   STARGUINCHOS - FEED ATENDIMENTOS
========================= */

.sg-feed-page {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 25%), radial-gradient(circle at top right, rgba(238, 212, 165, 0.06), transparent 18%), #020617;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* =========================
   HEADER
========================= */

.sg-feed-header {
    padding: 120px 0 28px;
}

.sg-feed-header__card {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(22px, 3vw, 34px);
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 28px;
    border-radius: 30px;
    background: rgba(1, 4, 15, 0.72);
    border: 1px solid rgba(203, 213, 245, 0.12);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.sg-feed-header__avatar {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: linear-gradient(145deg, rgba(203, 213, 245, 0.16), rgba(37, 99, 235, 0.12));
    border: 1px solid rgba(203, 213, 245, 0.18);
}

    .sg-feed-header__avatar img {
        width: 100%;
        height: auto;
        display: block;
    }

.sg-feed-header__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.sg-feed-header__handle {
    display: inline-flex;
    margin-bottom: 8px;
    color: #eed4a5;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.sg-feed-header__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.sg-feed-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sg-feed-header__text {
    max-width: 820px;
    margin: 16px 0 0;
    color: #cbd5f5;
    font-size: 1rem;
    line-height: 1.75;
}

.sg-feed-header__stats {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.sg-feed-header__stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

    .sg-feed-header__stat strong {
        color: #ffffff;
        font-size: 1.08rem;
        font-weight: 900;
    }

    .sg-feed-header__stat span {
        color: rgba(203, 213, 245, 0.78);
        font-size: 0.9rem;
        font-weight: 600;
    }

/* =========================
   TABS
========================= */

.sg-feed-tabs {
    padding: 0 0 18px;
}

.sg-feed-tabs__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(203, 213, 245, 0.10);
}

.sg-feed-tabs__item {
    min-height: 54px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(203, 213, 245, 0.68);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-top: 2px solid transparent;
}

.sg-feed-tabs__item--active {
    color: #ffffff;
    border-top-color: #ffffff;
}

.sg-feed-tabs__icon {
    font-size: 1rem;
    line-height: 1;
}

/* =========================
   GRADE
========================= */

.sg-feed-grid-section {
    padding: 0 0 50px;
}

.sg-feed-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sg-feed-post {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 1px solid rgba(203, 213, 245, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background: #050b1b;
    cursor: pointer;
}

.sg-feed-post__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform-origin: center center;
    transition: transform 0.30s ease, filter 0.30s ease;
}

.sg-feed-post__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.62) 38%, rgba(0, 0, 0, 0.08) 72%, rgba(0, 0, 0, 0.00) 100% );
    pointer-events: none;
}

.sg-feed-post__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 58px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none;
}

    .sg-feed-post__content small {
        display: block;
        margin-bottom: 5px;
        color: #eed4a5;
        font-size: 0.67rem;
        font-weight: 900;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        text-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
    }

    .sg-feed-post__content strong {
        display: -webkit-box;
        overflow: hidden;
        margin-bottom: 5px;
        color: #ffffff;
        font-size: clamp(0.88rem, 1vw, 1rem);
        font-weight: 900;
        line-height: 1.18;
        text-align: left;
        text-shadow: 0 8px 18px rgba(0, 0, 0, 0.72);
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .sg-feed-post__content em {
        display: -webkit-box;
        overflow: hidden;
        color: rgba(255, 255, 255, 0.88);
        font-size: 0.76rem;
        font-style: normal;
        font-weight: 500;
        line-height: 1.35;
        text-align: left;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

.sg-feed-post__expand {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.60);
    border: 1px solid rgba(203, 213, 245, 0.18);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: none;
}

    .sg-feed-post__expand svg {
        width: 18px;
        height: 18px;
        fill: #ffffff;
    }

.sg-feed-post:hover .sg-feed-post__image {
    filter: brightness(0.82);
}

.sg-feed-post:hover .sg-feed-post__expand {
    opacity: 1;
    transform: scale(1);
}

/* =========================
   EMPTY
========================= */

.sg-feed-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 44px 30px;
    text-align: center;
    border-radius: 28px;
    background: rgba(1, 4, 15, 0.76);
    border: 1px solid rgba(203, 213, 245, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.20);
}

.sg-feed-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(238, 212, 165, 0.10);
    border: 1px solid rgba(238, 212, 165, 0.18);
    color: #eed4a5;
    font-size: 2.2rem;
    font-weight: 300;
}

.sg-feed-empty h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
}

.sg-feed-empty p {
    max-width: 540px;
    margin: 14px auto 0;
    color: #cbd5f5;
    font-size: 0.98rem;
    line-height: 1.75;
}

/* =========================
   MODAL
========================= */

.sg-feed-modal .modal-dialog {
    max-width: min(1120px, calc(100vw - 24px));
}

.sg-feed-modal__content {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(203, 213, 245, 0.14);
    background: rgba(2, 6, 23, 0.98);
    box-shadow: 0 34px 96px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sg-feed-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(203, 213, 245, 0.18);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sg-feed-modal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    min-height: 650px;
}

.sg-feed-modal__image-panel {
    overflow: hidden;
    background: #000000;
}

.sg-feed-modal__image {
    width: 100%;
    height: 100%;
    min-height: 650px;
    display: block;
    object-fit: cover;
    transform-origin: center center;
}

.sg-feed-modal__info-panel {
    padding: clamp(24px, 4vw, 42px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at top right, rgba(30, 64, 175, 0.12), transparent 28%), rgba(2, 6, 23, 0.96);
}

.sg-feed-modal__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(203, 213, 245, 0.10);
}

.sg-feed-modal__brand-logo {
    width: 54px;
    height: 54px;
    padding: 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(203, 213, 245, 0.08);
    border: 1px solid rgba(203, 213, 245, 0.14);
}

    .sg-feed-modal__brand-logo img {
        width: 100%;
        height: auto;
        display: block;
    }

.sg-feed-modal__brand-text strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
}

.sg-feed-modal__brand-text span {
    display: block;
    margin-top: 2px;
    color: rgba(203, 213, 245, 0.72);
    font-size: 0.84rem;
    font-weight: 600;
}

.sg-feed-modal__body {
    padding: 32px 0;
}

.sg-feed-modal__category {
    min-height: 34px;
    width: fit-content;
    padding: 0 14px;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(238, 212, 165, 0.10);
    border: 1px solid rgba(238, 212, 165, 0.18);
    color: #eed4a5;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sg-feed-modal__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.sg-feed-modal__description {
    margin: 18px 0 0;
    color: #cbd5f5;
    font-size: 0.98rem;
    line-height: 1.85;
}

.sg-feed-modal__date {
    display: block;
    margin-top: 20px;
    color: rgba(203, 213, 245, 0.62);
    font-size: 0.82rem;
    font-weight: 600;
}

.sg-feed-modal__actions {
    padding-top: 22px;
    border-top: 1px solid rgba(203, 213, 245, 0.10);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 992px) {
    .sg-feed-header {
        padding-top: 100px;
    }

    .sg-feed-header__card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .sg-feed-modal__grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .sg-feed-modal__image {
        min-height: auto;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 768px) {
    .sg-feed-header {
        padding-top: 86px;
    }

    .sg-feed-header__card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 22px;
        border-radius: 24px;
    }

    .sg-feed-header__avatar {
        width: 100px;
        height: 100px;
    }

    .sg-feed-header__top {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .sg-feed-header__stats {
        justify-content: center;
    }

    .sg-feed-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .sg-feed-post {
        border-radius: 6px;
    }

    .sg-feed-post__content {
        padding: 34px 8px 8px;
    }

        .sg-feed-post__content small {
            display: none;
        }

        .sg-feed-post__content strong {
            font-size: 0.70rem;
            line-height: 1.10;
        }

        .sg-feed-post__content em {
            display: none;
        }

    .sg-feed-post__expand {
        display: none;
    }

    .sg-feed-modal .modal-dialog {
        max-width: calc(100vw - 16px);
    }

    .sg-feed-modal__content {
        border-radius: 22px;
    }

    .sg-feed-modal__info-panel {
        padding: 22px 18px 24px;
    }

    .sg-feed-modal__actions .btn-primary-orange,
    .sg-feed-modal__actions .btn-secondary-dark {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .sg-feed-header__actions {
        width: 100%;
        justify-content: center;
    }

        .sg-feed-header__actions .btn-primary-orange,
        .sg-feed-header__actions .btn-secondary-dark {
            width: 100%;
        }

    .sg-feed-header__stats {
        gap: 18px;
    }

    .sg-feed-header__stat {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .sg-feed-post__content {
        display: none;
    }

    .sg-feed-post__overlay {
        opacity: 0;
    }
}

/* =========================
   CHAMADA PARA REDES SOCIAIS
========================= */

.sg-feed-social {
    padding: 18px 0 90px;
}

.sg-feed-social__card {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    background: radial-gradient(circle at top left, rgba(238, 212, 165, 0.12), transparent 30%), linear-gradient(180deg, rgba(7, 13, 28, 0.92), rgba(3, 8, 20, 0.98));
    border: 1px solid rgba(203, 213, 245, 0.12);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.sg-feed-social__content {
    max-width: 720px;
}

.sg-feed-social__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(238, 212, 165, 0.10);
    border: 1px solid rgba(238, 212, 165, 0.18);
    color: #eed4a5;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sg-feed-social__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.sg-feed-social__text {
    margin: 13px 0 0;
    color: #cbd5f5;
    font-size: 0.98rem;
    line-height: 1.75;
}

.sg-feed-social__button {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(203, 213, 245, 0.10);
    border: 1px solid rgba(203, 213, 245, 0.18);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

    .sg-feed-social__button:hover {
        color: #ffffff;
        transform: translateY(-2px);
        background: rgba(238, 212, 165, 0.14);
        border-color: rgba(238, 212, 165, 0.34);
    }

.sg-feed-social__icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .sg-feed-social__icon svg {
        width: 100%;
        height: 100%;
        display: block;
        fill: currentColor;
    }

@media (max-width: 768px) {
    .sg-feed-social {
        padding: 10px 0 72px;
    }

    .sg-feed-social__card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-radius: 26px;
    }

    .sg-feed-social__button {
        width: 100%;
    }
}