﻿:root {
    --brand: #00ed3b; /* destaque */
    --bg: #0b0f10; /* fundo escuro elegante */
    --card: #12181a; /* cartões */
    --muted: #c7d1cc; /* texto suave */
    --ink: #e2e7e3; /* texto principal */
    --danger: #ff4d4f;
    --warn: #f6c23e;
    --ok: #1fbf75;
    --shadow: 0 10px 30px rgba(0,0,0,.25);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
    /*position: sticky;*/
    top: 0;
    z-index: 50;
    /*background: rgba(11,15,16,.8);*/
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #1a2225;
}

a{
    text-decoration: none;
}

.bt-hover{

    border-radius: 50%;
}

.bt-hover:hover {
    /*border-color: #00fa9a !important;*/
    /*border-bottom: 1px solid #00fa9a !important;*/
    color: #00fa9a !important;    
    cursor: pointer;
    font-weight: bold;
    background-color: #ffffff22 !important;
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}



.logo {
}

    .logo a {
        font-size: 1.8rem;
        font-weight: bold;
        color: #FFFFFF !important;
    }

        .logo a:hover {
            transition: 0.5s;
            transform: scale(1.02);
        }

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

    .nav-menu li {
        display: inline;
    }

.nav-link {
    color: #e2e7e3 !important;
    font-size: 1.15rem;
    line-height: 2rem;
}

.nav-link:hover {
    color: var(--brand) !important;
    
}


.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: .3px;
}

.badge {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 6px rgba(0,237,59,.1);
}

.brand span {
    color: var(--brand);
}

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 520px;
    max-width: 520px;
    background: #101618;
    border: 1px solid #1a2225;
    border-radius: 999px;
    padding: 8px 12px;
}

    .search input {
        background: transparent;
        border: 0;
        outline: none;
        color: var(--ink);
        width: 100%;
        font-weight: 600;
    }

        .search input::placeholder {
            color: #8aa0a4;
        }

.actions {
    display: flex;
    gap: 8px;
}

.btn {
    appearance: none;
    border: 1px solid #202a2d;
    background: #101618;
    color: var(--ink);
    font-weight: 800;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand);
    color: #0b0f10;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0,237,59,.25);
}

.btn[aria-pressed="true"] {
    outline: 2px solid rgba(0,237,59,.3);
}

/* Stories wrapper + setas (NOVO) */
.stories-wrap {
    position: relative;
    max-width: 1100px;
    margin: 10px auto 0;
    padding: 0 16px;
}
/* Stories (scroll horizontal aprimorado) */
.stories {
    position: relative;
    display: flex;
    gap: 16px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 0 12px;
    scroll-behavior: smooth;
    scrollbar-gutter: stable both-edges;
    /* Borda com máscara sutil para fade lateral */
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
    /* Firefox scrollbar */
    scrollbar-width: thin;
    /* scrollbar-color: var(--brand) transparent; */
    scrollbar-color: transparent transparent;
    pointer-events: none;
}
    /* WebKit scrollbar */
    .stories::-webkit-scrollbar {
        height: 10px;
    }

    .stories::-webkit-scrollbar-track {
        background: #0f1416;
        border-radius: 999px;
    }

    .stories::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, var(--brand), #43ff94);
        border-radius: 999px;
        border: 2px solid #0f1416;
    }

    .stories:hover::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #43ff94, var(--brand));
    }
    /* Gradientes nas bordas indicando overflow */
    .stories::before,
    .stories::after {
        content: "";
        position: absolute;
        top: 0;
        height: 100%;
        width: 36px;
        pointer-events: none;
        opacity: 0;
        transition: opacity .2s ease;
    }

    .stories::before {
        left: 0;
        background: linear-gradient(to right, rgba(11,15,16,.9), rgba(11,15,16,0));
    }

    .stories::after {
        right: 0;
        background: linear-gradient(to left, rgba(11,15,16,.9), rgba(11,15,16,0));
    }

    .stories.has-left::before {
        opacity: 1;
    }

    .stories.has-right::after {
        opacity: 1;
    }

/* Item story */
.story {
    scroll-snap-align: start;
    min-width: 96px;
    text-align: center;
    color: var(--muted);
    background-color: transparent;
    border: 0;
    cursor: pointer;
    pointer-events: auto;    
}




.ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(var(--brand), #43ff94, #00ed3b);
    padding: 2px;
    margin: 0 auto 8px;
    box-shadow: 0 0 0 2px #0f1416, 0 8px 20px rgba(0,0,0,.35);
}
    .ring.viewed {
        background: unset !important;
    }

    .ring > img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        background: #0f1416;
        border: 4px solid var(--bg);
        transition: transform .15s ease;
    }

    .ring > video {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        background: #0f1416;
        border: 4px solid var(--bg);
        transition: transform .15s ease;
    }

.story:hover .ring > img {
    transform: scale(1.03);
}

.story b {
    color: var(--ink);
    font-size: 12px;
    display: block;
}

/* Botões de navegação das stories (NOVO) */
.stories-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #1a2225;
    background: #101618;
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: .9;
}

    .stories-nav:hover {
        border-color: #243237;
    }

    .stories-nav[disabled] {
        opacity: .35;
        cursor: not-allowed;
    }

    .stories-nav.prev {
        left: 24px;
    }

    .stories-nav.next {
        right: 24px;
    }

