/* =========================================
   VARIÁVEIS GLOBAIS (Opcional, mas recomendado)
   ========================================= */
:root {
    --primary-color: #2d88ff;
    --bg-dark: #18191a;
    --bg-card: #242526;
    --text-white: #ffffff;
    --text-gray: #b0b3b8;
    --border-color: #3e4042;
    --hover-color: #3a3b3c;
    --green-check: #28a745;
    --facebook-blue: #1877f2;
}

/* =========================================
   RESET E ESTRUTURA BÁSICA
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgb(0 0 0 / 56%);
        z-index: -1;
    }

/* =========================================
   LAYOUT PRINCIPAL (GRID)
   ========================================= */
.main-layout-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 340px; /* casa com a largura real da sidebar */
    gap: 20px;
    width: 100%;
    max-width: 1900px; /* agora pode reduzir sem desalinhamento */
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    padding-top: 75px;
    box-sizing: border-box;
}

.main-view {
    display: none;
    flex-direction: column;
    gap: 40px;
}


/* =========================================
   BARRAS LATERAIS (SIDEBARS)
   ========================================= */
.right-sidebar {
    display: flex;
    width: 340px;
    max-width: 340px;
    flex-direction: column;
    gap: 20px;
    padding-right: 23px;
    position: sticky;
    top: 75px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 3px;
    margin-top: 3px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: background-color 0.2s;
}

    .sidebar-link:hover {
        background-color: #242526;
        outline: none; /* Correção: Adicionado ponto e vírgula */
    }

    .sidebar-link:focus {
        outline: none;
    }

    .sidebar-link i {
        font-size: 1.2rem;
        width: 32px;
        text-align: center;
    }

    .sidebar-link .sidebar-avatar-small {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        object-fit: cover;
    }

    .sidebar-link img {
        border-radius: 50%;
        width: 37px;
        height: 37px;
    }

.sidebar-divider {
    height: 1px;
    background-color: #3e4042;
    margin: 10px 0;
}

.right-sidebar {
    display: flex;
    width: 340px;
    flex-direction: column;
    gap: 20px;
    padding-right: 23px;
}

.sidebar-card {
    background-color: #242526;
    padding: 20px;
    border-radius: 12px;
}

.sidebar-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.friend-list .sidebar-link {
    padding: 8px;
}

/* === Card de Perfil (Sidebar Direita) === */
.user-profile-card {
    text-align: center;
}

.profile-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #2d88ff;
    object-fit: cover;
}

.profile-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.profile-card-link {
    display: inline-block;
    padding: 7px 0px;
    background-color: #18191a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
    margin-right: 3px;
    font-size: 14px;
}

/* =========================================
   TÍTULOS E SEÇÕES DE JOGOS
   ========================================= */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-top: 12px;
}

.recent-games-showcase {
    display: flex;
    gap: 20px;
    min-height: 400px;
}

.recent-main-wrapper {
    flex: 3;
}

.recent-main-card {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

    .recent-main-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
        border-radius: 12px;
    }

    .recent-main-card .content {
        position: relative;
        z-index: 1;
    }

    .recent-main-card h2 {
        font-size: 1.5rem;
    }

.recent-carousel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-carousel-card {
    /* REMOVA ou COMENTE esta linha antiga:
       background-size: 100% 100%; */
    /* ADICIONE esta linha: */
    background-size: cover;
    /* Mantenha o restante como está */
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    flex-grow: 1;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.9;
    transition: all 0.2s ease;
}

    .recent-carousel-card.active, .recent-carousel-card:hover {
        opacity: 1;
        border-color: #242526;
    }

/* === Minha Biblioteca === */
.my-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.my-library-card {
    background-color: #242526;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .my-library-card:hover {
        transform: translateY(-5px);
    }

    .my-library-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

    .my-library-card .info {
        padding: 15px;
    }

    .my-library-card h3 {
        font-size: 1.1rem;
    }

