/* ESTILOS DA COMUNIDADE */
.post-box { 
    background: var(--surface-highlight); 
    padding: 15px; 
    border-radius: 10px; 
    margin-bottom: 20px; 
    position: relative; 
}

.post-input { 
    width: 100%; 
    background: var(--surface-color); 
    border: 1px solid #444; 
    color: #fff; 
    padding: 10px; 
    border-radius: 10px; 
    resize: none; 
    height: 50px; 
    transition: 0.3s; 
    font-family: inherit; 
}

.post-box.expanded .post-input { 
    height: 100px; 
}

.post-tools { 
    display: none; 
    margin-top: 10px; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 10px; 
}

.post-box.expanded .post-tools { 
    display: flex; 
}

.close-post-tools { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: none; 
    border: none; 
    color: var(--text-color-secondary); 
    font-size: 20px; 
    cursor: pointer; 
    display: none; 
    z-index: 10;
}

.post-box.expanded .close-post-tools { 
    display: block; 
}

.feed-post { 
    background: var(--surface-highlight); 
    padding: 15px; 
    border-radius: 10px; 
    margin-bottom: 15px; 
    position: relative; 
}

.reaction-btn { 
    background: rgba(255,255,255,0.1); 
    border: none; 
    color: #bbb; 
    padding: 5px 12px; 
    border-radius: 20px; 
    cursor: pointer; 
    margin-right: 5px; 
    font-size: 12px; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
    transition: 0.2s; 
}

.reaction-btn:hover { 
    background: rgba(255,255,255,0.2); 
}

.reaction-btn.active { 
    background: var(--primary-color); 
    color: #000; 
    font-weight: bold; 
}

/* Notificações e User Menu */
.notif-wrapper { 
    position: relative; 
    cursor: pointer; 
    margin-right: 20px; 
}

.notif-badge { 
    position: absolute; 
    top: -5px; 
    right: -5px; 
    background: var(--danger-color); 
    color: #fff; 
    font-size: 10px; 
    padding: 2px 5px; 
    border-radius: 50%; 
}

.community-dropdown { 
    display: none; 
    position: absolute; 
    top: 50px; 
    right: 0; 
    width: 280px; 
    background: var(--surface-highlight); 
    border: 1px solid #444; 
    border-radius: 8px; 
    padding: 10px; 
    z-index: 500; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    max-height: 300px; 
    overflow-y: auto; 
}

.community-dropdown.active { 
    display: block; 
}

.community-dropdown-item { 
    padding: 10px; 
    border-bottom: 1px solid #333; 
    color: #eee; 
    text-decoration: none; 
    display: block; 
    font-size: 14px; 
}

/* Modais da Comunidade */
.community-modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8); 
    z-index: 2000; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: opacity 0.3s; 
    backdrop-filter: blur(5px); 
}

.community-modal.active { 
    display: flex; 
    opacity: 1; 
}

.community-modal-content { 
    background: var(--surface-color); 
    padding: 25px; 
    border-radius: 16px; 
    max-width: 90%; 
    width: 400px; 
    text-align: center; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.8); 
    border: 1px solid rgba(255, 215, 0, 0.2);
    transform: translateY(20px); 
    transition: transform 0.3s;
}

.community-modal.active .community-modal-content { 
    transform: translateY(0); 
}

.community-modal-content h3 { 
    margin-bottom: 16px; 
    color: var(--primary-color); 
}

/* Modal para ocultar postagem */
.hide-post-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.hide-post-modal.active {
    display: flex;
}

.hide-post-content {
    background: var(--surface-color);
    padding: 25px;
    border-radius: 16px;
    width: 300px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.hide-post-content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hide-post-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}