@media (max-width: 720px) {
    .stories::-webkit-scrollbar {
        height: 8px;
    }

    .stories-nav {
        display: none;
    }
}

/* Tabs/filtros */
.tabs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6px 16px 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    border: 1px solid #1a2225;
    background: #101618;
    color: var(--muted);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

    .chip.active {
        background: #162022;
        color: var(--ink);
        border-color: #243237;
    }

    .chip .dot {
        width: 8px;
        height: 8px;
        background: var(--brand);
        border-radius: 50%;
        display: inline-block;
        margin-right: 6px;
    }

/* Feed */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px 60px;
}

.feed {
    /*display: grid;*/
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .feed {
        grid-template-columns: 1fr;
    }
}

article.post {
    background: var(--card);
    border: 1px solid #1a2225;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    min-width: 380px;
}

.post header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    padding: 14px 14px 6px;
    position: relative;
    top: 0;
}

    .post header .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #1a2225;
    }

        .post header .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    .post header .meta {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

        .post header .meta b {
            font-size: 14px;
        }

        .post header .meta span {
            color: var(--muted);
            font-size: 12px;
        }

.media {
    position: relative;
    background: #0f1416;
    border-top: 1px solid #1a2225;
    border-bottom: 1px solid #1a2225;
    aspect-ratio: 16/10;
    display: grid;
    place-items: center;
}

    .media img, .media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /*object-fit: contain;*/
        display: block;
        max-height: 330px;
    }

.dbl-like {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    transform: scale(.75);
    transition: opacity .15s ease, transform .2s ease;
}

    .dbl-like i {
        width: 88px;
        height: 88px;
        border-radius: 50%;
        background: radial-gradient(closest-side, rgba(0,237,59,.9) 0%, rgba(0,237,59,0.7) 55%, rgba(0,237,59,0) 70%);
        mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="88" height="88" viewBox="0 0 24 24" fill="white"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 6 4 4 6.5 4c1.74 0 3.41 1.01 4.22 2.53C11.09 5.01 12.76 4 14.5 4 17 4 19 6 19 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') center/70% 70% no-repeat;
    }

.actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
}

    .actions-row .left, .actions-row .right {
        display: flex;
        gap: 8px;
        align-items: center;
    }

.icon-btn {
    appearance: none;
    background: #0f1416;
    border: 1px solid #1a2225;
    color: var(--ink);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

    .icon-btn[aria-pressed="true"] {
        border-color: #274246;
        background: #142022;
    }

.stat {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.content {
    padding: 0 14px 12px;
}

    .content .title {
        font-weight: 900;
        margin: 4px 0 6px;
    }

    .content .text {
        color: #b7c3bd;
        line-height: 1.7;
    }

.tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: #0f1416;
    border: 1px solid #223035;
    color: #90a7a1;
    font-weight: 800;
    font-size: 12px;
}

.comments {
    border-top: 1px solid #1a2225;
    padding: 10px 12px;
    background: #0f1416;
}

    .comments .c {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin: 6px 0;
    }

    .comments .comment-actions {
        position: relative;
        display: flex;
        align-items: center;
    }

    .comments .comment-actions__trigger {
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .comments .comment-actions__trigger img {
        pointer-events: none;
    }

    .comments .comment-actions__menu {
        position: absolute;
        right: 0;
        top: 110%;
        display: flex;
        flex-direction: column;
        min-width: 160px;
        background: #0b1316;
        border: 1px solid #1a2225;
        border-radius: 8px;
        box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.35);
        padding: 6px 0;
        z-index: 5;
    }

    .comments .comment-actions__item {
        background: none;
        border: none;
        color: var(--ink);
        text-align: left;
        padding: 8px 16px;
        width: 100%;
        font-size: 13px;
        cursor: pointer;
    }

    .comments .comment-actions__item:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .comments .comment-actions__item--danger {
        color: #ff6b6b;
    }

        .comments .c .a {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            overflow: hidden;
            border: 1px solid #1a2225;
        }

            .comments .c .a img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

        .comments .c .t {
            font-size: 13px;
        }

    .comments form {
        margin-top: 8px;
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .comments input {
        flex: 1;
        background: #0b1316;
        color: var(--ink);
        border: 1px solid #1a2225;
        border-radius: 12px;
        padding: 10px 12px;
        outline: none;
    }

    .comments button {
        white-space: nowrap;
    }

/* Skeletons */
.skeleton {
    background: linear-gradient(90deg, #0f1416 25%, #111a1c 37%, #0f1416 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 8px;
    min-height: 12px;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%
    }

    100% {
        background-position: 100% 50%
    }
}

/* Compose modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0,0,0,.6);
}

    .modal[open] {
        display: grid;
    }

.dialog {
    width: min(560px, 92vw);
    background: var(--card);
    border: 1px solid #1a2225;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
}

    .dialog h3 {
        margin: 0 0 10px;
    }

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dialog input, .dialog textarea {
    width: 100%;
    background: #0f1416;
    border: 1px solid #1a2225;
    color: var(--ink);
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
}

.dialog textarea {
    min-height: 100px;
    resize: vertical;
}

.dialog .row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Footer load sentinel */
.sentinel {
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--muted);
}