/* =========================================
   STORIES
   ========================================= */
.stories-section {
    width: 100%;
    margin-bottom: 20px;
    padding: 0 10px;
    box-sizing: border-box;
}

.stories-container {
    display: flex;
    gap: 10px;
    padding: 10px 0px 5px;
    overflow-x: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #3e4042 #18191a;
}

    /* Scrollbar Webkit (Chrome, Safari) */
    .stories-container::-webkit-scrollbar {
        height: 8px;
        display: none; /* Oculta em mobile por preferência estética */
    }

    .stories-container::-webkit-scrollbar-track {
        border-radius: 4px;
        background: #303339;
    }

    .stories-container::-webkit-scrollbar-thumb {
        background-color: #57606f;
        border-radius: 4px;
    }

.story-item {
    width: 110px;
    height: 180px;
    min-width: 110px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

    .story-item:hover {
        transform: scale(1.03);
    }

    .story-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    }

    .story-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%);
        z-index: 5;
    }

.story-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-user-avatar {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #2d88ff;
    z-index: 10;
    object-fit: cover;
}

.story-user-name {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    z-index: 10;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Criar Story */
.self-story-item .story-video {
    filter: brightness(0.6) grayscale(100%);
}

.story-create-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    transform: translateY(15px);
    border-radius: 0 0 15px 15px;
    z-index: 15;
}

.story-create-icon {
    color: #2d88ff;
    font-size: 24px;
    position: absolute;
    top: -12px;
    background-color: white;
    border-radius: 50%;
}

.self-story-item .story-user-name {
    position: static;
    color: #333;
    font-weight: 500;
    text-shadow: none;
    margin-top: 15px;
}

/* =========================================
   FEED E POSTS
   ========================================= */
.feed-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 850px;
    margin: 0 auto;
}

.create-post-input {
    display: flex;
    gap: 15px;
    align-items: center;
}

    .create-post-input img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .create-post-input input {
        flex-grow: 1;
        background-color: #18191a;
        border: 1px solid #3e4042;
        border-radius: 20px;
        padding: 12px 18px;
        color: #ffffff;
        font-size: 1rem;
    }

.post-card {
    background-color: #242526;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px 0px;
    margin-bottom: 8px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-info {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-weight: 600;
    color: #ffffff;
}

.post-time {
    font-size: 0.8rem;
    color: #ffffff;
    margin-top: 4px;
}

.post-body p {
    padding: 0 15px;
    margin-bottom: 3px;
        line-height: 1.5;
    }

.post-image {
    width: 100%;
    max-height: 1034px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 21px;
    padding: 8px;
    box-sizing: border-box;
}

.post-stats {
    padding: 10px 15px;
    color: #ffffff;
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
}

/* === AÇÕES DO POST (Like, Comentar) === */
.post-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    width: 100%;
    border-top: 1px solid #3e4042;
    padding: 5px;
    margin-top: 8px;
}

    .post-actions .post-action-btn {
        text-align: center;
        background: none;
        border: none;
        color: #b0b3b8;
        margin-left: 3px;
        margin-right: 3px;
        font-weight: 600;
        padding: 8px 12px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 0.9rem;
    }

        .post-actions .post-action-btn:hover {
            background-color: #18191a;
        }

    /* Estilos Específicos do Botão Curtir */
    .post-actions .like-btn {
        color: #b0b3b8; /* Cor padrão inativo */
        border: none;
        transition: color 0.2s, background-color 0.2s;
    }

        .post-actions .like-btn:hover {
            background-color: #3a3b3c;
        }

        /* Estado Ativo (Curtido) */
        .post-actions .like-btn.active {
            color: #ffffff;
        }

            .post-actions .like-btn.active i {
                color: white;
            }

                /* Ícone Sólido quando ativo */
                .post-actions .like-btn.active i.far.fa-thumbs-up {
                    font-weight: 900;
                }

