:root {
    --primary: #d32f2f;
    --secondary: #ec407a;
    --bg-body: #000000;
    --bg-card: #121212; /* Um pouco mais claro que o fundo */
    --text-main: #e7e9ea;
    --text-muted: #71767b;
    --border: #2f3336;
    --hover: #181818;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* LAYOUT GRID DE 3 COLUNAS */
.app-layout {
    display: grid;
    grid-template-columns: 275px 1fr 350px; /* Larguras fixas laterais, centro flexível */
    max-width: 1300px;
    margin: 0 auto;
    min-height: 100vh;
}

/* --- COLUNA ESQUERDA (MENU) --- */
.sidebar-left {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
    padding-left: 10px;
}
.brand span { color: var(--secondary); }

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    font-size: 19px;
    font-weight: 400;
    border-radius: 30px;
    margin-bottom: 5px;
    transition: 0.2s;
    color: var(--text-main);
}

.nav-item:hover { background-color: var(--hover); }
.nav-item i { margin-right: 20px; font-size: 22px; width: 25px; }

.btn-publish {
    background-color: var(--text-main); /* Branco/Cinza claro conforme imagem */
    color: #000;
    font-weight: 800;
    border: none;
    width: 90%;
    padding: 15px 0;
    border-radius: 30px;
    font-size: 17px;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-publish:hover { opacity: 0.9; }

/* --- COLUNA CENTRAL (FEED) --- */
.main-feed {
    border-right: 1px solid var(--border);
    max-width: 600px;
    width: 100%;
}

.feed-header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.feed-tabs {
    display: flex;
    justify-content: space-around;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.tab:hover { background-color: var(--hover); }

.tab.active {
    color: var(--text-main);
}
.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Estilo dos Posts */
.post-card {
    border-bottom: 1px solid var(--border);
    padding: 15px;
}

.post-user-info {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-text { margin-bottom: 12px; font-size: 15px; line-height: 1.4; }
.post-media img, .post-media video {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
}

/* Input de Postagem */
.new-post-box {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 10px;
}
.new-post-box textarea {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    resize: none;
    width: 100%;
    font-family: inherit;
}
.new-post-box textarea:focus { outline: none; }

/* --- COLUNA DIREITA (CHAT) --- */
.sidebar-right {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
}

.chat-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.chat-tab { font-size: 14px; color: var(--text-muted); font-weight: bold; cursor: pointer; }
.chat-tab.active { color: var(--text-main); border-bottom: 2px solid var(--primary); }

.chat-list { list-style: none; overflow-y: auto; }
.chat-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 5px;
}
.chat-item:hover { background-color: var(--hover); }
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    background: #333;
}
.chat-info h4 { font-size: 14px; margin-bottom: 2px; }
.chat-info p { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.badge { background: var(--primary); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 10px; margin-left: auto; }