/* === Comentários === */
.comment-section {
    display: none;
    padding: 0 15px 5px;
    border-top: 1px solid #3e4042;
}

.comment-display {
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px;
    background-color: #18191a;
    border-radius: 10px;
}

.comment-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 8px;
    padding-bottom: 5px;
}

    .comment-input-wrapper img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }


.post-action-btn, .post-action-btn edit-post-btn {
    display: inline-flex;
    color: white;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
    transition: color 0.2s;
}

.modal input.comment-input,
.comment-input {
    flex-grow: 1;
    background-color: #18191a;
    border: 1px solid #3e4042;
    border-radius: 16px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: 0.9rem;
    margin-top: 12px;
}

    .comment-input:focus {
        outline: none;
    }

/* =========================================
   PÁGINA DE PERFIL
   ========================================= */
.profile-page {
    gap: 0;
}

.center-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.profile-header {
    background-color: #242526;
    border-radius: 12px;
    margin-bottom: 20px;
}

.profile-cover-photo {
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.profile-cover-button {
    margin-left: 11px;
    margin-top: 10px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.profile-details-bar {
    display: flex;
    align-items: flex-end;
    padding: 0 30px;
    position: relative;
    border-bottom: 1px solid #3e4042;
}

.profile-picture-container {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    background-color: #242526;
    padding: 5px;
    margin-top: -84px;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: filter 0.2s ease-in-out;
}

.profile-picture-container:hover .profile-picture {
    filter: brightness(0.6);
}

#change-avatar-btn:hover::after {
    content: '\f030';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.profile-name-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    padding: 15px 0 15px 20px;
}

    .profile-name-actions h1 {
        font-size: 2.5rem;
        font-weight: 700;
    }

.profile-main-actions {
    display: flex;
    gap: 10px;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

    .profile-action-btn.primary {
        background-color: #1877f2;
        color: white;
    }

    .profile-action-btn.secondary {
        background-color: #4E4F50;
        color: #ffffff;
    }

.profile-nav {
    padding: 0 30px;
}

.profile-nav-link {
    font-weight: 600;
    padding: 8px 9px;
    margin-right: 16px;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-bottom: 2px solid white;
}

    .profile-nav-link:hover {
        background-color: rgba(255,255,255,0.1);
    }

    .profile-nav-link.active {
        color: #2d88ff;
    }

.profile-body {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 20px;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-widget {
    background-color: #242526;
    padding: 20px;
    border-radius: 12px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.profile-bio {
    color: #ffffff;
    margin-bottom: 15px;
}

.widget-edit-btn {
    width: 100%;
    background-color: #18191a;
    border: none;
    color: #ffffff;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.widget-header-link {
    color: #2d88ff;
    text-decoration: none;
    font-size: 0.9rem;
}

.widget-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.widget-photo-item {
    padding-bottom: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.widget-friend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.widget-friend-item {
    text-align: center;
}

    .widget-friend-item img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 5px;
    }

    .widget-friend-item span {
        font-size: 0.8rem;
        font-weight: 600;
    }

/* Edição de Bio e Posts */
.bio-textarea-edit {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #18191a;
    border: 1px solid #3e4042;
    border-radius: 6px;
    color: #ffffff;
    resize: vertical;
}

.bio-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.edit-post-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-left: 8px;
    padding-right: 13px;
}

.edit-post-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #3e4042;
    background-color: #18191a;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.edit-post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

    .edit-post-actions button {
        padding: 8px 16px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
    }

    .edit-post-actions .cancel-edit-btn {
        background-color: #242526;
        color: #ffffff;
    }

    .edit-post-actions .save-edit-btn {
        background-color: #2d88ff;
        color: white;
    }

/* =========================================
   ARTIGOS E NOTÍCIAS
   ========================================= */
.articles-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card-horizontal {
    display: flex;
    flex-direction: column;
    background-color: #242526;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
}

    .article-card-horizontal:hover {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    }

    .article-card-horizontal .article-content {
        padding: 25px;
    }

    .article-card-horizontal .article-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 15px;
        color: #ffffff;
    }

    .article-card-horizontal .article-excerpt {
        font-size: 1rem;
        color: #ffffff;
        line-height: 1.6;
    }

    .article-card-horizontal .article-image {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: cover;
        display: block;
    }

/* =========================================
   LOADERS E SKELETONS
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #18191a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

    #preloader.hidden {
        opacity: 0;
        visibility: hidden;
    }

.skeleton-card {
    position: relative;
    overflow: hidden;
    background-color: #2d3748;
}

.skeleton-image {
    width: 100%;
    height: 120px;
    background-color: #3e4042;
    border-radius: 8px;
    margin-bottom: 20px;
}

.skeleton-text {
    width: 90%;
    height: 18px;
    background-color: #3e4042;
    border-radius: 4px;
    margin-bottom: 12px;
}

    .skeleton-text.small {
        width: 50%;
    }

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shimmer 1.5s infinite linear;
    transform: translateX(-100%);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* =========================================
   BANNERS (Biblioteca e Jogos)
   ========================================= */
.library-highlights-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.library-highlight-main-card {
    min-height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 30px;
    color: white;
}

    .library-highlight-main-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
        border-radius: 12px;
    }

    .library-highlight-main-card h2 {
        font-size: 1.9rem;
        font-weight: 700;
        text-transform: uppercase;
        text-align: right;
        text-shadow: 0 3px 10px rgba(0,0,0,0.9);
        position: relative;
    }

.library-highlight-thumbnails {
    display: flex;
    gap: 20px;
}

.library-highlight-thumbnail-card {
    min-width: 200px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    border: 3px solid transparent;
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

    .library-highlight-thumbnail-card:hover {
        opacity: 1;
        transform: none;
        border-color: rgba(255, 255, 255, 0.5);
    }

    .library-highlight-thumbnail-card.active {
        opacity: 1;
        transform: none;
        border-color: #2d88ff;
    }

    .library-highlight-thumbnail-card h3 {
        position: absolute;
        bottom: 10px;
        left: 10px;
        font-size: 1rem;
        color: white;
        text-shadow: 0 1px 4px rgba(0,0,0,0.7);
        z-index: 1;
    }

/* Banner Minimalista */
.minimalist-banner-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 20px;
}

.minimalist-large-banner {
    background-color: #242526;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    min-height: 200px;
}

    .minimalist-large-banner h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin: 0;
    }

    .minimalist-large-banner p {
        font-size: 1rem;
        color: #ffffff;
        margin-top: 5px;
    }

    .minimalist-large-banner .game-status-icon {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 28px;
        height: 28px;
        background-color: #28a745;
        border-radius: 50%;
        color: white;
        display: grid;
        place-items: center;
        font-size: 0.9rem;
    }

.minimalist-small-banner {
    background-color: #242526;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border: 3px solid transparent;
}

    .minimalist-small-banner:hover {
        background-color: #3a475c;
        border-color: #2d88ff;
    }

    .minimalist-small-banner img, .minimalist-small-banner div[style*="height: 80px"] {
        width: 100%;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
        background-color: #18191a;
    }

    .minimalist-small-banner h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
        text-align: center;
        flex-grow: 1;
        display: flex;
        align-items: center;
    }

/* =========================================
   CHAT E WIDGETS LATERAIS
   ========================================= */
#chat-status-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    background-color: #3a3b3c;
}

#chat-status-widget .user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.status-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    background-color: #808080;
    transition: background-color 0.3s ease;
    margin-right: 8px;
}

    .status-dot.online {
        background-color: #28a745;
    }

    .status-dot.offline {
        background-color: #808080;
    }

#chat-status-widget .status-selector select {
    background-color: #18191a;
    color: #ffffff;
    border: 1px solid #3e4042;
    border-radius: 4px;
    font-size: 0.8em;
    padding: 2px;
}

#chat-status-widget .widget-body {
    display: none;
    height: 340px;
    flex-direction: column;
}

#chat-status-widget.expanded .widget-body {
    display: flex;
}

#chat-status-widget.expanded .widget-header {
    border-bottom: 1px solid #3e4042;
}

.friend-list-header {
    padding: 10px;
    font-weight: bold;
    color: #ffffff;
    font-size: 0.9em;
}

.friend-list-container {
    overflow-y: auto;
    flex-grow: 1;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .friend-item:hover {
        background-color: #3a3b3c;
    }

    .friend-item img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }

.friend-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chat Count e Status */
.chat-friend-item {
    position: relative;
}

.unread-count {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background-color: #2d88ff;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid #242526;
}

/* Janela de Chat */
.chat-window {
    width: 298px;
    height: 358px;
    background-color: #242526;
    border: 1px solid #3e4042;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    font-family: 'Inter', sans-serif;
    margin-left: 10px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background-color: #3a3b3c;
    border-bottom: 1px solid #3e4042;
    cursor: grab;
    user-select: none;
    border-radius: 8px 8px 0 0;
}

    .chat-header img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        object-fit: cover;
    }

    .chat-header:active {
        cursor: grabbing;
    }

    .chat-header .friend-name {
        flex-grow: 1;
        font-weight: 600;
        color: #ffffff;
        font-size: 0.9rem;
    }

.chat-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
}

.chat-body {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 15px;
    line-height: 1.4;
    font-size: 0.9rem;
    word-wrap: break-word;
}

    .chat-message.sent {
        background-color: #2d88ff;
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 4px;
    }

    .chat-message.received {
        background-color: #18191a;
        color: #ffffff;
        align-self: flex-start;
        border-bottom-left-radius: 4px;
    }

.chat-footer {
    display: flex;
    padding: 8px;
    border-top: 1px solid #3e4042;
    gap: 8px;
}

.chat-input {
    flex-grow: 1;
    background-color: #18191a;
    border: 1px solid #3e4042;
    border-radius: 18px;
    padding: 8px 8px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
}

    .chat-input:focus {
        border-color: #2d88ff;
    }

.chat-send-btn {
    background: none;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #9aa6b2;
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

/* =========================================
   ELEMENTOS DIVERSOS (Botões, Listas, Upload)
   ========================================= */
.file-name-display {
    display: none;
    padding: 6px 12px;
    border: 1px solid #3e4042;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #ffffff;
    background-color: #18191a;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    margin-right: 4px;
}

.notification-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: opacity 0.2s ease;
}

    .notification-btn:hover {
        opacity: 0.85;
    }

    .notification-btn.accept {
        background-color: #2d88ff;
        color: white;
    }

    .notification-btn.decline {
        background-color: #18191a;
        color: #ffffff;
    }

.notification-actions {
    display: flex;
    gap: 8px;
}

.bt1 {
    background-color: #2d88ff;
    color: #18191a;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.group-link-in-feed {
    color: #ffffff;
    text-decoration: none;
}

/* Privacidade e Dropdown */
.privacy-indicator.is-editable {
    cursor: pointer;
    transition: color 0.2s;
}

    .privacy-indicator.is-editable:hover {
        color: #2d88ff;
    }

.privacy-dropdown {
    position: absolute;
    z-index: 1050;
    background-color: #242526;
    border: 1px solid #3e4042;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding: 5px 0;
    min-width: 150px;
}

    .privacy-dropdown ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .privacy-dropdown .privacy-option {
        padding: 8px 15px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.9rem;
        color: #ffffff;
    }

        .privacy-dropdown .privacy-option:hover {
            background-color: #18191a;
        }

        .privacy-dropdown .privacy-option.active {
            font-weight: bold;
            color: #2d88ff;
        }

.privacy-select-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #18191a;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #3e4042;
}

.privacy-select {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    outline: none;
}

.privacy-select-wrapper i {
    color: #ffffff;
}

.privacy-indicator {
    margin-left: 8px;
    color: #ffffff;
    font-size: 0.8em;
    cursor: default;
}

    .privacy-indicator i {
        vertical-align: middle;
    }

.group-list { /* Correção: Adicionado ponto */
    padding-left: 0px;
}

/* =========================================
   COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: #fff;
    padding: 9px 9px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

    .cookie-content p {
        margin: 0;
        font-size: 0.95rem;
        flex: 1;
        line-height: 1.4;
    }

    .cookie-content a {
        color: #3498db;
        text-decoration: none;
        font-weight: bold;
    }

        .cookie-content a:hover {
            text-decoration: underline;
            color: #5dade2;
        }

.cookie-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
    white-space: nowrap;
}

    .cookie-btn:hover {
        background-color: #2ecc71;
    }

/* =========================================
   MOBILE NAV (Barra Inferior)
   ========================================= */
#mobile-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background-color: #242526;
    border-top: 1px solid #3e4042;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

.mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 5px;
}

    .mobile-nav-inner .sidebar-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        flex-grow: 1;
        color: #ffffff;
        text-decoration: none;
        font-size: 10px;
        padding: 5px 0;
        border-top: 2px solid transparent;
        transition: color 0.2s, border-top-color 0.2s;
        margin: 0; /* Override */
    }

.sidebar-avatar-mobile-nav {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-bottom: 2px;
    object-fit: cover;
    border: 1px solid transparent;
}

.mobile-nav-inner .sidebar-link i {
    font-size: 20px;
    margin-bottom: 2px;
}

/* =========================================
   SCROLLBAR PERSONALIZADA (Webkit Global)
   ========================================= */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background: #242526;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #18191a;
}

::-webkit-scrollbar-thumb {
    background-color: #A0AEC0;
    border-radius: 10px;
    border: 3px solid #2D3748;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #A0AEC0;
    }

/* =========================================
   MEDIA QUERIES (Responsividade)
   ========================================= */

/* Telas Grandes */
@media (max-width: 1920px) {
    .main-layout-grid {
        width: 90%;
        padding-left: 10px;
        padding-right: 10px;
    }
}
}

@media (max-width: 1900px) {
    .main-layout-grid {
        grid-template-columns: 92px 1fr 300px;
    }

    ad-sidebar-wrapper ad-main-view-footer {
        display: none;
    }
}


@media (max-width: 1700px) {
    .main-layout-grid {
        display: flex;
        width: 75%;
    }
}


    @media (max-width: 900px) {
        .main-layout-grid {
            width: 99%;
        }
    }
    /* Tablet / Mobile */
    @media (max-width: 800px) {
        .main-view.active {
            width: auto;
            max-width: none;
            align-self: normal;
        }
    }
    /* Mobile Específico */
    @media (max-width: 900px) {
        /* Mostrar Barra Inferior */
        #mobile-nav-bar {
            display: flex !important;
        }
        /* Ocultar Barras Laterais */
        .left-sidebar, .right-sidebar {
            display: none !important;
        }
        /* Ocultar Widget Chat */
        #chat-status-widget {
            display: none !important;
        }

        .top-nav-bar {
            height: 50px;
        }

        .main-layout-grid {
            grid-template-columns: 1fr !important;
            padding-bottom: 70px !important;
            padding-left: 10px !important;
            padding-right: 10px !important;
        }

        .post-card {
            width: 100%;
            max-width: 100%;
        }

        .post-body p,
        .comment-text,
        .chat-message {
            word-wrap: break-word;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .post-body p {
            padding-left: 10px;
            padding-bottom: 3px;
        }

        .cookie-content {
            flex-direction: column;
            text-align: center;
        }

        .action-button .btn-text {
            display: none;
        }

        .action-button {
            padding: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .create-post-card {
            padding: 20px 20px 16px;
        }

        .privacy-select-wrapper {
            padding: 8px 10px;
        }
    }
